/** * Magic Get method * * @param string $strName * @return bool|mixed|null|string * @throws \QCallerException * @throws \QCallerException */ public function __get($strName) { switch ($strName) { // APPEARANCE case "StyleClass": return $this->strButtonStyle; case "SizeClass": return $this->strButtonSize; case "AsButton": return $this->blnAsButton; case "Split": return $this->blnSplit; case "Up": return $this->blnUp; case "Text": return $this->strName; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }
/** * @param string $strName * @return mixed * @throws QCallerException * @throws \Exception * @throws \QCallerException */ public function __get($strName) { switch ($strName) { case 'ButtonStyle': return $this->buttonStyle; case 'Justified': return $this->blnJustified; default: try { return parent::__get($strName); } catch (QCallerException $objExc) { $objExc->IncrementOffset(); throw $objExc; } } }