當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。