本文整理汇总了PHP中ClassLoader::addNamespaces方法的典型用法代码示例。如果您正苦于以下问题:PHP ClassLoader::addNamespaces方法的具体用法?PHP ClassLoader::addNamespaces怎么用?PHP ClassLoader::addNamespaces使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ClassLoader
的用法示例。
在下文中一共展示了ClassLoader::addNamespaces方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2015 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('NewsletterContent'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('NewsletterContent\\Classes\\NewsletterContent' => 'system/modules/newsletter_content/classes/NewsletterContent.php', 'NewsletterContent\\Classes\\NewsletterTracking' => 'system/modules/newsletter_content/classes/NewsletterTracking.php', 'NewsletterContent\\Elements\\ContentBoundaries' => 'system/modules/newsletter_content/elements/ContentBoundaries.php', 'NewsletterContent\\Elements\\ContentBreakRow' => 'system/modules/newsletter_content/elements/ContentBreakRow.php', 'NewsletterContent\\Elements\\ContentBreakTable' => 'system/modules/newsletter_content/elements/ContentBreakTable.php', 'NewsletterContent\\Elements\\ContentEvents' => 'system/modules/newsletter_content/elements/ContentEvents.php', 'NewsletterContent\\Elements\\ContentFooter' => 'system/modules/newsletter_content/elements/ContentFooter.php', 'NewsletterContent\\Elements\\ContentForm' => 'system/modules/newsletter_content/elements/ContentForm.php', 'NewsletterContent\\Elements\\ContentGallery' => 'system/modules/newsletter_content/elements/ContentGallery.php', 'NewsletterContent\\Elements\\ContentHeader' => 'system/modules/newsletter_content/elements/ContentHeader.php', 'NewsletterContent\\Elements\\ContentImage' => 'system/modules/newsletter_content/elements/ContentImage.php', 'NewsletterContent\\Elements\\ContentIncludes' => 'system/modules/newsletter_content/elements/ContentIncludes.php', 'NewsletterContent\\Elements\\ContentNews' => 'system/modules/newsletter_content/elements/ContentNews.php', 'NewsletterContent\\Elements\\ContentText' => 'system/modules/newsletter_content/elements/ContentText.php', 'NewsletterContent\\Models\\NewsletterTrackingModel' => 'system/modules/newsletter_content/models/NewsletterTrackingModel.php', 'NewsletterContent\\Modules\\ModuleNewsletterReader' => 'system/modules/newsletter_content/modules/ModuleNewsletterReader.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mail_default' => 'system/modules/newsletter_content/templates', 'nl_breakrow' => 'system/modules/newsletter_content/templates', 'nl_breaktable' => 'system/modules/newsletter_content/templates', 'nl_events' => 'system/modules/newsletter_content/templates', 'nl_footer' => 'system/modules/newsletter_content/templates', 'nl_form' => 'system/modules/newsletter_content/templates', 'nl_gallery' => 'system/modules/newsletter_content/templates', 'nl_header' => 'system/modules/newsletter_content/templates', 'nl_image' => 'system/modules/newsletter_content/templates', 'nl_news' => 'system/modules/newsletter_content/templates', 'nl_text' => 'system/modules/newsletter_content/templates'));
示例2:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package PHPInfo
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('PHPInfo'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('PHPInfo\\PHPInfo' => 'system/modules/PHPInfo/classes/PHPInfo.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('be_PHPInfo' => 'system/modules/PHPInfo/templates'));
示例3:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package Inserttag_download
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('HeimrichHannot'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('HeimrichHannot\\InserttagDownload' => 'system/modules/inserttag_download/classes/InserttagDownload.php', 'ContentDownloadInserttag' => 'system/modules/inserttag_download/classes/ContentDownloadInserttag.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('ce_download_inserttag' => 'system/modules/inserttag_download/templates/elements', 'block_searchable_inline' => 'system/modules/inserttag_download/templates/blocks'));
示例4:
<?php
/**
* Extension for Contao Open Source CMS
*
* Copyright (c) 2014 Daniel Kiesel
*
* @package RESTfulWebservices
* @link https://github.com/craffft/contao-restful-webservices
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('RESTfulWebservices'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('RESTfulWebservices\\JsonResponse' => 'system/modules/restful-webservices/library/RESTfulWebservices/JsonResponse.php', 'RESTfulWebservices\\RESTfulController' => 'system/modules/restful-webservices/library/RESTfulWebservices/RESTfulController.php', 'RESTfulWebservices\\RESTfulWebservice' => 'system/modules/restful-webservices/library/RESTfulWebservices/RESTfulWebservice.php'));
示例5:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2015 Leo Feyer
*
* @package default_densities
* @author Fritz Michael Gschwantner <https://github.com/fritzmg>
* @license LGPL-3.0+
* @copyright Fritz Michael Gschwantner 2015
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('DefaultDensities'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('DefaultDensities\\Picture' => 'system/modules/default_densities/classes/Picture.php'));
示例6:
<?php
/**
* Contao module om_backend
*
* @copyright OMOS.de 2015 <http://www.omos.de>
* @author René Fehrmann <rene.fehrmann@omos.de>
* @package om_backend
* @link http://www.omos.de
* @license LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('om_backend'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('om_backend\\OmBackendHooks' => 'system/modules/om_backend/modules/OmBackendHooks.php', 'om_backend\\OmBackendIdSearch' => 'system/modules/om_backend/modules/OmBackendIdSearch.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mod_om_backend_id_search' => 'system/modules/om_backend/templates'));
示例7:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2015 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('GoogleSitemap'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('GoogleSitemap' => 'system/modules/googlesitemap/GoogleSitemap.php', 'GoogleSitemap\\Automator' => 'system/modules/googlesitemap/Automator.php'));
示例8:
<?php
/**
* Contao Open Source CMS, Copyright (C) 2005-2016 Leo Feyer
*
* @package Xing
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('BugBuster'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('BugBuster\\Xing\\ModuleXingList' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/modules/ModuleXingList.php', 'BugBuster\\Xing\\XingImage' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/classes/XingImage.php', 'BugBuster\\Xing\\DcaXing' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/classes/DcaXing.php', 'BugBuster\\Xing\\DcaModuleXing' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/classes/DcaModuleXing.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mod_xing_list' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/templates', 'mod_xing_list_company' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/templates', 'mod_xing_list_team' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/templates', 'mod_xing_empty' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/templates', 'mod_xing_list_profile' => 'vendor/bugbuster/contao-xing-bundle/src/Resources/contao/templates'));
示例9:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package Glo_immoConnector
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('GloImmoConnector'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('GloImmoConnector\\ImmoConnector' => 'system/modules/glo_immoConnector/classes/ImmoConnector.php', 'GloImmoConnector\\ImmoConnectorHelper' => 'system/modules/glo_immoConnector/classes/ImmoConnectorHelper.php', 'GloImmoConnector\\RegisterWizard' => 'system/modules/glo_immoConnector/classes/RegisterWizard.php', 'GloImmoConnector\\IcAuthModel' => 'system/modules/glo_immoConnector/models/IcAuthModel.php', 'GloImmoConnector\\ModuleImmoConnectorImmoDetail' => 'system/modules/glo_immoConnector/modules/ModuleImmoConnectorImmoDetail.php', 'GloImmoConnector\\ModuleImmoConnectorImmoList' => 'system/modules/glo_immoConnector/modules/ModuleImmoConnectorImmoList.php', 'GloImmoConnector\\ModuleImmoConnectorImmoRandom' => 'system/modules/glo_immoConnector/modules/ModuleImmoConnectorImmoRandom.php', 'GloImmoConnector\\ModuleImmoConnectorImmoSearch' => 'system/modules/glo_immoConnector/modules/ModuleImmoConnectorImmoSearch.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('be_registrationForm' => 'system/modules/glo_immoConnector/templates/backend', 'block_realestateattachment' => 'system/modules/glo_immoConnector/templates/detail', 'block_realestatedetail' => 'system/modules/glo_immoConnector/templates/detail', 'block_realestateobjectrequest' => 'system/modules/glo_immoConnector/templates/detail', 'glo_defaultDetail' => 'system/modules/glo_immoConnector/templates/detail', 'glo_defaultShort' => 'system/modules/glo_immoConnector/templates/list', 'mod_realestatelist' => 'system/modules/glo_immoConnector/templates/list', 'mod_immoConnectorRandom' => 'system/modules/glo_immoConnector/templates/random', 'mod_realestatesearch' => 'system/modules/glo_immoConnector/templates/search'));
示例10:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package Sermoner
* @link https://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('sermoner'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('sermoner\\Sermoner' => 'system/modules/sermoner/classes/Sermoner.php', 'sermoner\\SermonerItems' => 'system/modules/sermoner/classes/SermonerItems.php', 'sermoner\\FeedPodcast' => 'system/modules/sermoner/classes/FeedPodcast.php', 'sermoner\\ContentChosenSermon' => 'system/modules/sermoner/elements/ContentChosenSermon.php', 'getid3' => 'system/modules/sermoner/vendor/james-heinrich/getid3/getid3/getid3.php', 'sermoner\\SermonerItemsModel' => 'system/modules/sermoner/models/SermonerItemsModel.php', 'sermoner\\SermonArchiveModel' => 'system/modules/sermoner/models/SermonArchiveModel.php', 'sermoner\\SermonFeedModel' => 'system/modules/sermoner/models/SermonFeedModel.php', 'sermoner\\ModuleSermon' => 'system/modules/sermoner/modules/ModuleSermon.php', 'sermoner\\ModuleSermonList' => 'system/modules/sermoner/modules/ModuleSermonList.php', 'sermoner\\ModuleSermonReader' => 'system/modules/sermoner/modules/ModuleSermonReader.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('ce_chosenSermon' => 'system/modules/sermoner/templates/elements', 'mod_sermonlist' => 'system/modules/sermoner/templates/modules', 'mod_sermonlist_empty' => 'system/modules/sermoner/templates/modules', 'mod_sermonlist_ajax' => 'system/modules/sermoner/templates/modules', 'mod_sermonreader' => 'system/modules/sermoner/templates/modules', 'sermon_full' => 'system/modules/sermoner/templates/sermoner', 'sermon_startpage' => 'system/modules/sermoner/templates/sermoner'));
示例11:
<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2013 Leo Feyer
*
* @package Print_Backend
* @author Dr. Sylvère Störmann, 101010 Webdesign: Die Homepage-Doktoren
* @link https://101010-webdesign.de
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('PrintBackend'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('PrintBackend\\Combiner' => 'system/modules/print_backend/classes/Combiner.php'));
示例12:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2015 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('Aggregator'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('Aggregator\\AggregatorEngine' => 'system/modules/aggregator/classes/AggregatorEngine.php', 'Aggregator\\TwitterAPIExchange' => 'system/modules/aggregator/classes/TwitterAPIExchange.php', 'Aggregator\\ContentAggregator' => 'system/modules/aggregator/elements/ContentAggregator.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('aggregator_facebook' => 'system/modules/aggregator/templates', 'aggregator_instagram' => 'system/modules/aggregator/templates', 'aggregator_twitter' => 'system/modules/aggregator/templates', 'ce_aggregator' => 'system/modules/aggregator/templates'));
示例13:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2015 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('links'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('links\\ModuleLinksList' => 'system/modules/links/modules/ModuleLinksList.php', 'links\\ModuleLinks' => 'system/modules/links/modules/ModuleLinks.php', 'links\\LinksCategoryModel' => 'system/modules/links/models/LinksCategoryModel.php', 'links\\LinksModel' => 'system/modules/links/models/LinksModel.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('mod_links' => 'system/modules/links/templates/modules', 'links_text' => 'system/modules/links/templates/links', 'links_image' => 'system/modules/links/templates/links'));
示例14:
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2016 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('MagickImages'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('MagickImages\\Image' => 'system/modules/magickimages/library/MagickImages/Image.php', 'MagickImages\\File' => 'system/modules/magickimages/library/MagickImages/File.php'));
示例15:
<?php
/**
* Contao Open Source CMS
*
* Copyright (C) 2005-2013 Leo Feyer
*
* @package nlshEasyPiwikCounter
* @link http://contao.org
* @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array('nlsh'));
/**
* Register the classes
*/
ClassLoader::addClasses(array('nlsh\\easyPiwikCounter\\tl_modulePiwikImpressum' => 'system/modules/nlsh_easy_Piwik_Counter/classes/tl_modulePiwikImpressum.php', 'nlsh\\easyPiwikCounter\\ContentNlshEasyPiwikImpressum' => 'system/modules/nlsh_easy_Piwik_Counter/elements/ContentNlshEasyPiwikImpressum.php', 'nlsh\\easyPiwikCounter\\ModuleNlshEasyPiwikCounter' => 'system/modules/nlsh_easy_Piwik_Counter/modules/ModuleNlshEasyPiwikCounter.php'));
/**
* Register the templates
*/
TemplateLoader::addFiles(array('nlsh_easy_Piwik_Counter' => 'system/modules/nlsh_easy_Piwik_Counter/templates', 'nlsh_easy_Piwik_Impressum' => 'system/modules/nlsh_easy_Piwik_Counter/templates'));