<?php
namespace Claromentis\Menu;

$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"] ?: array()) + array("_0c5123aa744f69bb" . "c0e8b3ea2f6e847d" => base64_decode("bG1zZw" . "=="), "_7631abf8f23410319b7115" . "e54aa60c6d" => base64_decode("bWVudV9idWlsZGVy" . "LmZvbGRlcg=="), "_787716e85" . "b3b1de5c15" . "456747d65b" . "ab1" => base64_decode("bWVudV9idWlsZGVyLmxp" . "bms="), "_f88c09804" . "67f304d271" . "bba91bea8d" . "a3f" => base64_decode("bWVudV9idWl" . "sZGVyLnBhZ2" . "U="));






class NodeType
{
    const PAGE = 1;
    const LINK = 2;
    const FOLDER = 3;
    public static function GetDescription($type)
    {
        static $node_type_descr_localized;
        if (!isset($node_type_descr_localized)) {
            $node_type_descr_localized = array(self::PAGE => $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_0c5123aa744f69bbc0e" . "8b3ea2f6e847d"]($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_f88c0980467f304d271b" . "ba91bea8da3f"]), self::LINK => $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_0c5123aa744f69bbc0e8b3ea2" . "f6e847d"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_787716e85" . "b3b1de5c15" . "456747d65b" . "ab1"]), self::FOLDER => $GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_0c5123aa744f6" . "9bbc0e8b3ea2f6" . "e847d"]($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_7631abf8f23410319" . "b7115e54aa60c6d"]));
        }
        if (isset($node_type_descr_localized[$type])) {
            return $node_type_descr_localized[$type];
        } else {
            return null;
        }
    }
    public static function GetByCode($code)
    {
        static $node_types = array("page" => self::PAGE, "link" => self::LINK, "folder" => self::FOLDER);
        if (isset($node_types[$code])) {
            return $node_types[$code];
        } else {
            return null;
        }
    }
    public static function GetCode($type)
    {
        static $codes = array(self::PAGE => "page", self::LINK => "link", self::FOLDER => "folder");
        if (isset($codes[$type])) {
            return $codes[$type];
        } else {
            return null;
        }
    }
}