Rev 34 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 34 | Rev 55 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | public function isLeafNode() { |
86 | public function isLeafNode() { |
87 | return uuid_valid($this->guid); |
87 | return uuid_valid($this->guid); |
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') ? 'plugins/objectTypes/'.basename(__DIR__).'/icon_big.png' : ''; |
|
- | 92 | ||
91 | if ($this->isRoot()) { |
93 | if ($this->isRoot()) { |
92 | $title = OIDplusGuid::objectTypeTitle(); |
94 | $title = OIDplusGuid::objectTypeTitle(); |
93 | 95 | ||
94 | $res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where parent = '".OIDplus::db()->real_escape_string(self::root())."'"); |
96 | $res = OIDplus::db()->query("select * from ".OIDPLUS_TABLENAME_PREFIX."objects where parent = '".OIDplus::db()->real_escape_string(self::root())."'"); |
95 | if (OIDplus::db()->num_rows($res) > 0) { |
97 | if (OIDplus::db()->num_rows($res) > 0) { |