__get() public méthode

public __get ( $strName )
 public function __get($strName)
 {
     switch ($strName) {
         // APPEARANCE
         case "Rows":
             return $this->intRows;
         case "LabelForRequired":
             return $this->strLabelForRequired;
         case "LabelForRequiredUnnamed":
             return $this->strLabelForRequiredUnnamed;
         case "ItemStyle":
             return $this->objItemStyle;
         case "HtmlEntities":
             return $this->blnHtmlEntities;
             // BEHAVIOR
         // BEHAVIOR
         case "SelectionMode":
             return $this->strSelectionMode;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
Exemple #2
0
 public function __get($strName)
 {
     switch ($strName) {
         // APPEARANCE
         case "TextAlign":
             return $this->strTextAlign;
             // BEHAVIOR
         // BEHAVIOR
         case "HtmlEntities":
             return $this->blnHtmlEntities;
             // LAYOUT
         // LAYOUT
         case "CellPadding":
             return $this->intCellPadding;
         case "CellSpacing":
             return $this->intCellSpacing;
         case "RepeatColumns":
             return $this->intRepeatColumns;
         case "RepeatDirection":
             return $this->strRepeatDirection;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }
 /**
  * PHP magic function
  * @param string $strName
  *
  * @return mixed
  * @throws Exception|QCallerException
  */
 public function __get($strName)
 {
     switch ($strName) {
         // APPEARANCE
         case "Rows":
             return $this->GetHtmlAttribute('size');
         case "LabelForRequired":
             return $this->strLabelForRequired;
         case "LabelForRequiredUnnamed":
             return $this->strLabelForRequiredUnnamed;
             // BEHAVIOR
         // BEHAVIOR
         case "SelectionMode":
             return $this->HasHtmlAttribute('multiple') ? QSelectionMode::Multiple : QSelectionMode::Single;
         default:
             try {
                 return parent::__get($strName);
             } catch (QCallerException $objExc) {
                 $objExc->IncrementOffset();
                 throw $objExc;
             }
     }
 }