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 97... | Line 97... | ||
97 | public function isLeafNode() { |
97 | public function isLeafNode() { |
98 | return false; |
98 | return false; |
99 | } |
99 | } |
100 | 100 | ||
101 | public function getContentPage(&$title, &$content, &$icon) { |
101 | public function getContentPage(&$title, &$content, &$icon) { |
102 | $icon = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webPath(__DIR__,true).'icon_big.png' : ''; |
102 | $icon = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webPath(__DIR__,true).'img/main_icon.png' : ''; |
103 | 103 | ||
104 | if ($this->isRoot()) { |
104 | if ($this->isRoot()) { |
105 | $title = OIDplusDoi::objectTypeTitle(); |
105 | $title = OIDplusDoi::objectTypeTitle(); |
106 | 106 | ||
107 | $res = OIDplus::db()->query("select * from ###objects where parent = ?", array(self::root())); |
107 | $res = OIDplus::db()->query("select * from ###objects where parent = ?", array(self::root())); |
Line 181... | Line 181... | ||
181 | 181 | ||
182 | public function getDirectoryName() { |
182 | public function getDirectoryName() { |
183 | if ($this->isRoot()) return $this->ns(); |
183 | if ($this->isRoot()) return $this->ns(); |
184 | return $this->ns().'_'.md5($this->nodeId(false)); |
184 | return $this->ns().'_'.md5($this->nodeId(false)); |
185 | } |
185 | } |
- | 186 | ||
- | 187 | public function rootIconname($mode) { |
|
- | 188 | return 'img/'.$mode.'_icon16.png'; |
|
- | 189 | } |
|
186 | } |
190 | } |