This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// CORE/app/models/datasources/json_source.php | |
/** | |
* JSON Source module for CakePHP. | |
* | |
* @package cake | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyObserver implements SplObserver { | |
public function update(SplSubject $subject) { | |
echo __CLASS__ . ' - ' . $subject->getName(); | |
} | |
} | |
class MySubject implements SplSubject { | |
private $_observers; |