PHP Classes

Observerable: Implements the observerable design pattern

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 962 All time: 3,751 This week: 206Up
Version License PHP version Categories
observerable 1.0GNU General Publi...5.0PHP 5, Design Patterns
Description 

Author

This package implements the observerable design pattern.

It defines an observer interface. This interface defines a function for observer classes that is called when the observed objects are updated.

There is also an observerable class that keeps track of all observer objects. It can add and remove observer objects, as well notify the observers when the observerable object is updated.

Innovation Award
PHP Programming Innovation award nominee
December 2006
Number 6
The observable design pattern is interesting to keep track of changes or events that happen in the context of an object, without having to alter the code of its class.

This class provides an implementation of the observable design pattern that can be used by other classes.

Manuel Lemos
Picture of Michal Vrchota
Name: Michal Vrchota <contact>
Classes: 6 packages by
Country: Czech Republic Czech Republic
Age: 38
All time rank: 5037 in Czech Republic Czech Republic
Week rank: 170 Up1 in Czech Republic Czech Republic Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (3)  
File Role Description
Plain text file observerable-spl.php Class Observer implementation using SPL
Plain text file observerable.php Class Observer implementation
Accessible without login Plain text file test-spl.php Example tutorial how to use observer

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:962
This week:0
All time:3,751
This week:206Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1632