topical media & game development
professional-php-04-observable.php / php
<?php
abstract class Observable {
private observer) {
array_push(observer);
}
public function notifyObservers() {
for (i < count(i++) {
this->observers[widget->update(names;
private years;
function __construct() {
this->prices = array();
name, year) {
array_push(name);
array_push(price);
array_push(year);
this->names, this->years);
}
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.