SPL-StandardPHPLibrary
Public Member Functions | List of all members
SplObserver Interface Reference
Collaboration diagram for SplObserver:
Collaboration graph

Public Member Functions

 update (SplSubject $subject)
 

Detailed Description

Observer of the observer pattern.

Since
PHP 5.1

For a detailed explanation see Observer pattern in Gamma, Helm, Johnson, Vlissides
Design Patterns

Definition at line 1134 of file spl.php.

Member Function Documentation

SplObserver::update ( SplSubject  $subject)

Called from the subject (i.e.

when it's value has changed).

Parameters
$subjectthe callee

The documentation for this interface was generated from the following file: