Ejemplo n.º 1
0
 public function __get($name)
 {
     if ($this->childtable) {
         if ($name == 'id') {
             return $this->data['id'];
         }
         if (method_exists($this, $get = 'get' . $name)) {
             return $this->{$get}();
         }
         if (array_key_exists($name, $this->childdata)) {
             return $this->childdata[$name];
         }
     }
     // tags and categories theme tag
     switch ($name) {
         case 'catlinks':
             return $this->get_taglinks('categories', false);
         case 'taglinks':
             return $this->get_taglinks('tags', false);
         case 'excerptcatlinks':
             return $this->get_taglinks('categories', true);
         case 'excerpttaglinks':
             return $this->get_taglinks('tags', true);
     }
     return parent::__get($name);
 }
Ejemplo n.º 2
0
 public function __get($name)
 {
     if ($name == 'content') {
         return $this->formresult . $this->getcontent();
     }
     if ($name == 'id') {
         return $this->data['id'];
     }
     if (method_exists($this, $get = 'get' . $name)) {
         return $this->{$get}();
     }
     if ($this->is_owner_prop($name)) {
         return $this->getownerprop($name);
     }
     return parent::__get($name);
 }