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 !$this->isBaseOnly(); |
87 | return !$this->isBaseOnly(); |
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 = OIDplusGs1::objectTypeTitle(); |
94 | $title = OIDplusGs1::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 229... | Line 229... | ||
229 | 229 | ||
230 | public function getDirectoryName() { |
230 | public function getDirectoryName() { |
231 | if ($this->isRoot()) return $this->ns(); |
231 | if ($this->isRoot()) return $this->ns(); |
232 | return $this->ns().'_'.$this->nodeId(false); // safe, because there are only numbers |
232 | return $this->ns().'_'.$this->nodeId(false); // safe, because there are only numbers |
233 | } |
233 | } |
- | 234 | ||
- | 235 | public function rootIconname($mode) { |
|
- | 236 | return 'img/'.$mode.'_icon16.png'; |
|
- | 237 | } |
|
234 | } |
238 | } |