topical media & game development
professional-php-04-abstract-widget.php / php
<?php
interface Observer {
public function update(Observable internalData = array();
abstract public function draw();
public function update(Observable this->internalData = html = "<table border=1 width=130>";
numRecords = count(i = 0; numRecords; instms = prices = years = html .= "<tr><td>i]</td><td> i]</td>
<td>i]</td></tr>";
}
html;
}
}
class FancyWidget extends Widget {
function __construct() {
}
public function draw() {
numRecords = count(i = 0; numRecords; instms = prices = years = html .=
"<tr><td>i]</td><td>
i]</td><td>i]
</td></tr>";
}
html;
}
}
?>
(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.