/** * PHP __get magic method implementation * @param string $strName Name of the property * * @return mixed * @throws Exception|QCallerException */ public function __get($strName) { switch ($strName) { case 'SelectedId': return $this->strSelectedId; case 'MustMatch': return $this->blnMustMatch; case 'MultipleValueDelimiter': return $this->strMultipleValueDelimiter; case 'DisplayHtml': return $this->blnDisplayHtml; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * PHP __get magic method implementation * @param string $strName Name of the property * * @return mixed * @throws Exception|QCallerException */ public function __get($strName) { switch ($strName) { case "SelectedValue": // mirror list control // mirror list control case "Value": // most common situation // most common situation case 'SelectedId': return $this->strSelectedId; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }