Login   Register  
PHP Classes
elePHPant
Icontem

Class: Observerable

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michal Vrchota  >  Observerable  >  Download .tar.gz .zip  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Observerable
Base name: observerable
Description: Implements the observerable design pattern
Related classes: , , , , ,
Version: -
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 855 users
All time rank: 3321
Week users: 2 users
Week rank: 1665
Picture of Michal Vrchota
Author: Michal Vrchota <e-mail contact>
Packages: 6 Browse this author's classes Browse this author's classes
Country: Czech Republic Czech Republic - PHP jobs in Czech Republic
Age: 25
All time rank: 4326 in Czech Republic Czech Republic
Week rank: 446 Down10 in Czech Republic Czech Republic Down
Innovation award
Innovation award
Nominee: 1x


  Detailed description  
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.

 

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Design Patterns Implementations of well known design patterns View top rated classes

  Rate classes User ratings   Applications   Files Files  

  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

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file observerable-spl.php Class Observer implementation using SPL
Plain text file observerable.php Class Observer implementation
Plain text file test-spl.php Example tutorial how to use observer

Download all files: observerable.tar.gz observerable.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.