__get() public method

Return an object property
public __get ( string $strKey ) : mixed
$strKey string
return mixed
Esempio n. 1
0
 /**
  * Return an object property
  *
  * @param string $strKey
  *
  * @return mixed
  */
 public function __get($strKey)
 {
     switch ($strKey) {
         case 'id':
             return $this->intId;
             break;
         case 'parentTable':
             return $this->ptable;
             break;
         case 'childTable':
             return $this->ctable;
             break;
         case 'rootIds':
             return $this->root;
             break;
         case 'createNewVersion':
             return $this->blnCreateNewVersion;
             break;
     }
     return parent::__get($strKey);
 }
Esempio n. 2
0
 /**
  * Return an object property
  *
  * @param string $strKey
  *
  * @return mixed
  */
 public function __get($strKey)
 {
     switch ($strKey) {
         case 'path':
             return $this->strPath;
             break;
         case 'extension':
             return $this->strExtension;
             break;
         case 'createNewVersion':
             return $this->blnCreateNewVersion;
             break;
         case 'isDbAssisted':
             return $this->blnIsDbAssisted;
             break;
     }
     return parent::__get($strKey);
 }