本文整理汇总了PHP中CIBlockRights::GetUserOperations方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockRights::GetUserOperations方法的具体用法?PHP CIBlockRights::GetUserOperations怎么用?PHP CIBlockRights::GetUserOperations使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlockRights
的用法示例。
在下文中一共展示了CIBlockRights::GetUserOperations方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: IBlockShowRights
} else {
$obRights = new CIBlockRights($_GET["id"]);
}
$obStorage = $obRights->_storage_object();
$arOverwrited = array();
if (isset($_REQUEST["added"]) && is_array($_REQUEST["added"])) {
foreach ($_REQUEST["added"] as $provider => $arCodes) {
if (is_array($arCodes)) {
foreach ($arCodes as $id => $arCode) {
$arOverwrited[$id] = $obStorage->CountOverWrited($id);
}
}
}
}
if (isset($_REQUEST["info"]) && $_REQUEST["info"] > 0) {
$arOverwrited = $obRights->GetUserOperations($_GET["id"], $_REQUEST["info"]);
}
echo CUtil::PHPToJSObject($arOverwrited);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin_js.php";
}
function IBlockShowRights($entity_type, $iblock_id, $id, $section_title, $variable_name, $arPossibleRights, $arActualRights, $bDefault = false, $bForceInherited = false, $arSelected = array(), $arHighLight = array())
{
$js_var_name = preg_replace("/[^a-zA-Z0-9_]/", "_", $variable_name);
$html_var_name = htmlspecialcharsbx($variable_name);
$sSelect = '<select name="' . $html_var_name . '[][TASK_ID]" style="vertical-align:middle">';
foreach ($arPossibleRights as $value => $title) {
$sSelect .= '<option value="' . htmlspecialcharsbx($value) . '">' . htmlspecialcharsex($title) . '</option>';
}
$sSelect .= '</select>';
if ($bForceInherited != true) {
foreach ($arActualRights as $RIGHT_ID => $arRightSet) {