本文整理汇总了PHP中WizardServices::CopyFile方法的典型用法代码示例。如果您正苦于以下问题:PHP WizardServices::CopyFile方法的具体用法?PHP WizardServices::CopyFile怎么用?PHP WizardServices::CopyFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WizardServices
的用法示例。
在下文中一共展示了WizardServices::CopyFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("iblock")) {
return;
}
if (!CModule::IncludeModule("video")) {
return;
}
//if(!WIZARD_IS_RERUN)
//{
WizardServices::CopyFile(WIZARD_SERVICE_RELATIVE_PATH . "/public/" . LANGUAGE_ID . "/video", WIZARD_SITE_DIR . "services/video");
$arMenuItem = array(GetMessage("VMENUIT"), WIZARD_SITE_DIR . "services/video/", array(), array(), "");
WizardServices::AddMenuItem(WIZARD_SITE_DIR . "services/.left.menu.php", $arMenuItem, WIZARD_SITE_ID, 11);
//}
$iblockCode = "video-meeting_" . WIZARD_SITE_ID;
$iblockType = "events";
$dbIblockType = CIBlockType::GetList(array(), array("=ID" => $iblockType));
if (!$dbIblockType->Fetch()) {
$obBlocktype = new CIBlockType();
$arFields = array("ID" => $iblockType, "SORT" => 500, "IN_RSS" => "N", "SECTIONS" => "Y");
$arFields["LANG"][LANGUAGE_ID] = array("NAME" => GetMessage("VI_IBLOCK_NAME"));
$res = $obBlocktype->Add($arFields);
}
$rsIBlock = CIBlock::GetList(array(), array("XML_ID" => $iblockCode, "TYPE" => $iblockType));
$iblockID = false;
if ($arIBlock = $rsIBlock->Fetch()) {
$iblockID = $arIBlock["ID"];
}