當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CWizardUtil::GetWizardList方法代碼示例

本文整理匯總了PHP中CWizardUtil::GetWizardList方法的典型用法代碼示例。如果您正苦於以下問題:PHP CWizardUtil::GetWizardList方法的具體用法?PHP CWizardUtil::GetWizardList怎麽用?PHP CWizardUtil::GetWizardList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CWizardUtil的用法示例。


在下文中一共展示了CWizardUtil::GetWizardList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: GetDemoWizard

 function GetDemoWizard()
 {
     if (!defined("B_PROLOG_INCLUDED")) {
         define("B_PROLOG_INCLUDED", true);
     }
     if (isset($GLOBALS["arWizardConfig"]) && array_key_exists("demoWizardName", $GLOBALS["arWizardConfig"]) && CWizardUtil::CheckName($GLOBALS["arWizardConfig"]["demoWizardName"])) {
         return $GLOBALS["arWizardConfig"]["demoWizardName"];
     }
     $arWizards = CWizardUtil::GetWizardList();
     $defaultWizard = false;
     foreach ($arWizards as $arWizard) {
         $wizardID = $arWizard["ID"];
         if ($wizardID == "bitrix:demo") {
             $defaultWizard = "bitrix:demo";
             continue;
         }
         $position = strpos($wizardID, ":");
         if ($position !== false) {
             $wizardName = substr($wizardID, $position + 1);
         } else {
             $wizardName = $wizardID;
         }
         if ($wizardName == "demo") {
             return $wizardID;
         }
     }
     return $defaultWizard;
 }
開發者ID:ASDAFF,項目名稱:bitrix-5,代碼行數:28,代碼來源:utils.php

示例2: CDBResult

			<script type="text/javascript">
				exportWizard('<?php 
                echo $ID;
                ?>
');
			</script>
			<?php 
                break;
                /*case "copy":
                		CWizardUtil::CopyWizard($ID, $ID."_copy");
                		break;*/
        }
    }
}
$rsData = new CDBResult();
$rsData->InitFromArray(CWizardUtil::GetWizardList(false, true));
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("PAGES"), false));
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "default" => true), array("id" => "NAME", "content" => GetMessage("MAIN_WIZARD_ADMIN_NAME"), "default" => true), array("id" => "DESCRIPTION", "content" => GetMessage("MAIN_WIZARD_ADMIN_DESC"), "default" => true), array("id" => "VERSION", "content" => GetMessage("MAIN_WIZARD_ADMIN_VERSION"), "default" => true)));
while ($arRes = $rsData->NavNext(true, "f_")) {
    $row =& $lAdmin->AddRow($f_ID, $arRes);
    $idTmp = $f_ID;
    $arID = explode(":", $f_ID);
    if (count($arID) > 2) {
        $idTmp = $arID[1] . ":" . $arID[2];
    }
    $row->AddField("ID", $idTmp);
    $arActions = array();
    if ($isAdmin) {
        $startType = array_key_exists("START_TYPE", $arRes) ? $arRes["START_TYPE"] : "POPUP";
開發者ID:DarneoStudio,項目名稱:bitrix,代碼行數:31,代碼來源:wizard_list.php


注:本文中的CWizardUtil::GetWizardList方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。