uawdijnntqw1x1x1
IP : 3.145.163.51
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
nn.axolotls.ru
/
bitrix
/
modules
/
crm
/
lib
/
customertype.php
/
/
<?php namespace Bitrix\Crm; use Bitrix\Main\Localization\Loc; class CustomerType { const UNDEFINED = 0; const GENERAL = 1; const RETURNING = 2; const GENERAL_NAME = 'GENERAL'; const RETURNING_NAME = 'RETURNING'; private static $ALL_DESCRIPTIONS = null; /** * Try to resolve type name by ID. * @param int $ID Type ID. * @return string */ public static function resolveName($ID) { if (!is_numeric($ID)) { return ''; } $ID = (int)$ID; if ($ID <= 0) { return ''; } if($ID === self::GENERAL) { return self::GENERAL_NAME; } else if($ID === self::RETURNING) { return self::RETURNING_NAME; } return ''; } public static function getAllDescriptions() { if(!self::$ALL_DESCRIPTIONS[LANGUAGE_ID]) { Loc::loadCustomMessages(__FILE__); self::$ALL_DESCRIPTIONS[LANGUAGE_ID] = array( self::GENERAL => GetMessage('CRM_CUSTOMER_GENERAL'), self::RETURNING => GetMessage('CRM_CUSTOMER_RETURNING') ); } return self::$ALL_DESCRIPTIONS[LANGUAGE_ID]; } public static function getDescription($typeID) { $typeID = intval($typeID); $all = self::getAllDescriptions(); return isset($all[$typeID]) ? $all[$typeID] : ''; } }
/var/www/axolotl/data/www/nn.axolotls.ru/bitrix/modules/crm/lib/customertype.php