Subversion Repositories oidplus

Rev

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

Rev 1035 Rev 1050
Line 15... Line 15...
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
17
 * limitations under the License.
18
 */
18
 */
19
 
19
 
20
if (!defined('INSIDE_OIDPLUS')) die();
20
namespace ViaThinkSoft\OIDplus;
21
 
21
 
22
class OIDplusGuid extends OIDplusObject {
22
class OIDplusGuid extends OIDplusObject {
23
        private $guid;
23
        private $guid;
24
 
24
 
25
        public function __construct($guid) {
25
        public function __construct($guid) {
Line 178... Line 178...
178
        public function getIcon($row=null) {
178
        public function getIcon($row=null) {
179
                $in_login_treenode = false;
179
                $in_login_treenode = false;
180
                foreach (debug_backtrace() as $trace) {
180
                foreach (debug_backtrace() as $trace) {
181
                        // If we are inside the "Login" area (i.e. "Root object links"), we want the
181
                        // If we are inside the "Login" area (i.e. "Root object links"), we want the
182
                        // correct icon, not a folder icon!
182
                        // correct icon, not a folder icon!
183
                        if ($trace['class'] === 'OIDplusPagePublicLogin') $in_login_treenode = true;
183
                        if ($trace['class'] === OIDplusPagePublicLogin::class) $in_login_treenode = true;
184
                }
184
                }
185
 
185
 
186
                if (!$in_login_treenode && !$this->isLeafNode()) return null; // foldericon
186
                if (!$in_login_treenode && !$this->isLeafNode()) return null; // foldericon
187
 
187
 
188
                return parent::getIcon($row);
188
                return parent::getIcon($row);