public function __get($name)
 {
     if (isset($this->item[$name])) {
         return $this->item[$name];
     }
     return parent::__get($name);
 }
Example #2
0
 public function __get($name)
 {
     if (array_key_exists($name, $this->templates)) {
         return $this->themeprops->setpath($name);
     }
     if ($name == 'comment') {
         return $this->themeprops->setpath('content.post.templatecomments.comments.comment');
     }
     if ($name == 'sidebar') {
         return $this->themeprops->setroot($this->templates['sidebars'][0]);
     }
     if (preg_match('/^sidebar(\\d)$/', $name, $m)) {
         return $this->themeprops->setroot($this->templates['sidebars'][$m[1]]);
     }
     return parent::__get($name);
 }