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); }
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); }
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); }