public function __get($property)
 {
     switch ($property) {
         case 'contentInfo':
             return $this->content->contentInfo;
         case 'id':
             return $this->content->id;
         case 'versionInfo':
             return $this->getVersionInfo();
         case 'fields':
             return $this->getFields();
     }
     return parent::__get($property);
 }
Пример #2
0
 /**
  * Magic isset for signaling existence of convenience properties.
  *
  * @param string $property
  *
  * @return bool
  */
 public function __isset($property)
 {
     if ($property === 'contentInfo') {
         return true;
     }
     if ($property === 'id') {
         return true;
     }
     if ($property === 'versionInfo') {
         return true;
     }
     if ($property === 'fields') {
         return true;
     }
     return parent::__isset($property);
 }