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


PHP COperation::GetList方法代码示例

本文整理汇总了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"]);
    }
}
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:step2.php

示例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;
        ?>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:task_edit.php

示例3: GetIDByName

 function GetIDByName($name)
 {
     $z = COperation::GetList(array('MODULE_ID' => 'asc'), array("NAME" => $name));
     if ($r = $z->Fetch()) {
         return $r['ID'];
     }
     return false;
 }
开发者ID:nProfessor,项目名称:Mytb,代码行数:8,代码来源:user.php


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