public function __get($name)
 {
     if (in_array($name, self::$userprops)) {
         return tusers::i()->getvalue($this->id, $name);
     }
     if (in_array($name, self::$pageprops)) {
         return $this->getvalue($this->id, $name);
     }
     return parent::__get($name);
 }
示例#2
0
 public function __get($name)
 {
     if (strbegin($name, 'word_')) {
         $id = (int) substr($name, strlen('word_'));
         if ($id > 0 && $this->itemexists($id)) {
             return $this->getlink($id);
         }
         return '';
     }
     return parent::__get($name);
 }
示例#3
0
 public function __get($name)
 {
     if (isset($this->classes[$name])) {
         return $this->getinstance($this->classes[$name]);
     }
     if (isset($this->items[$name])) {
         return $this->getinstance($name);
     }
     $class = 't' . $name;
     if (isset($this->items[$class])) {
         return $this->getinstance($class);
     }
     return parent::__get($name);
 }