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


PHP CComponentEngine::CheckComponentName方法代码示例

本文整理汇总了PHP中CComponentEngine::CheckComponentName方法的典型用法代码示例。如果您正苦于以下问题:PHP CComponentEngine::CheckComponentName方法的具体用法?PHP CComponentEngine::CheckComponentName怎么用?PHP CComponentEngine::CheckComponentName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CComponentEngine的用法示例。


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

示例1: IncludeModuleLangFile

}
$bLimitPhpAccess = !$USER->CanDoOperation('edit_php');
IncludeModuleLangFile(__FILE__);
CUtil::JSPostUnescape();
$obJSPopup = new CJSPopup('', array('TITLE' => GetMessage("comp_prop_title")));
$obJSPopup->ShowTitlebar();
$strWarning = "";
$arValues = array();
$arTemplate = false;
$arComponent = false;
$arComponentDescription = false;
$arParameterGroups = array();
$filesrc = "";
$abs_path = "";
$curTemplate = "";
if (!CComponentEngine::CheckComponentName($_GET["component_name"])) {
    $strWarning .= GetMessage("comp_prop_error_name") . "<br>";
}
if ($strWarning == "") {
    // try to read parameters from script file
    /* Try to open script containing the component call */
    if (!$src_path || $src_line <= 0) {
        $strWarning .= GetMessage("comp_prop_err_param") . "<br>";
    } else {
        $abs_path = $io->RelativeToAbsolutePath($src_path);
        $f = $io->GetFile($abs_path);
        $filesrc = $f->GetContents();
        if (!$filesrc || $filesrc == "") {
            $strWarning .= GetMessage("comp_prop_err_open") . "<br>";
        }
    }
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:component_props2.php

示例2: IncludeModuleLangFile

$relPath = $io->ExtractPathFromPath($src_path);
CComponentParamsManager::Init(array('requestUrl' => '/bitrix/admin/fileman_component_params.php', 'relPath' => $relPath));
IncludeModuleLangFile(__FILE__);
CUtil::JSPostUnescape();
$obJSPopup = new CJSPopup('', array('TITLE' => GetMessage("comp_prop_title")));
$obJSPopup->ShowTitlebar();
$strWarning = "";
$arValues = array();
$arTemplate = false;
$arComponent = false;
$arComponentDescription = false;
$arParameterGroups = array();
$filesrc = "";
$abs_path = "";
$curTemplate = "";
if (!CComponentEngine::CheckComponentName($componentName)) {
    $strWarning .= GetMessage("comp_prop_error_name") . "<br>";
}
if ($strWarning == "") {
    // try to read parameters from script file
    /* Try to open script containing the component call */
    if (!$src_path || $src_line <= 0) {
        $strWarning .= GetMessage("comp_prop_err_param") . "<br>";
    } else {
        $abs_path = $io->RelativeToAbsolutePath($src_path);
        $f = $io->GetFile($abs_path);
        $filesrc = $f->GetContents();
        if (!$filesrc || $filesrc == "") {
            $strWarning .= GetMessage("comp_prop_err_open") . "<br>";
        }
    }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:component_props2.php


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