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


PHP CModule::AddAutoloadClasses方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     $this->config = json_decode(file_get_contents(BFactory::getDir() . '/config/block.json'));
     $this->setLanguage($this->config->languages->default);
     CModule::IncludeModule("iblock");
     CModule::AddAutoloadClasses('', array('BitrixAdapterBlockPrototype' => '/bitrixadapter/core/prototype.php'));
 }
开发者ID:ASDAFF,项目名称:bitrix-adapter,代码行数:7,代码来源:block.php

示例2: array

<?php

CModule::AddAutoloadClasses("storeassist", array("CStoreAssist" => "classes/general/storeassist.php"));
CJSCore::RegisterExt('storeassist', array('js' => '/bitrix/js/storeassist/storeassist.js', 'css' => '/bitrix/js/storeassist/css/storeassist.css', 'lang' => BX_ROOT . '/modules/storeassist/lang/' . LANGUAGE_ID . '/jsmessages.php'));
开发者ID:Satariall,项目名称:izurit,代码行数:4,代码来源:include.php

示例3: array

<?php

global $DBType;
CModule::AddAutoloadClasses("workflow", array("CAllWorkflow" => "classes/general/workflow.php", "CWorkflow" => "classes/" . $DBType . "/workflow.php", "CWorkflowStatus" => "classes/general/status.php"));
function GetDefaultProlog($title)
{
    return "<" . "?\n" . "require(\$_SERVER[\"DOCUMENT_ROOT\"].\"/bitrix/modules/main/include/prolog_before.php\");\n" . "\$APPLICATION->SetTitle(\"" . EscapePHPString($title) . "\");\n" . "require(\$_SERVER[\"DOCUMENT_ROOT\"].\"/bitrix/modules/main/include/prolog_after.php\");\n" . "?" . ">\n";
}
function GetDefaultEpilog()
{
    return "\n<" . "?require(\$_SERVER[\"DOCUMENT_ROOT\"].\"/bitrix/modules/main/include/epilog.php\");?" . ">";
}
function PathToWF($text, $DOCUMENT_ID)
{
    return preg_replace("'(<img[^>]+?src\\s*=\\s*\")(\\S+)(\"[^>]*>)'i", "\\1/bitrix/admin/workflow_get_file.php?did=" . $DOCUMENT_ID . "&fname=\\2\\3", $text);
}
function convert_image($img = "", $query = "", $param = "")
{
    if (is_array($img)) {
        $param = $img[3];
        $query = $img[2];
        $img = $img[1];
    } else {
        $param = stripslashes($param);
        $query = stripslashes($query);
        $img = stripslashes($img);
    }
    $params = array();
    parse_str(htmlspecialcharsback($query), $params);
    return $img . $params['fname'] . $param;
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:include.php

示例4: array

<?php

CModule::AddAutoloadClasses('sender', array("bitrix\\sender\\contacttable" => "lib/contact.php", "bitrix\\sender\\contactlisttable" => "lib/contact.php", "bitrix\\sender\\listtable" => "lib/contact.php", "bitrix\\sender\\grouptable" => "lib/group.php", "bitrix\\sender\\groupconnectortable" => "lib/group.php", "bitrix\\sender\\mailingtable" => "lib/mailing.php", "bitrix\\sender\\mailingchaintable" => "lib/mailing.php", "bitrix\\sender\\mailinggrouptable" => "lib/mailing.php", "bitrix\\sender\\postingtable" => "lib/posting.php", "bitrix\\sender\\postingrecipienttable" => "lib/posting.php", "bitrix\\sender\\postingreadtable" => "lib/posting.php", "bitrix\\sender\\postingclicktable" => "lib/posting.php", "bitrix\\sender\\postingunsubtable" => "lib/posting.php", "bitrix\\sender\\postingmanager" => "lib/postingmanager.php", "bitrix\\sender\\mailingmanager" => "lib/mailingmanager.php", "bitrix\\sender\\subscription" => "lib/subscription.php", "bitrix\\sender\\connector" => "lib/connector.php", "bitrix\\sender\\connectormanager" => "lib/connectormanager.php", "bitrix\\sender\\senderconnectorcontact" => "lib/senderconnectorcontact.php", "bitrix\\sender\\senderconnectorrecipient" => "lib/senderconnectorrecipient.php", "Bitrix\\Sender\\TemplateTable" => "lib/template.php", "Bitrix\\Sender\\Preset\\Template" => "lib/preset/template.php", "Bitrix\\Sender\\Preset\\MailBlock" => "lib/preset/mailblock.php", "Bitrix\\Sender\\Preset\\TemplateBase" => "lib/preset/template.php", "Bitrix\\Sender\\Preset\\MailBlockBase" => "lib/preset/mailblock.php"));
\CJSCore::RegisterExt("sender_admin", array("js" => "/bitrix/js/sender/admin.js", "rel" => array()));
开发者ID:akniyev,项目名称:arteva.ru,代码行数:4,代码来源:include.php

示例5: IncludeModuleLangFile

<?php

IncludeModuleLangFile(__FILE__);
global $APPLICATION, $DBType;
CModule::AddAutoloadClasses("pull", array("CPullChannel" => "classes/general/pull_channel.php", "CPullStack" => "classes/" . $DBType . "/pull_stack.php", "CPullWatch" => "classes/" . $DBType . "/pull_watch.php", "CPullOptions" => "classes/general/pull_options.php", "CPullTableSchema" => "classes/general/pull_table_schema.php", "CPullPush" => "classes/general/pull_push.php", "CPushManager" => "classes/general/pull_push.php", "CAppleMessage" => "classes/general/pushservices/apple_push.php", "CApplePush" => "classes/general/pushservices/apple_push.php", "CGoogleMessage" => "classes/general/pushservices/google_push.php", "CGooglePush" => "classes/general/pushservices/google_push.php"));
CJSCore::RegisterExt('pull', array('js' => '/bitrix/js/pull/pull.js', 'rel' => defined('BX_PULL_SKIP_LS') ? array('ajax') : array('ajax', 'ls')));
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:6,代码来源:include.php

示例6: strtolower

global $DB, $MESS, $APPLICATION, $voteCache;
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/admin_tools.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/filter_tools.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/vote/vote_tools.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/vote/classes/" . strtolower($DB->type) . "/channel.php";
IncludeModuleLangFile(__FILE__);
if (!defined("VOTE_CACHE_TIME")) {
    define("VOTE_CACHE_TIME", 3600);
}
define("VOTE_DEFAULT_DIAGRAM_TYPE", "histogram");
$GLOBALS["VOTE_CACHE"] = array("CHANNEL" => array(), "VOTE" => array(), "QUESTION" => array());
$GLOBALS["VOTE_CACHE_VOTING"] = array();
$GLOBALS["aVotePermissions"] = array("reference_id" => array(0, 1, 2, 4), "reference" => array(GetMessage("VOTE_DENIED"), GetMessage("VOTE_READ"), GetMessage("VOTE_WRITE"), GetMessage("VOTE_EDIT")));
$_SESSION["VOTE"] = is_array($_SESSION["VOTE"]) ? $_SESSION["VOTE"] : array();
$_SESSION["VOTE"]["VOTES"] = is_array($_SESSION["VOTE"]["VOTES"]) ? $_SESSION["VOTE"]["VOTES"] : array();
CModule::AddAutoloadClasses("vote", array("CVoteAnswer" => "classes/" . strtolower($DB->type) . "/answer.php", "CVoteEvent" => "classes/" . strtolower($DB->type) . "/event.php", "CVoteQuestion" => "classes/" . strtolower($DB->type) . "/question.php", "CVoteUser" => "classes/" . strtolower($DB->type) . "/user.php", "CVote" => "classes/" . strtolower($DB->type) . "/vote.php", "CVoteCacheManager" => "classes/general/functions.php", "CUserTypeVote" => "classes/general/usertypevote.php"));
$voteCache = new CVoteCacheManager();
function VoteVoteEditFromArray($CHANNEL_ID, $VOTE_ID = false, $arFields = array(), $params = array())
{
    $CHANNEL_ID = intVal($CHANNEL_ID);
    if ($CHANNEL_ID <= 0 || empty($arFields)) {
        return false;
    } elseif (CVote::UserGroupPermission($CHANNEL_ID) <= 0) {
        return false;
    }
    $aMsg = array();
    $params = is_array($params) ? $params : array();
    $params["UNIQUE_TYPE"] = is_set($params, "UNIQUE_TYPE") ? intVal($params["UNIQUE_TYPE"]) : 20;
    $params["DELAY"] = is_set($params, "DELAY") ? intVal($params["DELAY"]) : 10;
    $params["DELAY_TYPE"] = is_set($params, "DELAY_TYPE") && in_array($params['DELAY_TYPE'], array("S", "M", "H", "D")) ? $params["DELAY_TYPE"] : "D";
    $arVote = array();
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:include.php

示例7:

CModule::AddAutoloadClasses(
	"form",
	array(
		// compability classes
		"CForm_old" => "classes/general/form_cform_old.php",
		"CFormResult_old" => "classes/general/form_cformresult_old.php",
		"CFormOutput_old" => "classes/general/form_cformoutput_old.php",

		// main classes
		"CAllForm" => "classes/general/form_callform.php",
		"CAllFormAnswer" => "classes/general/form_callformanswer.php",
		"CAllFormField" => "classes/general/form_callformfield.php",
		"CAllFormOutput" => "classes/general/form_callformoutput.php",
		"CAllFormResult" => "classes/general/form_callformresult.php",
		"CAllFormStatus" => "classes/general/form_callformstatus.php",
		"CAllFormValidator" => "classes/general/form_callformvalidator.php",
		"CAllFormCrm" => "classes/general/form_callformcrm.php",

		// API classes
		"CForm" => "classes/".$DBType."/form_cform.php",
		"CFormAnswer" => "classes/".$DBType."/form_cformanswer.php",
		"CFormField" => "classes/".$DBType."/form_cformfield.php",
		"CFormOutput" => "classes/".$DBType."/form_cformoutput.php",
		"CFormResult" => "classes/".$DBType."/form_cformresult.php",
		"CFormStatus" => "classes/".$DBType."/form_cformstatus.php",
		"CFormValidator" => "classes/".$DBType."/form_cformvalidator.php",

		"CFormCrm" => "classes/".$DBType."/form_cformcrm.php",
		"CFormCrmSender" => "classes/".$DBType."/form_cformcrm.php",

		// event handlers
		"CFormEventHandlers" => "events.php",
	)
);
开发者ID:ASDAFF,项目名称:open_bx,代码行数:34,代码来源:include.php

示例8:

<?
global $DB, $DBType;

CModule::AddAutoloadClasses(
	"webdebug.options",
	array(
		"CWebdebugOptions" => "classes/{$DBType}/CWebdebugOptions.php"
	)
);
?>
开发者ID:ASDAFF,项目名称:empty_module,代码行数:10,代码来源:include.php

示例9: define

<?php

if (!defined("CACHED_b_bitrixcloud_option")) {
    define("CACHED_b_bitrixcloud_option", 36000);
}
global $DB;
$db_type = strtolower($DB->type);
CModule::AddAutoloadClasses("bitrixcloud", array("CAllBitrixCloudOption" => "classes/general/option.php", "CBitrixCloudOption" => "classes/" . $db_type . "/option.php", "CBitrixCloudWebService" => "classes/general/webservice.php", "CBitrixCloudCDNWebService" => "classes/general/cdn_webservice.php", "CBitrixCloudCDNConfig" => "classes/general/cdn_config.php", "CBitrixCloudCDN" => "classes/general/cdn.php", "CBitrixCloudCDNQuota" => "classes/general/cdn_quota.php", "CBitrixCloudCDNClasses" => "classes/general/cdn_class.php", "CBitrixCloudCDNClass" => "classes/general/cdn_class.php", "CBitrixCloudCDNServerGroups" => "classes/general/cdn_server.php", "CBitrixCloudCDNServerGroup" => "classes/general/cdn_server.php", "CBitrixCloudCDNLocations" => "classes/general/cdn_location.php", "CBitrixCloudCDNLocation" => "classes/general/cdn_location.php", "CBitrixCloudBackupWebService" => "classes/general/backup_webservice.php", "CBitrixCloudBackup" => "classes/general/backup.php", "CBitrixCloudMonitoringWebService" => "classes/general/monitoring_webservice.php", "CBitrixCloudMonitoring" => "classes/general/monitoring.php", "CBitrixCloudMonitoringResult" => "classes/general/monitoring_result.php", "CBitrixCloudMobile" => "classes/general/mobile.php"));
if (CModule::IncludeModule('clouds')) {
    CModule::AddAutoloadClasses("bitrixcloud", array("CBitrixCloudBackupBucket" => "classes/general/backup_bucket.php"));
}
CJSCore::RegisterExt('mobile_monitoring', array('js' => '/bitrix/js/bitrixcloud/mobile_monitoring.js', 'lang' => '/bitrix/modules/bitrixcloud/lang/' . LANGUAGE_ID . '/js_mobile_monitoring.php'));
class CBitrixCloudException extends Exception
{
    protected $error_code = "";
    protected $debug_info = "";
    public function __construct($message = "", $error_code = "", $debug_info = "")
    {
        parent::__construct($message);
        $this->error_code = $error_code;
        $this->debug_info = $debug_info;
    }
    public final function getErrorCode()
    {
        return $this->error_code;
    }
    public final function getDebugInfo()
    {
        return $this->debug_info;
    }
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:include.php

示例10: define

<?php

define('NO_KEEP_STATISTIC', 'Y');
define('NO_AGENT_STATISTIC', 'Y');
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';
if (!check_bitrix_sessid()) {
    return false;
}
CModule::AddAutoloadClasses('wiki', array('CWiki' => 'classes/general/wiki.php', 'CWikiUtils' => 'classes/general/wiki_utils.php', 'CWikiParser' => 'classes/general/wiki_parser.php', 'CWikiDiff' => 'classes/general/wiki_diff.php', 'CWikiSocnet' => 'classes/general/wiki_socnet.php', 'CWikiDocument' => 'classes/general/wiki_document.php', 'CWikiSecurity' => 'classes/general/wiki_security.php', 'CUserTypeWiki' => 'classes/general/wiki_usertypewiki.php', 'CRatingsComponentsWiki' => 'classes/general/ratings_components.php'));
$res = "";
switch ($_REQUEST["act"]) {
    case 'sanitize':
        if (isset($_REQUEST['text'])) {
            $res = $_REQUEST['text'];
            if (LANG_CHARSET != "UTF-8") {
                $res = $GLOBALS["APPLICATION"]->ConvertCharset($res, "UTF-8", LANG_CHARSET);
                /* if we recieved the mash from utf-8 and other encodings, lets prevent utf-8 text to be wrong decoded
                			(sender: /components/bitrix/wiki.edit/templates/.default/script.php:599
                			function insertSanitized())
                			for example user could copy and insert url from it's browser.
                			http://work.localhost/services/wiki/%C3%EB%E0%E2%ED%E0%FF+%F1%F2%F0%E0%ED%E8%F6%E0/edit/	*/
                $res = str_replace("##%##", "%", $res);
            }
            $CWikiParser = new CWikiParser();
            $res = $CWikiParser->Clear($res);
        }
        break;
}
echo $res;
开发者ID:Satariall,项目名称:izurit,代码行数:29,代码来源:component.ajax.php

示例11: IncludeModuleLangFile

<?php

IncludeModuleLangFile(__FILE__);
global $DB;
$db_type = strtolower($DB->type);
CModule::AddAutoloadClasses("subscribe", array("CRubric" => "classes/general/rubric.php", "CSubscription" => "classes/" . $db_type . "/subscription.php", "CPosting" => "classes/" . $db_type . "/posting.php", "CPostingTemplate" => "classes/general/template.php", "CMailTools" => "classes/general/posting.php"));
开发者ID:spas-viktor,项目名称:books,代码行数:6,代码来源:include.php

示例12: array

<?php

$arClasses = array("CExtranet" => "classes/general/extranet.php", "CUsersInMyGroupsCache" => "classes/general/extranet.php", "extranet" => "install/index.php");
CModule::AddAutoloadClasses("extranet", $arClasses);
global $obUsersCache;
$obUsersCache = new CUsersInMyGroupsCache();
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:6,代码来源:include.php

示例13: array

$classes = array(
  "\beGateway\ApiAbstract" => "$lib_path/ApiAbstract.php",
  "\beGateway\Authorization" => "$lib_path/Authorization.php",
  "\beGateway\Capture" => "$lib_path/Capture.php",
  "\beGateway\Card" => "$lib_path/Card.php",
  "\beGateway\CardToken" => "$lib_path/CardToken.php",
  "\beGateway\ChildTransaction" => "$lib_path/ChildTransaction.php",
  "\beGateway\Credit" => "$lib_path/Credit.php",
  "\beGateway\Customer" => "$lib_path/Customer.php",
  "\beGateway\GatewayTransport" => "$lib_path/GatewayTransport.php",
  "\beGateway\GetPaymentToken" => "$lib_path/GetPaymentToken.php",
  "\beGateway\Language" => "$lib_path/Language.php",
  "\beGateway\Logger" => "$lib_path/Logger.php",
  "\beGateway\Money" => "$lib_path/Money.php",
  "\beGateway\Payment" => "$lib_path/Payment.php",
  "\beGateway\QueryByToken" => "$lib_path/QueryByToken.php",
  "\beGateway\QueryByTrackingId" => "$lib_path/QueryByTrackingId.php",
  "\beGateway\QueryByUid" => "$lib_path/QueryByUid.php",
  "\beGateway\Refund" => "$lib_path/Refund.php",
  "\beGateway\Response" => "$lib_path/Response.php",
  "\beGateway\ResponseBase" => "$lib_path/ResponseBase.php",
  "\beGateway\ResponseCardToken" => "$lib_path/ResponseCardToken.php",
  "\beGateway\ResponseCheckout" => "$lib_path/ResponseCheckout.php",
  "\beGateway\Settings" => "$lib_path/Settings.php",
  "\beGateway\Void" => "$lib_path/Void.php",
  "\beGateway\Webhook" => "$lib_path/Webhook.php"
 );

CModule::AddAutoloadClasses("", $classes);
开发者ID:beGateway,项目名称:bitrix-payment-module,代码行数:29,代码来源:include.php

示例14: array

<?
CModule::AddAutoloadClasses('anmaslov.stall',
    array(
        'Anmaslov\Stall\OrderStatusTable' => 'lib/orderstatus.php',
        'Anmaslov\Stall\OrderTable' => 'lib/order.php',
        'Anmaslov\Stall\OrderTable' => 'lib/order.php',
        'StallCart' => 'classes/general/StallCart.php',
        )
);

?>
开发者ID:anmaslov,项目名称:stall,代码行数:11,代码来源:include.php

示例15: array

<?php

CModule::AddAutoloadClasses("bizpcate", array("BPCate" => 'classes/general/bizp.php'));
开发者ID:quitis,项目名称:VanThanh,代码行数:3,代码来源:include.php


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