Subversion Repositories oidplus

Rev

Rev 1126 | Rev 1130 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1126 Rev 1127
Line 461... Line 461...
461
                        $ra_email = $this->getRaMail();
461
                        $ra_email = $this->getRaMail();
462
                } else {
462
                } else {
463
                        $ra_email = $row['ra_email'];
463
                        $ra_email = $row['ra_email'];
464
                }
464
                }
465
 
465
 
466
                $dirs = glob(OIDplus::localpath().'plugins/'.'*'.'/objectTypes/'.$namespace.'/');
466
                // $dirs = glob(OIDplus::localpath().'plugins/'.'*'.'/objectTypes/'.$namespace.'/');
467
 
-
 
468
                if (count($dirs) == 0) return null; // default icon (folder)
467
                // if (count($dirs) == 0) return null; // default icon (folder)
469
 
-
 
470
                $dir = substr($dirs[0], strlen(OIDplus::localpath()));
468
                // $dir = substr($dirs[0], strlen(OIDplus::localpath()));
-
 
469
                $reflection = new \ReflectionClass($this);
-
 
470
                $dir = dirname($reflection->getFilename());
-
 
471
                $dir = substr($dir, strlen(OIDplus::localpath()));
471
 
472
 
472
                if ($this->isRoot()) {
473
                if ($this->isRoot()) {
473
                        $icon = $dir . '/' . $this::treeIconFilename('root'); // see also OIDplusPagePublicObjects::get_treeicon_root()
474
                        $icon = $dir . '/' . $this::treeIconFilename('root');
474
                } else {
475
                } else {
475
                        // We use $this:: instead of self:: , because we want to call the overridden methods
476
                        // We use $this:: instead of self:: , because we want to call the overridden methods
476
                        if ($ra_email && OIDplus::authUtils()->isRaLoggedIn($ra_email)) {
477
                        if ($ra_email && OIDplus::authUtils()->isRaLoggedIn($ra_email)) {
477
                                if ($this->isLeafNode()) {
478
                                if ($this->isLeafNode()) {
478
                                        $icon = $dir . '/' . $this::treeIconFilename('own_leaf');
479
                                        $icon = $dir . '/' . $this::treeIconFilename('own_leaf');