本文整理汇总了PHP中WizardServices::ReplaceMacrosRecursive方法的典型用法代码示例。如果您正苦于以下问题:PHP WizardServices::ReplaceMacrosRecursive方法的具体用法?PHP WizardServices::ReplaceMacrosRecursive怎么用?PHP WizardServices::ReplaceMacrosRecursive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WizardServices
的用法示例。
在下文中一共展示了WizardServices::ReplaceMacrosRecursive方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CopyDirFiles
CopyDirFiles($p . '/' . $item, $_SERVER['DOCUMENT_ROOT'] . '/bitrix/components/' . $item, $ReWrite = true, $Recursive = true);
}
closedir($dir);
}
CSearch::ReIndexAll(false, 0, array(WIZARD_SITE_ID, WIZARD_SITE_DIR));
WizardServices::PatchHtaccess(WIZARD_SITE_PATH);
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "about/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "auth/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "blog/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "brands/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "catalog/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "favorites/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "login/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "news/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "personal/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "search/", array("SITE_DIR" => WIZARD_SITE_DIR));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "_index.php", array("SITE_DIR" => WIZARD_SITE_DIR));
$arUrlRewrite = array();
if (file_exists(WIZARD_SITE_ROOT_PATH . "/urlrewrite.php")) {
include WIZARD_SITE_ROOT_PATH . "/urlrewrite.php";
}
$arNewUrlRewrite = array(array("CONDITION" => "#^" . WIZARD_SITE_DIR . "about/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "" . WIZARD_SITE_DIR . "about/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "blog/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "" . WIZARD_SITE_DIR . "blog/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "news/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "" . WIZARD_SITE_DIR . "news/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "brands/([0-9]+)/#", "RULE" => "brand_id=\$1", "ID" => "", "PATH" => "" . WIZARD_SITE_DIR . "brands/detail.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "catalog/#", "RULE" => "", "ID" => "bitrix:catalog", "PATH" => "" . WIZARD_SITE_DIR . "catalog/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "delivery/#", "RULE" => "", "ID" => "", "PATH" => "" . WIZARD_SITE_DIR . "adults/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "guaranty/#", "RULE" => "", "ID" => "", "PATH" => "" . WIZARD_SITE_DIR . "adults/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "kredit/#", "RULE" => "", "ID" => "", "PATH" => "" . WIZARD_SITE_DIR . "adults/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "oplata/#", "RULE" => "", "ID" => "", "PATH" => "" . WIZARD_SITE_DIR . "adults/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "personal/order/#", "RULE" => "", "ID" => "bitrix:sale.personal.order", "PATH" => "" . WIZARD_SITE_DIR . "personal/order/index.php"));
foreach ($arNewUrlRewrite as $arUrl) {
if (!in_array($arUrl, $arUrlRewrite)) {
CUrlRewriter::Add($arUrl);
}
}
}
function ___writeToAreasFile($fn, $text)
{
if (file_exists($fn) && !is_writable($abs_path) && defined("BX_FILE_PERMISSIONS")) {
示例2: array
$arSites = array();
$db_res = CIBlock::GetSite($iblockID);
while ($res = $db_res->Fetch()) {
$arSites[] = $res["LID"];
}
if (!in_array(WIZARD_SITE_ID, $arSites)) {
$arSites[] = WIZARD_SITE_ID;
$iblock = new CIBlock();
$iblock->Update($iblockID, array("LID" => $arSites));
}
}
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "about/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "ajax/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "auth/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "brands/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "catalog/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "include/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "personal/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "news/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "sales/", array("NEWS_IBLOCK_ID" => $iblockID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "search/", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "_index.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".actions.menu.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".catalog.menu.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".catalog.menu_ext.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".dop.menu.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".top.menu.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "404.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "sect_breadcrumbs-photo.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "sect_footer_text.php", array("NEWS_IBLOCK_ID" => $iblockID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "sitemap.php", array("NEWS_IBLOCK_ID" => $iblockID));
示例3: array
if (COption::GetOptionString("eshop", "wizard_installed", "N", WIZARD_SITE_ID) == "Y" && !WIZARD_INSTALL_DEMO_DATA) {
return;
}
WizardServices::PatchHtaccess(WIZARD_SITE_PATH);
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "about/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "catalog/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "include/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "login/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "news/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "personal/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "search/", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "store/", array("SITE_DIR" => WIZARD_SITE_DIR));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "_index.php", array("SITE_DIR" => WIZARD_SITE_DIR));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".top.menu.php", array("SITE_DIR" => WIZARD_SITE_DIR));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "sect_search.php", array("SITE_DIR" => WIZARD_SITE_DIR));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "about/", array("SALE_EMAIL" => $wizard->GetVar("shopEmail")));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "about/delivery/", array("SALE_PHONE" => $wizard->GetVar("siteTelephone")));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/index.php", array("SITE_DIR" => WIZARD_SITE_DIR));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/.section.php", array("SITE_DESCRIPTION" => htmlspecialcharsbx($wizard->GetVar("siteMetaDescription"))));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "/.section.php", array("SITE_KEYWORDS" => htmlspecialcharsbx($wizard->GetVar("siteMetaKeywords"))));
copy(WIZARD_THEME_ABSOLUTE_PATH . "/favicon.ico", WIZARD_SITE_PATH . "favicon.ico");
$arUrlRewrite = array();
if (file_exists(WIZARD_SITE_ROOT_PATH . "/urlrewrite.php")) {
include WIZARD_SITE_ROOT_PATH . "/urlrewrite.php";
}
$arNewUrlRewrite = array(array("CONDITION" => "#^" . WIZARD_SITE_DIR . "news/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => WIZARD_SITE_DIR . "news/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "catalog/#", "RULE" => "", "ID" => "bitrix:catalog", "PATH" => WIZARD_SITE_DIR . "catalog/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "personal/order/#", "RULE" => "", "ID" => "bitrix:sale.personal.order", "PATH" => WIZARD_SITE_DIR . "personal/order/index.php"), array("CONDITION" => "#^" . WIZARD_SITE_DIR . "store/#", "RULE" => "", "ID" => "bitrix:catalog.store", "PATH" => WIZARD_SITE_DIR . "store/index.php"));
foreach ($arNewUrlRewrite as $arUrl) {
if (!in_array($arUrl, $arUrlRewrite)) {
CUrlRewriter::Add($arUrl);
}
}
示例4: trim
($file == "_index.php" && trim(WIZARD_SITE_PATH, " /") != trim(WIZARD_SITE_ROOT_PATH, " /"))
)
)
continue;
*/
CopyDirFiles(
$path.$file,
WIZARD_SITE_PATH."/".$file,
$rewrite = true,
$recursive = true,
$delete_after_copy = false
);
}
}
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH, Array("SITE_DIR" => WIZARD_SITE_DIR));
$arUrlRewrite = array();
if (file_exists(WIZARD_SITE_ROOT_PATH."/urlrewrite.php"))
{
include(WIZARD_SITE_ROOT_PATH."/urlrewrite.php");
}
$arNewUrlRewrite = array(
array(
"CONDITION" => "#^".WIZARD_SITE_DIR."services/#",
"RULE" => "",
"ID" => "bitrix:catalog",
"PATH" => WIZARD_SITE_DIR."services/index.php"
),
array(
"CONDITION" => "#^".WIZARD_SITE_DIR."products/#",
示例5: ReplaceMacrosRecursive
function ReplaceMacrosRecursive($filePath, $arReplace)
{
clearstatcache();
if (!is_dir($filePath) && !is_file($filePath) || !is_array($arReplace)) {
return;
}
if ($handle = @opendir($filePath)) {
while (($file = readdir($handle)) !== false) {
if ($file == "." || $file == ".." || trim($filePath, "/") == trim($_SERVER["DOCUMENT_ROOT"], "/") && $file == "bitrix" || trim($filePath, "/") == trim($_SERVER["DOCUMENT_ROOT"], "/") && $file == "upload") {
continue;
}
if (is_dir($filePath . "/" . $file)) {
WizardServices::ReplaceMacrosRecursive($filePath . $file . "/", $arReplace);
} elseif (is_file($filePath . "/" . $file)) {
if (!is_writable($filePath . "/" . $file) || !is_array($arReplace)) {
return;
}
@chmod($filePath . "/" . $file, BX_FILE_PERMISSIONS);
if (!($handleFile = @fopen($filePath . "/" . $file, "rb"))) {
return;
}
$content = @fread($handleFile, filesize($filePath . "/" . $file));
@fclose($handleFile);
$handleFile = false;
if (!($handleFile = @fopen($filePath . "/" . $file, "wb"))) {
return;
}
if (flock($handleFile, LOCK_EX)) {
$arSearch = array();
$arValue = array();
foreach ($arReplace as $search => $replace) {
if ($skipSharp) {
$arSearch[] = $search;
} else {
$arSearch[] = "#" . $search . "#";
}
$arValue[] = $replace;
}
$content = str_replace($arSearch, $arValue, $content);
@fwrite($handleFile, $content);
@flock($handleFile, LOCK_UN);
}
@fclose($handleFile);
}
}
@closedir($handle);
}
}
示例6: foreach
$arGeneralInfo["properies"][$prop["PERSON_TYPE_ID"]][$prop["CODE"]]["ID"] = $id;
}
if (!empty($variants)) {
foreach ($variants as $val) {
$val["ORDER_PROPS_ID"] = $id;
CSaleOrderPropsVariant::Add($val);
}
}
}
$propReplace = "";
foreach ($arGeneralInfo["properies"] as $key => $val) {
if (IntVal($val["LOCATION"]["ID"]) > 0) {
$propReplace .= '"PROP_' . $key . '" => Array(0 => "' . $val["LOCATION"]["ID"] . '"), ';
}
}
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "personal/order/", array("PROPS" => $propReplace));
//1C export
if ($personType["fiz"] == "Y" && !$fizExist) {
$val = serialize(array("AGENT_NAME" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["FIO"]["ID"]), "FULL_NAME" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["FIO"]["ID"]), "SURNAME" => array("TYPE" => "USER", "VALUE" => "LAST_NAME"), "NAME" => array("TYPE" => "USER", "VALUE" => "NAME"), "ADDRESS_FULL" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["ADDRESS"]["ID"]), "INDEX" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["ZIP"]["ID"]), "COUNTRY" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["LOCATION"]["ID"] . "_COUNTRY"), "CITY" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["LOCATION"]["ID"] . "_CITY"), "STREET" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["ADDRESS"]["ID"]), "EMAIL" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["EMAIL"]["ID"]), "CONTACT_PERSON" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz"]]["CONTACT_PERSON"]["ID"]), "IS_FIZ" => "Y"));
CSaleExport::Add(array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "VARS" => $val));
}
if ($personType["ur"] == "Y" && !$urExist) {
$val = serialize(array("AGENT_NAME" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["COMPANY"]["ID"]), "FULL_NAME" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["COMPANY"]["ID"]), "ADDRESS_FULL" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["COMPANY_ADR"]["ID"]), "COUNTRY" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["LOCATION"]["ID"] . "_COUNTRY"), "CITY" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["LOCATION"]["ID"] . "_CITY"), "STREET" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["COMPANY_ADR"]["ID"]), "INN" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["INN"]["ID"]), "KPP" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["KPP"]["ID"]), "PHONE" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["PHONE"]["ID"]), "EMAIL" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["EMAIL"]["ID"]), "CONTACT_PERSON" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["NAME"]["ID"]), "F_ADDRESS_FULL" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["ADDRESS"]["ID"]), "F_COUNTRY" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["LOCATION"]["ID"] . "_COUNTRY"), "F_CITY" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["LOCATION"]["ID"] . "_CITY"), "F_INDEX" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["ZIP"]["ID"]), "F_STREET" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["ur"]]["ADDRESS"]["ID"]), "IS_FIZ" => "N"));
CSaleExport::Add(array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "VARS" => $val));
}
if ($shopLocalization == "ua" && !$fizUaExist) {
$val = serialize(array("AGENT_NAME" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["FIO"]["ID"]), "FULL_NAME" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["FIO"]["ID"]), "SURNAME" => array("TYPE" => "USER", "VALUE" => "LAST_NAME"), "NAME" => array("TYPE" => "USER", "VALUE" => "NAME"), "ADDRESS_FULL" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["ADDRESS"]["ID"]), "INDEX" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["ZIP"]["ID"]), "COUNTRY" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["LOCATION"]["ID"] . "_COUNTRY"), "CITY" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["LOCATION"]["ID"] . "_CITY"), "STREET" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["ADDRESS"]["ID"]), "EMAIL" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["EMAIL"]["ID"]), "CONTACT_PERSON" => array("TYPE" => "PROPERTY", "VALUE" => $arGeneralInfo["properies"][$arGeneralInfo["personType"]["fiz_ua"]]["CONTACT_PERSON"]["ID"]), "IS_FIZ" => "Y"));
CSaleExport::Add(array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "VARS" => $val));
}
//PaySystem
$arPaySystems = array();
示例7: replacePublicFilesMacros
public function replacePublicFilesMacros()
{
//CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH."/catalog/index.php", array("MACROS" => $iblockID));
if (array_key_exists($this->_iblockCode, $this->_arConfig['PUBLIC_FILE_MACROS'])) {
foreach ($this->_arConfig['PUBLIC_FILE_MACROS'][$this->_iblockCode] as &$arMacrosReplace) {
$arReplace = array();
if (array_key_exists('IBLOCK_TYPE_ID', $arMacrosReplace)) {
$arReplace[trim($arMacrosReplace['IBLOCK_TYPE_ID'], '# ')] = $this->_iblockType;
}
if ($this->_iblockID > 0 && array_key_exists('IBLOCK_ID', $arMacrosReplace)) {
$arReplace[trim($arMacrosReplace['IBLOCK_ID'], '# ')] = $this->_iblockID;
}
if (array_key_exists('PUBLIC_DIR', $arMacrosReplace)) {
$path = WIZARD_SITE_PATH . $arMacrosReplace['PUBLIC_DIR'];
if (is_dir($path) && file_exists($path)) {
\WizardServices::ReplaceMacrosRecursive($path, $arReplace);
}
} elseif (array_key_exists('PUBLIC_FILE', $arMacrosReplace)) {
$path = WIZARD_SITE_PATH . $arMacrosReplace['PUBLIC_FILE'];
if (is_file($path) && file_exists($path)) {
\CWizardUtil::ReplaceMacros($path, $arReplace);
}
}
}
}
}
示例8: array
}
if ($IBLOCK_OFFERS_ID) {
$res = CIBlockProperty::GetByID("COLOR", $IBLOCK_OFFERS_ID, false);
if ($ar_res = $res->GetNext()) {
$arFields2 = array('USER_TYPE_SETTINGS' => array('size' => '1', 'width' => '0', 'group' => 'N', 'multiple' => 'N', 'TABLE_NAME' => 'b_color'), 'USER_TYPE' => 'directory');
$ibp = new CIBlockProperty();
$ibp->Update($ar_res['ID'], $arFields2);
}
}
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "catalog/", array("OFFERS_IBLOCK_ID" => $IBLOCK_OFFERS_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "about/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "ajax/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "auth/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "brands/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "catalog/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "include/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "personal/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "news/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "sales/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
WizardServices::ReplaceMacrosRecursive(WIZARD_SITE_PATH . "search/", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "_index.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".actions.menu.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".catalog.menu.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".catalog.menu_ext.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".dop.menu.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . ".top.menu.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "404.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "sect_breadcrumbs-photo.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "sect_footer_text.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
CWizardUtil::ReplaceMacros(WIZARD_SITE_PATH . "sitemap.php", array("CATALOG_IBLOCK_ID" => $IBLOCK_CATALOG_ID));
}