public function __get($strName) { switch ($strName) { case 'Prod': // //QApplication::Log(E_USER_NOTICE, 'legacy', $strName); // if(!$this->objProduct) // $this->objProduct = Product::model()->findByPk($this->product_id); return $this->product; case 'Price': return $this->GetPriceValue(); case 'link': case 'Link': return $this->product->link; // case 'MiniImage': // return $this->product->MiniImage; //Boolean to check to see if an item's tax has already been removed from tax inclusive pricing // case 'MiniImage': // return $this->product->MiniImage; //Boolean to check to see if an item's tax has already been removed from tax inclusive pricing case 'blnWebTaxRemoved': return $this->tax_in; default: return parent::__get($strName); } }