__set() public method

Set an object property
public __set ( string $strKey, mixed $varValue )
$strKey string
$varValue mixed
Exemplo n.º 1
0
 /**
  * Set an object property
  *
  * @param string $strKey
  * @param mixed  $varValue
  */
 public function __set($strKey, $varValue)
 {
     switch ($strKey) {
         case 'createNewVersion':
             $this->blnCreateNewVersion = (bool) $varValue;
             break;
         default:
             parent::__set($strKey, $varValue);
             break;
     }
 }