Subversion Repositories oidplus

Rev

Rev 790 | Rev 801 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 790 Rev 800
Line 86... Line 86...
86
        public function isLeafNode() {
86
        public function isLeafNode() {
87
                return false;
87
                return false;
88
        }
88
        }
89
 
89
 
90
        public function getContentPage(&$title, &$content, &$icon) {
90
        public function getContentPage(&$title, &$content, &$icon) {
91
                $icon = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webPath(__DIR__,true).'icon_big.png' : '';
91
                $icon = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webPath(__DIR__,true).'img/main_icon.png' : '';
92
 
92
 
93
                if ($this->isRoot()) {
93
                if ($this->isRoot()) {
94
                        $title = OIDplusDomain::objectTypeTitle();
94
                        $title = OIDplusDomain::objectTypeTitle();
95
 
95
 
96
                        $res = OIDplus::db()->query("select * from ###objects where parent = ?", array(self::root()));
96
                        $res = OIDplus::db()->query("select * from ###objects where parent = ?", array(self::root()));
Line 164... Line 164...
164
 
164
 
165
        public function getDirectoryName() {
165
        public function getDirectoryName() {
166
                if ($this->isRoot()) return $this->ns();
166
                if ($this->isRoot()) return $this->ns();
167
                return $this->ns().'_'.md5($this->nodeId(false));
167
                return $this->ns().'_'.md5($this->nodeId(false));
168
        }
168
        }
-
 
169
 
-
 
170
        public function rootIconname($mode) {
-
 
171
                return 'img/'.$mode.'_icon16.png';
-
 
172
        }
169
}
173
}