openAdsConnection =& $openAdsConnection; } /** * Get the openAds ad ID for this ad. * @return string */ function getAdId() { return $this->getData('adId'); } /** * Set the openAds ad ID for this ad. * @param $adId string */ function setAdId($adId) { $this->setData('adId', $adId); } /** * Get this ad's name. * @return string */ function getName() { return $this->getData('name'); } /** * Set this ad's name. * @param $name string */ function setName($name) { $this->setData('name', $name); } /** * Using the openAds connection, get the include HTML for this ad. * @return string */ function getHtml() { return $this->openAdsConnection->getAdHtml($this->getAdId()); } } ?>