当前位置: 首页>>代码示例>>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;未经允许,请勿转载。