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 91... Line 91...
91
        public function isLeafNode() {
91
        public function isLeafNode() {
92
                return false;
92
                return false;
93
        }
93
        }
94
 
94
 
95
        public function getContentPage(&$title, &$content, &$icon) {
95
        public function getContentPage(&$title, &$content, &$icon) {
96
                $icon = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webPath(__DIR__,true).'icon_big.png' : '';
96
                $icon = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webPath(__DIR__,true).'img/main_icon.png' : '';
97
 
97
 
98
                if ($this->isRoot()) {
98
                if ($this->isRoot()) {
99
                        $title = OIDplusOther::objectTypeTitle();
99
                        $title = OIDplusOther::objectTypeTitle();
100
 
100
 
101
                        $res = OIDplus::db()->query("select * from ###objects where parent = ?", array(self::root()));
101
                        $res = OIDplus::db()->query("select * from ###objects where parent = ?", array(self::root()));
Line 165... Line 165...
165
 
165
 
166
        public function getDirectoryName() {
166
        public function getDirectoryName() {
167
                if ($this->isRoot()) return $this->ns();
167
                if ($this->isRoot()) return $this->ns();
168
                return $this->ns().'_'.md5($this->nodeId(false));
168
                return $this->ns().'_'.md5($this->nodeId(false));
169
        }
169
        }
-
 
170
 
-
 
171
        public function rootIconname($mode) {
-
 
172
                return 'img/'.$mode.'_icon16.png';
-
 
173
        }
170
}
174
}