本文整理汇总了PHP中Component::callComponent方法的典型用法代码示例。如果您正苦于以下问题:PHP Component::callComponent方法的具体用法?PHP Component::callComponent怎么用?PHP Component::callComponent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Component
的用法示例。
在下文中一共展示了Component::callComponent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ShowMsg
?>
</h3>
<?php
ShowMsg();
?>
<p>
<a href="?ACTION=ADD&TYPE=<?php
echo sXss($_GET['TYPE']);
?>
"><?php
echo LANG("MODULE_CATALOG_ADD_TEXT");
?>
</a>
</p>
<?php
Component::callComponent(":catalog.list", "_admin", array("SHOW_FIELDS" => array("ID", "NAME", "CATALOG_TYPE_ID", "SORT", "ACTIVE", "SID", "CODE"), "CATALOG_TYPE" => $_GET["TYPE"]));
?>
<?php
break;
}
?>
<p>
<a href="/scriptacid/admin/catalog/">Список типов</a>
</p>
<?php
}
?>
示例2: SetTitle
<?php
namespace ScriptAcid;
require_once $_SERVER["DOCUMENT_ROOT"] . "/scriptacid/core/application.php";
SetTitle("Панель управления :: Пользователи");
App::get()->makePage(function (&$arPageParams) {
?>
<?php
if (intVal($_GET["ID"]) > 0) {
Component::callComponent("system.user.detail", "", array("SET_TITLE" => "Y", "TITLE_TEXT" => "Панель управления :: Профиль пользователя", "USER_ID" => intVal($_GET["ID"])));
}
?>
<?php
});
// end of makePage
示例3: sXss
<a href="?ACTION=ADD_SECTION&TYPE=<?php
echo sXss($_GET['TYPE']);
?>
&CATALOG_ID=<?php
echo sXss($_GET['CATALOG_ID']);
?>
"><?php
echo LANG("MODULE_CATALOG_SECTION_ADD_TEXT");
?>
</a>
</p>
<?php
Component::callComponent(":catalog.section.list", "_admin", array("SECTION_ID" => $_GET["SECTION_ID"], "CATALOG_ID" => $_GET["CATALOG_ID"], "=CATALOG_TYPE" => $_GET["TYPE"], "FIELDS" => array("ID", "ACTIVE", "NAME", "CATALOG_SECTION_ID", "CATALOG_ID", "SORT", "CODE", "PREVIEW_PICTURE", "PREVIEW_TEXT", "PREVIEW_TEXT_TYPE", "DETAIL_PICTURE", "DETAIL_TEXT", "DETAIL_TEXT_TYPE", "TAGS")));
?>
<?php
Component::callComponent(":catalog.section", "_admin", array("CATALOG_TYPE" => $_GET["TYPE"], "CATALOG_ID" => intVal($_GET["CATALOG_ID"]), "=SECTION_ID" => $_GET["SECTION_ID"]));
?>
<?php
break;
}
?>
<p>
<a href="/scriptacid/admin/catalog/">Список типов</a>
<a href="/scriptacid/admin/catalog/catalog.php?TYPE=<?php
echo $_GET["TYPE"];
?>
">Список каталогов</a>
</p>
<?php
示例4: SetTitle
<?php
namespace ScriptAcid;
require_once $_SERVER["DOCUMENT_ROOT"] . "/scriptacid/core/application.php";
SetTitle("Панель управления :: Пользователи");
App::get()->makePage(function (&$arPageParams) {
?>
<h3>Пользователи сайта</h3>
<?php
echo Component::callComponent("system.user.list", "", array("SHOW_FIELDS" => array("ID", "LOGIN", "NAME", "LAST_NAME", "EMAIL"), "PAGE_COUNT" => 20));
?>
<?php
});
// end of makePage
示例5: array
<?php
namespace ScriptAcid;
if (!defined("KERNEL_INCLUDED") || KERNEL_INCLUDED !== true) {
die;
}
?>
<div class="post no-bg">
<?php
if (!empty($arResult)) {
?>
<div>
<?php
Component::callComponent("system:player.video", "", array("FILE_ID" => $arResult['PROPERTIES']['FILE']['VALUE'], "WIDTH" => 480, "HEIGHT" => 320));
?>
</div>
<p><?php
echo $arResult["DETAIL_TEXT"];
?>
</p>
<p class="tags">
<strong>Автор: </strong> <a href="/admin/users/user.php?ID=<?php
echo $arResult["CREATED_BY"];
?>
"><?php
echo User::GetSign($arResult["CREATED_BY"]);
?>
</a>
| <strong>Дата: </strong> <?php
echo $arResult["DATE_CREATE"];