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


PHP CAdminList::AddActionSuccessMessage方法代码示例

本文整理汇总了PHP中CAdminList::AddActionSuccessMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminList::AddActionSuccessMessage方法的具体用法?PHP CAdminList::AddActionSuccessMessage怎么用?PHP CAdminList::AddActionSuccessMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAdminList的用法示例。


在下文中一共展示了CAdminList::AddActionSuccessMessage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: switch

        if (!isset($ids[0]) || !isset($ids[1]) || strlen($ids[0]) <= 0 || strlen($ids[1]) <= 0) {
            continue;
        }
        $providerId = $ids[0];
        $orderId = $ids[1];
        switch ($request['action_button']) {
            case "add_to_pull":
                $result = \Bitrix\Scale\Provider::addToPullFromOrder($providerId, $orderId);
                if ($result === false || isset($result["error"]) && $result["error"] == 1) {
                    $message = Loc::getMessage("SCALE_ORDER_ADD_PULL_ERROR");
                    if (isset($result["message"])) {
                        $message .= ": \"" . $result["message"] . "\"";
                    }
                    $adminList->AddGroupError($message);
                } else {
                    $adminList->AddActionSuccessMessage(Loc::getMessage("SCALE_ORDER_ADD_PULL_SUCCESS"));
                    try {
                        // add to monitoring
                        $actionUpdateMonitoring = \Bitrix\Scale\ActionsData::getActionObject("MONITORING_UPDATE");
                        $actionUpdateMonitoring->start();
                    } catch (Exception $e) {
                        $adminList->AddGroupError($e->getMessage());
                    }
                }
                break;
        }
    }
}
$ordersList = \Bitrix\Scale\Provider::getOrdersList();
$orders = array();
foreach ($ordersList as $providerId => $providerOrders) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:order.php

示例2: Array

							else
							{
								$lAdmin->AddGroupError(GetMessage("SOA_PERMS_STATUS_GROUP", Array("#ID#" => $ID, "#STATUS#" => $arStatus["NAME"])), $ID);
							}
						}
					}
					elseif(substr($_REQUEST['action'], 0, strlen("delivery_action_")) == "delivery_action_")
					{
						$actionId = substr($_REQUEST['action'], strlen("delivery_action_"));
						if(strlen($actionId) > 0)
						{
							$arResult = CSaleDeliveryHelper::execHandlerAction($ID, $actionId);

							if($arResult["RESULT"] == "OK")
							{
								$lAdmin->AddActionSuccessMessage(GetMessage("SALE_F_DELIVERY_REQUEST_ORDERN")." ".$ID.". ".GetMessage("SALE_F_DELIVERY_REQUEST_SUCCESS").".", $ID);
							}
							else
							{
								$msg = GetMessage("SALE_F_DELIVERY_REQUEST_ORDERN")." ".$ID.". ".GetMessage("SALE_F_DELIVERY_REQUEST_ERROR").".";

								if(isset($arResult["TEXT"]))
									$msg .= " ( ".$arResult["TEXT"]." ) ";

								$lAdmin->AddGroupError($msg, $ID);
							}
						}
					}

				break;
			}
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order.php

示例3: while

        while ($arResult = $dbResultList->Fetch()) {
            $arID[] = $arResult['ID'];
        }
    }
    foreach ($arID as $ID) {
        if (strlen($ID) <= 0) {
            continue;
        }
        switch ($_REQUEST['action']) {
            case "delete":
                CBPHistoryService::Delete($ID, $documentId);
                break;
            case "recover":
                try {
                    if (CBPHistoryService::RecoverDocumentFromHistory($ID)) {
                        $lAdmin->AddActionSuccessMessage(GetMessage("BPADH_RECOVERY_SUCCESS"));
                    } else {
                        $lAdmin->AddGroupError(GetMessage("BPADH_RECOVERY_ERROR"), $ID);
                    }
                } catch (Exception $e) {
                    $lAdmin->AddGroupError($e->getMessage(), $ID);
                }
                break;
        }
    }
}
$dbResultList = $history->GetHistoryList(array($by => $order), $arFilter, false, false, array("ID", "DOCUMENT_ID", "NAME", "MODIFIED", "USER_ID", "USER_NAME", "USER_LAST_NAME", "USER_LOGIN", "USER_SECOND_NAME"));
$dbResultList = new CAdminResult($dbResultList, $sTableID);
$dbResultList->NavStart();
$lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("BPADH_TITLE")));
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "ID", "default" => true), array("id" => "NAME", "content" => GetMessage("BPADH_NAME"), "sort" => "NAME", "default" => true), array("id" => "MODIFIED", "content" => GetMessage("BPADH_MODIFIED"), "sort" => "MODIFIED", "default" => true), array("id" => "USER", "content" => GetMessage("BPADH_AUTHOR"), "sort" => "USER_ID", "default" => true)));
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:document_history.php


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