当前位置: 首页>>代码示例>>PHP>>正文


PHP IncludeModuleLangFile函数代码示例

本文整理汇总了PHP中IncludeModuleLangFile函数的典型用法代码示例。如果您正苦于以下问题:PHP IncludeModuleLangFile函数的具体用法?PHP IncludeModuleLangFile怎么用?PHP IncludeModuleLangFile使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了IncludeModuleLangFile函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getMap

 public static function getMap()
 {
     IncludeModuleLangFile(__FILE__);
     $sqlHelper = Application::getConnection()->getSqlHelper();
     $fieldsMap = array('ID' => array('data_type' => 'integer', 'primary' => true, 'autocomplete' => true), 'NAME' => array('data_type' => 'string', 'required' => true, 'validation' => array(__CLASS__, 'validateName')), 'TABLE_NAME' => array('data_type' => 'string', 'required' => true, 'validation' => array(__CLASS__, 'validateTableName')), 'FIELDS_COUNT' => array('data_type' => 'integer', 'expression' => array('(SELECT COUNT(ID) FROM b_user_field WHERE b_user_field.ENTITY_ID = ' . $sqlHelper->getConcatFunction("'HLBLOCK_'", 'CAST(%s as char)') . ')', 'ID')));
     return $fieldsMap;
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:7,代码来源:highloadblock.php

示例2: Show

    public static function Show()
    {
        IncludeModuleLangFile($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/interface/prolog_main_admin.php');
        $supportFinishDate = COption::GetOptionString('main', '~support_finish_date', '');
        if ($supportFinishDate != '' && is_array($aSupportFinishDate = ParseDate($supportFinishDate, 'ymd'))) {
            $aGlobalOpt = CUserOptions::GetOption("global", "settings", array());
            if ($aGlobalOpt['messages']['support'] != 'N') {
                $supportFinishStamp = mktime(0, 0, 0, $aSupportFinishDate[1], $aSupportFinishDate[0], $aSupportFinishDate[2]);
                $supportDateDiff = ceil(($supportFinishStamp - time()) / 86400);
                $sSupportMess = '';
                $sSupWIT = " (<span onclick=\"BX.toggle(BX('supdescr'))\" style='border-bottom: 1px dashed #1c91e7; color: #1c91e7; cursor: pointer;'>" . GetMessage("prolog_main_support_wit") . "</span>)";
                if ($supportDateDiff >= 0 && $supportDateDiff <= 30) {
                    $sSupportMess = GetMessage("prolog_main_support11", array('#FINISH_DATE#' => GetTime($supportFinishStamp), '#DAYS_AGO#' => $supportDateDiff == 0 ? GetMessage("prolog_main_today") : GetMessage('prolog_main_support_days', array('#N_DAYS_AGO#' => $supportDateDiff)), '#LICENSE_KEY#' => md5(LICENSE_KEY), '#WHAT_IS_IT#' => $sSupWIT, '#SUP_FINISH_DATE#' => GetTime(mktime(0, 0, 0, $aSupportFinishDate[1] + 1, $aSupportFinishDate[0], $aSupportFinishDate[2]))));
                } elseif ($supportDateDiff < 0 && $supportDateDiff >= -30) {
                    $sSupportMess = GetMessage("prolog_main_support21", array('#FINISH_DATE#' => GetTime($supportFinishStamp), '#DAYS_AGO#' => -$supportDateDiff, '#LICENSE_KEY#' => md5(LICENSE_KEY), '#WHAT_IS_IT#' => $sSupWIT, '#SUP_FINISH_DATE#' => GetTime(mktime(0, 0, 0, $aSupportFinishDate[1] + 1, $aSupportFinishDate[0], $aSupportFinishDate[2]))));
                } elseif ($supportDateDiff < -30) {
                    $sSupportMess = GetMessage("prolog_main_support31", array('#FINISH_DATE#' => GetTime($supportFinishStamp), '#LICENSE_KEY#' => md5(LICENSE_KEY), '#WHAT_IS_IT#' => $sSupWIT));
                }
                if ($sSupportMess != '') {
                    $sSupportMess .= GetMessage('ACRIT_EXPORTPRO_BUY_LICENCE');
                    $userOption = CUserOptions::GetOption("main", "admSupInf");
                    if (mktime() > $userOption["showInformerDate"]) {
                        $prolongUrl = "/bitrix/admin/buy_support.php?lang=" . LANGUAGE_ID;
                        if (!in_array(LANGUAGE_ID, array("ru", "ua")) || IntVal(COption::GetOptionString("main", "~PARAM_PARTNER_ID")) <= 0) {
                            require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/classes/general/update_client.php";
                            $prolongUrl = "http://www.acrit-studio.ru/shop/list/lupd/";
                        }
                        echo BeginNote('style="position: relative; top: -15px;"');
                        ?>
                        
                        <div style="float: right; padding-left: 50px; margin-top: -5px; text-align: center;">
                            <a href="<?php 
                        echo $prolongUrl;
                        ?>
" target="_blank" class="adm-btn adm-btn-save" style="margin-bottom: 4px;"><?php 
                        echo GetMessage("prolog_main_support_button_prolong");
                        ?>
</a><br />
                            <a href="http://www.acrit-studio.ru/market/" target="_blank"><?php 
                        echo GetMessage("prolog_main_support_button_prolong_modules");
                        ?>
</a>
                        </div>
                        <?php 
                        echo $sSupportMess;
                        ?>
                        <div id="supdescr" style="display: none;"><br /><br /><b><?php 
                        echo GetMessage("prolog_main_support_wit_descr1");
                        ?>
</b><hr><?php 
                        echo GetMessage("prolog_main_support_wit_descr2");
                        ?>
</div>
                        <?php 
                        echo EndNote();
                    }
                }
            }
        }
    }
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:60,代码来源:licence.php

示例3: __construct

 public function __construct()
 {
     IncludeModuleLangFile(__FILE__);
     $this->MODULE_ID = get_class($this);
     $this->MODULE_NAME = GetMessage(strtoupper($this->MODULE_ID) . '_MODULE_NAME');
     $this->MODULE_DESCRIPTION = GetMessage(strtoupper($this->MODULE_ID) . '_MODULE_DESCRIPTION');
 }
开发者ID:ASDAFF,项目名称:1C-Bitrix-module---STATGA,代码行数:7,代码来源:index.php

示例4: ShowForm

    private function ShowForm($type, $message, $buttonName = '')
    {
        $keys = array_keys($GLOBALS);
        for ($i = 0; $i < count($keys); $i++) {
            if ($keys[$i] != 'i' && $keys[$i] != 'GLOBALS' && $keys[$i] != 'strTitle' && $keys[$i] != 'filepath') {
                global ${$keys[$i]};
            }
        }
        $PathInstall = str_replace('\\', '/', __FILE__);
        $PathInstall = substr($PathInstall, 0, strlen($PathInstall) - strlen('/index.php'));
        IncludeModuleLangFile($PathInstall . '/install.php');
        $APPLICATION->SetTitle(GetMessage('ASD_MODULE_MONEY_NAME'));
        include $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_admin_after.php';
        echo CAdminMessage::ShowMessage(array('MESSAGE' => $message, 'TYPE' => $type));
        ?>
		<form action="<?php 
        echo $APPLICATION->GetCurPage();
        ?>
" method="get">
		<p>
			<input type="hidden" name="lang" value="<?php 
        echo LANG;
        ?>
" />
			<input type="submit" value="<?php 
        echo strlen($buttonName) ? $buttonName : GetMessage('MOD_BACK');
        ?>
" />
		</p>
		</form>
		<?php 
        include $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/epilog_admin.php';
        die;
    }
开发者ID:Hawkart,项目名称:megatv,代码行数:34,代码来源:index.php

示例5: departmentFields

 public static function departmentFields($arParams)
 {
     IncludeModuleLangFile(__FILE__);
     $arFields = $GLOBALS['USER_FIELD_MANAGER']->GetUserFields('IBLOCK_' . self::getDeptIblock() . '_SECTION', 0, LANGUAGE_ID);
     $res = array("ID" => "ID", "NAME" => GetMessage('INTR_STRUCTURE_NAME'), 'SORT' => GetMessage('INTR_STRUCTURE_SORT'), 'PARENT' => GetMessage('INTR_STRUCTURE_DEPARTMENT'), 'UF_HEAD' => $arFields['UF_HEAD']['EDIT_FORM_LABEL']);
     return $res;
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:7,代码来源:rest.php

示例6: Show

	function Show($WEB_FORM_VARNAME, $arrVALUES=false, $SHOW_TEMPLATE=false, $PREVIEW="N")
	{
		global $DB, $MESS, $APPLICATION, $USER, $_REQUEST, $HTTP_POST_VARS, $HTTP_GET_VARS, $arrFIELDS;
		$err_mess = (CAllForm::err_mess())."<br>Function: Show<br>Line: ";
		if ($arrVALUES===false) $arrVALUES = $_REQUEST;

		$z = CForm::GetBySID($WEB_FORM_VARNAME);
		$zr = $z->Fetch();
		$WEB_FORM_ID = $FORM_ID = intval($zr["ID"]);
		$WEB_FORM_ID = CForm::GetDataByID($WEB_FORM_ID, $arForm, $arQuestions, $arAnswers, $arDropDown, $arMultiSelect);
		if (intval($WEB_FORM_ID)>0)
		{
			$F_RIGHT = CForm::GetPermission($WEB_FORM_ID);
			if (intval($F_RIGHT)>=10)
			{
				if (strlen(trim($SHOW_TEMPLATE))>0) $template = $SHOW_TEMPLATE;
				else
				{
					if (strlen(trim($arForm["SHOW_TEMPLATE"]))<=0) $template = "default.php";
					else $template = $arForm["SHOW_TEMPLATE"];
				}
				$path = COption::GetOptionString("form","SHOW_TEMPLATE_PATH");
				IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/form/include.php");
				include(GetLangFileName($_SERVER["DOCUMENT_ROOT"].$path."lang/", "/".$template));
				if ($APPLICATION->GetShowIncludeAreas())
				{
					$arIcons = Array();
					if (CModule::IncludeModule("fileman"))
					{
						$arIcons[] =
								Array(
									"URL" => "/freetrix/admin/fileman_file_edit.php?lang=".LANGUAGE_ID."&site=".SITE_ID."&full_src=Y&path=". urlencode($path.$template),
									"SRC" => "/freetrix/images/form/panel/edit_template.gif",
									"ALT" => GetMessage("FORM_PUBLIC_ICON_TEMPLATE")
								);
						$arrUrl = parse_url($_SERVER["REQUEST_URI"]);
						$arIcons[] =
								Array(
									"URL" => "/freetrix/admin/fileman_file_edit.php?lang=".LANGUAGE_ID."&site=".SITE_ID."&full_src=Y&path=". urlencode($arrUrl["path"]),
									"SRC" => "/freetrix/images/form/panel/edit_file.gif",
									"ALT" => GetMessage("FORM_PUBLIC_ICON_HANDLER")
								);
					}
					$arIcons[] =
							Array(
								"URL" => "/freetrix/admin/form_edit.php?lang=".LANGUAGE_ID."&ID=".$WEB_FORM_ID,
								"SRC" => "/freetrix/images/form/panel/edit_form.gif",
								"ALT" => GetMessage("FORM_PUBLIC_ICON_SETTINGS")
							);
					echo $APPLICATION->IncludeStringBefore($arIcons);
				}
				include($_SERVER["DOCUMENT_ROOT"].$path.$template);
				if ($APPLICATION->GetShowIncludeAreas())
				{
					echo $APPLICATION->IncludeStringAfter();
				}
			}
		}
	}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:59,代码来源:form_cform_old.php

示例7: getAllDescriptions

 public static function getAllDescriptions()
 {
     if (!self::$allDescriptions) {
         IncludeModuleLangFile(__FILE__);
         self::$allDescriptions = array(self::Dflt => GetMessage('CRM_PRSN_NM_FRMT_DEFAULT'), self::FirstLast => GetMessage('CRM_PRSN_NM_FRMT_FIRST_LAST'), self::FirstSecondLast => GetMessage('CRM_PRSN_NM_FRMT_FIRST_SECOND_LAST'), self::LastFirst => GetMessage('CRM_PRSN_NM_FRMT_LAST_FIRST'), self::LastFirstSecond => GetMessage('CRM_PRSN_NM_FRMT_LAST_FIRST_SECOND'));
     }
     return self::$allDescriptions;
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:8,代码来源:personnameformatter.php

示例8: __construct

 /**
  *
  */
 public function __construct()
 {
     // Magic... Don't works, if in top of file.
     IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . BX_ROOT . '/modules/' . $this->MODULE_ID . '/install/index.php');
     $this->MODULE_NAME = GetMessage('MAILTRANSPORT_MODULE_NAME');
     $this->MODULE_DESCRIPTION = GetMessage('MAILTRANSPORT_MODULE_DESCRIPTION');
     // Fail.
     $this->PARTNER_NAME = "Alexey Shockov";
     $this->PARTNER_URI = "http://alexey.shockov.com/";
 }
开发者ID:alexeyshockov,项目名称:bitrix-mail-transport,代码行数:13,代码来源:index.php

示例9: thelikers_painkiller

    function thelikers_painkiller(){
        include dirname( __FILE__ ) . '/version.php';
        IncludeModuleLangFile(__FILE__);

        $this->MODULE_VERSION = $arModuleVersion["VERSION"];
        $this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"];
        $this->MODULE_NAME = GetMessage('PAINKILLER_MODULE_NAME');
        $this->MODULE_DESCRIPTION = GetMessage('PAINKILLER_DESCRIPTION');
        $this->PARTNER_NAME = GetMessage('PAINKILLER_PARTNER_NAME');
        $this->PARTNER_URI = "http://1c-bitrix.ru/partners/310515.php";
    }
开发者ID:ASDAFF,项目名称:bitrix-painkiller-module,代码行数:11,代码来源:index.php

示例10: __construct

 public function __construct()
 {
     IncludeModuleLangFile(__FILE__);
     $this->savedMaxExecutionTime = ini_get("max_execution_time");
     if ($this->savedMaxExecutionTime <= 0) {
         $phpMaxExecutionTime = 30;
     } else {
         $phpMaxExecutionTime = $this->savedMaxExecutionTime - 2;
     }
     $this->maximumExecutionTime = time() + $phpMaxExecutionTime;
     set_time_limit(0);
 }
开发者ID:spas-viktor,项目名称:books,代码行数:12,代码来源:user.php

示例11: loadMessages

 protected static function loadMessages(&$class)
 {
     if (array_key_exists($class, self::$_arLangMessages)) {
         return;
     }
     if (static::FILE === null) {
         throw new \ErrorException('You must redeclare ' . $class . '::FILE constant exactly: const FILE = __FILE__;');
     }
     if (static::ID === null) {
         throw new \ErrorException('You must redeclare ' . $class . '::ID constant exactly: const ID = "YOUR_LANG_MESSAGES_PREFIX";');
     }
     self::$_arLangMessages[$class] = IncludeModuleLangFile(static::FILE, false, true);
 }
开发者ID:OpenBX,项目名称:obx.core,代码行数:13,代码来源:base.php

示例12: __construct

 public function __construct()
 {
     IncludeModuleLangFile(__FILE__);
     $arModuleVersion = [];
     include __DIR__ . '/version.php';
     if (is_array($arModuleVersion) && array_key_exists('VERSION', $arModuleVersion)) {
         $this->MODULE_VERSION = $arModuleVersion['VERSION'];
         $this->MODULE_VERSION_DATE = $arModuleVersion['VERSION_DATE'];
     }
     $this->MODULE_NAME = GetMessage('NOTAMEDIA_AGENT_MODULE_NAME');
     $this->MODULE_DESCRIPTION = GetMessage('NOTAMEDIA_AGENT_MODULE_DESCRIPTION');
     $this->PARTNER_NAME = GetMessage('NOTAMEDIA_AGENT_PARTNER_NAME');
     $this->PARTNER_URI = GetMessage('NOTAMEDIA_AGENT_PARTNER_URI');
 }
开发者ID:notamedia,项目名称:bitrix-agent-manager,代码行数:14,代码来源:index.php

示例13: GetTasks

 function GetTasks()
 {
     IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/fileman/admin/task_description.php");
     $arTasks = array();
     $res = CTask::GetList(array('LETTER' => 'asc'), array('MODULE_ID' => 'fileman', 'BINDING' => 'stickers'));
     while ($arRes = $res->Fetch()) {
         $name = '';
         if ($arRes['SYS']) {
             $name = GetMessage('TASK_NAME_' . strtoupper($arRes['NAME']));
         }
         if (strlen($name) == 0) {
             $name = $arRes['NAME'];
         }
         $arTasks[$arRes['ID']] = array('title' => $name, 'letter' => $arRes['LETTER']);
     }
     return $arTasks;
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:17,代码来源:sticker.php

示例14: testExceptions

 /**
  * @param AError $class
  * @param $path
  * @dataProvider getClassList
  */
 public function testExceptions($class, $path)
 {
     $arErrMsg = IncludeModuleLangFile(static::$_modulesDir . $path, false, true);
     $this->assertTrue(is_array($arErrMsg));
     $this->assertNotEmpty($arErrMsg);
     $Reflection = new \ReflectionClass($class);
     $arConstants = $Reflection->getConstants();
     foreach ($arConstants as $constantName => $constantValue) {
         if (substr($constantName, 0, 2) !== 'E_') {
             continue;
         }
         $errCode = $class::ID . $constantValue;
         $this->assertArrayHasKey($errCode, $arErrMsg);
         /** @noinspection PhpUndefinedMethodInspection */
         $this->assertEquals($arErrMsg[$errCode], $class::getLangMessage($constantValue));
     }
 }
开发者ID:OpenBX,项目名称:obx.core,代码行数:22,代码来源:TestErrorExceptions.php

示例15: checkHeaders

 public function checkHeaders(array &$messages)
 {
     IncludeModuleLangFile(__FILE__);
     $map = $this->headerMap !== null ? $this->headerMap : array();
     if ($map === null) {
         throw new Main\SystemException("Invalid operation. HeaderMap is not assigned.");
     }
     $hasName = isset($map['First']) || isset($map['Last']);
     if (!$hasName) {
         $messages[] = GetMessage('CRM_IMPORT_YAHOO_ERROR_FIELDS_NOT_FOUND', array('#FIELD_LIST#' => "'First', 'Last'"));
     }
     $hasEmail = isset($map['Email']) || isset($map['Alternate Email 1']);
     $hasPhone = isset($map['Home']) || isset($map['Work']) || isset($map['Mobile']) || isset($map['Other']);
     if (!$hasName && !$hasEmail && !$hasPhone) {
         $messages[] = GetMessage('CRM_IMPORT_YAHOO_REQUIREMENTS');
     }
     return $hasName || $hasEmail || $hasPhone;
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:18,代码来源:yahoocsvfileimport.php


注:本文中的IncludeModuleLangFile函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。