internalData = $subject->getData(); } } class BasicWidget extends Widget { function __construct() { } public function draw() { $html = ""; $html .= ""; $numRecords = count($this->internalData[0]); for($i = 0; $i < $numRecords; $i++) { $instms = $this->internalData[0]; $prices = $this->internalData[1]; $years = $this->internalData[2]; $html .= ""; } $html .= "
Instrument Info
$instms[$i] $prices[$i] $years[$i]

"; echo $html; } } class FancyWidget extends Widget { function __construct() { } public function draw() { $html = ""; $numRecords = count($this->internalData[0]); for($i = 0; $i < $numRecords; $i++) { $instms = $this->internalData[0]; $prices = $this->internalData[1]; $years = $this->internalData[2]; $html .= ""; } $html .= "
Our Latest Prices
instrument pricedate issued
$instms[$i] $prices[$i]$years[$i]

"; echo $html; } } ?>