本文整理汇总了PHP中COperation::GetList方法的典型用法代码示例。如果您正苦于以下问题:PHP COperation::GetList方法的具体用法?PHP COperation::GetList怎么用?PHP COperation::GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COperation
的用法示例。
在下文中一共展示了COperation::GetList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$userGroupID = "";
$dbGroup = CGroup::GetList($by = "", $order = "", array("STRING_ID" => "sale_administrator"));
if ($arGroup = $dbGroup->Fetch()) {
$userGroupID = $arGroup["ID"];
} else {
$group = new CGroup();
$arFields = array("ACTIVE" => "Y", "C_SORT" => 200, "NAME" => GetMessage("SALE_WIZARD_ADMIN_SALE"), "DESCRIPTION" => GetMessage("SALE_WIZARD_ADMIN_SALE_DESCR"), "USER_ID" => array(), "STRING_ID" => "sale_administrator");
$userGroupID = $group->Add($arFields);
}
if (IntVal($userGroupID) > 0) {
WizardServices::SetFilePermission(array($siteID, "/bitrix/admin"), array($userGroupID => "R"));
WizardServices::SetFilePermission(array($siteID, "/bitrix/admin"), array($userGroupID => "R"));
$new_task_id = CTask::Add(array("NAME" => GetMessage("SALE_WIZARD_ADMIN_SALE"), "DESCRIPTION" => GetMessage("SALE_WIZARD_ADMIN_SALE_DESCR"), "LETTER" => "Q", "BINDING" => "module", "MODULE_ID" => "main"));
if ($new_task_id) {
$arOps = array();
$rsOp = COperation::GetList(array(), array("NAME" => "cache_control|view_own_profile|edit_own_profile"));
while ($arOp = $rsOp->Fetch()) {
$arOps[] = $arOp["ID"];
}
CTask::SetOperations($new_task_id, $arOps);
}
$rsTasks = CTask::GetList(array(), array("MODULE_ID" => "main", "SYS" => "N", "BINDIG" => "module", "LETTER" => "Q"));
if ($arTask = $rsTasks->Fetch()) {
CGroup::SetModulePermission($userGroupID, $arTask["MODULE_ID"], $arTask["ID"]);
}
CMain::SetGroupRight("sale", $userGroupID, "U");
$rsTasks = CTask::GetList(array(), array("MODULE_ID" => "catalog", "SYS" => "Y", "BINDIG" => "module", "LETTER" => "T"));
while ($arTask = $rsTasks->Fetch()) {
CGroup::SetModulePermission($userGroupID, $arTask["MODULE_ID"], $arTask["ID"]);
}
}
示例2: htmlspecialcharsbx
?>
<input type="hidden" name="COPY_ID" value="<?php
echo htmlspecialcharsbx($COPY_ID);
?>
"><?php
}
$tabControl->Begin();
$tabControl->BeginNextTab();
if (isset($_POST['NAME'])) {
$str_NAME = htmlspecialcharsbx($_POST['NAME']);
$str_DESCRIPTION = htmlspecialcharsbx($_POST['DESCRIPTION']);
$str_MODULE_ID = htmlspecialcharsbx($_POST['MODULE_ID']);
$str_BINDING = htmlspecialcharsbx($_POST['BINDING']);
$str_LETTER = htmlspecialcharsbx($_POST['LETTER']);
}
$dbOperations = COperation::GetList();
$arOperations = array();
$arBindings = array();
?>
<script>
var arOperations = [];
var arBingings = {};
<?php
while ($arOperation = $dbOperations->Fetch()) {
$mid = $arOperation["MODULE_ID"];
if (!isset($arBindings[$mid])) {
$arBindings[$mid] = array();
?>
arBingings.<?php
echo $mid;
?>
示例3: GetIDByName
function GetIDByName($name)
{
$z = COperation::GetList(array('MODULE_ID' => 'asc'), array("NAME" => $name));
if ($r = $z->Fetch()) {
return $r['ID'];
}
return false;
}