Example #1
0
 public function __get($name)
 {
     if ($name == 'guid' and !isset($this->guid)) {
         $this->guid = Field::createGUID($this);
     }
     if ($name == 'publish-label' && ($this->properties->{$name} == '' || !isset($this->{$name}))) {
         $this->{$name} = $this->properties->name;
     }
     if (!isset($this->properties->{$name})) {
         return null;
     }
     return $this->properties->{$name};
 }