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 128... Line 128...
128
        }
128
        }
129
 
129
 
130
        public function getContentPage(&$title, &$content, &$icon) {
130
        public function getContentPage(&$title, &$content, &$icon) {
131
                if ($this->isClassCWeid()) {
131
                if ($this->isClassCWeid()) {
132
                        // TODO: Also change treeview menu mini-icon?
132
                        // TODO: Also change treeview menu mini-icon?
133
                        $icon = file_exists(__DIR__.'/icon_big_weid.png') ? OIDplus::webPath(__DIR__,true).'icon_big_weid.png' : '';
133
                        $icon = file_exists(__DIR__.'/img/weid_icon.png') ? OIDplus::webPath(__DIR__,true).'img/weid_icon.png' : '';
134
                } else {
134
                } else {
135
                        $icon = file_exists(__DIR__.'/icon_big.png') ? OIDplus::webPath(__DIR__,true).'icon_big.png' : '';
135
                        $icon = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webPath(__DIR__,true).'img/main_icon.png' : '';
136
                }
136
                }
137
 
137
 
138
                if ($this->isRoot()) {
138
                if ($this->isRoot()) {
139
                        $title = OIDplusOid::objectTypeTitle();
139
                        $title = OIDplusOid::objectTypeTitle();
140
 
140
 
Line 480... Line 480...
480
        public function getDirectoryName() {
480
        public function getDirectoryName() {
481
                if ($this->isRoot()) return $this->ns();
481
                if ($this->isRoot()) return $this->ns();
482
                $oid = $this->nodeId(false);
482
                $oid = $this->nodeId(false);
483
                return $this->ns().'_'.str_replace('.', '_', $oid);
483
                return $this->ns().'_'.str_replace('.', '_', $oid);
484
        }
484
        }
-
 
485
 
-
 
486
        public function rootIconname($mode) {
-
 
487
                return 'img/'.$mode.'_icon16.png';
-
 
488
        }
485
}
489
}