Subversion Repositories oidplus

Rev

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

Rev 1121 Rev 1124
Line 195... Line 195...
195
                        }
195
                        }
196
                }
196
                }
197
        }
197
        }
198
 
198
 
199
        /**
199
        /**
200
         * @param array|null $row
-
 
201
         * @return string|null
-
 
202
         * @throws OIDplusException
-
 
203
         */
-
 
204
        public function getIcon(array $row=null) {
-
 
205
                $in_login_treenode = false;
-
 
206
                foreach (debug_backtrace() as $trace) {
-
 
207
                        // If we are inside the "Login" area (i.e. "Root object links"), we want the
-
 
208
                        // correct icon, not a folder icon!
-
 
209
                        if ($trace['class'] === OIDplusPagePublicLogin::class) $in_login_treenode = true;
-
 
210
                }
-
 
211
 
-
 
212
                if (!$in_login_treenode && !$this->isLeafNode()) return null; // foldericon
-
 
213
 
-
 
214
                return parent::getIcon($row);
-
 
215
        }
-
 
216
 
-
 
217
        /**
-
 
218
         * @return OIDplusPhp|null
200
         * @return OIDplusPhp|null
219
         */
201
         */
220
        public function one_up()/*: ?OIDplusPhp*/ {
202
        public function one_up()/*: ?OIDplusPhp*/ {
221
                $oid = $this->php;
203
                $oid = $this->php;
222
 
204