<?php
namespace Claromentis\Search;

$GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_a591754a8ddc" . "dbda9c80f1db4" . "d911e14" => base64_decode("aXNfbnVsbA=" . "="), "_822680520327e9387ae2d5c065ea52" . "e1" => base64_decode("YXJyY" . "XlfZm" . "xpcA=" . "="));
use Claromentis\Search\ItemType\Indexing as ITI;





class TypeConverter
{
    protected static $num_to_str = null;
    protected static $str_to_num = null;
    public static function NumToStr($_556b5f873a16cb1e6c433be7b84986c3)
    {
        self::Init();
        return self::$num_to_str[$_556b5f873a16cb1e6c433be7b84986c3];
    }
    public static function NumToArray($_2ecb78ad6faa71d796229d683651d70f)
    {
        self::Init();
        $_3f2b9f6497e9b07683841065b2802295 = array();
        foreach (self::$num_to_str as $_d10f5990572371234949e1098af64137 => $_34460bffd3af92da81e46ee15e9e66e3) {
            if ($_2ecb78ad6faa71d796229d683651d70f & $_d10f5990572371234949e1098af64137) {
                $_3f2b9f6497e9b07683841065b2802295[] = $_34460bffd3af92da81e46ee15e9e66e3;
            }
        }
        return $_3f2b9f6497e9b07683841065b2802295;
    }
    public static function ArrayToNum($_dd71aee3bbba3e5a00ce66010e5176a9)
    {
        self::Init();
        $_d10f5990572371234949e1098af64137 = 0;
        foreach ($_dd71aee3bbba3e5a00ce66010e5176a9 as $_15a860e9b319fc72828fc64a6868dbb2) {
            $_d10f5990572371234949e1098af64137 |= self::StrToNum($_15a860e9b319fc72828fc64a6868dbb2);
        }
        return $_d10f5990572371234949e1098af64137;
    }
    public static function StrToNum($_2a34a5c75490636081526ededde991c8)
    {
        self::Init();
        if (!isset(self::$str_to_num[$_2a34a5c75490636081526ededde991c8])) {
            return null;
        }
        return self::$str_to_num[$_2a34a5c75490636081526ededde991c8];
    }
    protected static function Init()
    {
        if (!$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_a591754" . "a8ddcdbd" . "a9c80f1d" . "b4d911e1" . "4"](self::$str_to_num)) {
            return;
        }
        self::$num_to_str = array(
            SEARCH_OBJ_TYPE_DOCUMENT => ITI\Document::TYPE_NAME,
            SEARCH_OBJ_TYPE_FOLDER => ITI\Folder::TYPE_NAME,
            SEARCH_OBJ_TYPE_PUB_PAGE => ITI\PublishPage::TYPE_NAME,
            SEARCH_OBJ_TYPE_FORUM => ITI\ForumMessage::TYPE_NAME,
            
            
            SEARCH_OBJ_TYPE_NEWS => ITI\News::TYPE_NAME,
            SEARCH_OBJ_TYPE_USER => ITI\User::TYPE_NAME,
            SEARCH_OBJ_TYPE_HD_ISSUE => ITI\ICIssue::TYPE_NAME,
        );
        self::$str_to_num = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_82268052032" . "7e9387ae2d5c" . "065ea52e1"](self::$num_to_str);
    }
}