コード例 #1
0
ファイル: component.php プロジェクト: janssit/nickys.janss.be
 public function __get($name)
 {
     if ($name == 'params' && !$this->_data['params'] instanceof JParameter) {
         $path = Library\ClassLoader::getInstance()->getApplication('admin');
         $file = $path . '/component/' . $this->option . '/resources/config/settings.xml';
         $this->_data['params'] = new JParameter($this->_data['params'], $file, 'component');
     }
     return parent::__get($name);
 }
コード例 #2
0
ファイル: node.php プロジェクト: janssit/www.rvproductions.be
 public function __get($column)
 {
     if ($column == 'fullpath' && !isset($this->_data['fullpath'])) {
         return $this->getFullpath();
     }
     if ($column == 'path') {
         return trim(($this->folder ? $this->folder . '/' : '') . $this->name, '/\\');
     }
     if ($column == 'display_name' && empty($this->_data['display_name'])) {
         return $this->name;
     }
     if ($column == 'destination_path') {
         $folder = !empty($this->destination_folder) ? $this->destination_folder . '/' : (!empty($this->folder) ? $this->folder . '/' : '');
         $name = !empty($this->destination_name) ? $this->destination_name : $this->name;
         return trim($folder . $name, '/\\');
     }
     if ($column == 'destination_fullpath') {
         return $this->getContainer()->path . '/' . $this->destination_path;
     }
     if ($column == 'adapter') {
         return $this->_adapter;
     }
     return parent::__get($column);
 }