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


PHP ClassLoader::addClasses方法代码示例

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


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

示例1:

<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2016 Leo Feyer
 *
 * @license LGPL-3.0+
 */
/**
 * Register the namespaces
 */
ClassLoader::addNamespaces(array('Hofff'));
/**
 * Register the classes
 */
ClassLoader::addClasses(array('Hofff\\Contao\\Calendarfield\\FormCalendarField' => 'system/modules/hofff_calendarfield/forms/FormCalendarField.php'));
/**
 * Register the templates
 */
TemplateLoader::addFiles(array('form_calendarfield' => 'system/modules/hofff_calendarfield/templates/forms'));
开发者ID:hofff,项目名称:contao-calendarfield,代码行数:21,代码来源:autoload.php

示例2:

<?php

/**
 * news_categories extension for Contao Open Source CMS
 *
 * Copyright (C) 2011-2014 Codefog
 *
 * @package news_categories
 * @author  Webcontext <http://webcontext.com>
 * @author  Codefog <info@codefog.pl>
 * @author  Kamil Kuzminski <kamil.kuzminski@codefog.pl>
 * @license LGPL
 */
/**
 * Register the namespace
 */
ClassLoader::addNamespace('NewsCategories');
/**
 * Register the classes
 */
ClassLoader::addClasses(array('NewsCategories\\News' => 'system/modules/news_categories/classes/News.php', 'NewsCategories\\NewsCategories' => 'system/modules/news_categories/classes/NewsCategories.php', 'NewsCategories\\ContentNewsFilter' => 'system/modules/news_categories/elements/ContentNewsFilter.php', 'NewsCategories\\NewsCategoryModel' => 'system/modules/news_categories/models/NewsCategoryModel.php', 'NewsCategories\\NewsCategoryMultilingualModel' => 'system/modules/news_categories/models/NewsCategoryMultilingualModel.php', 'NewsCategories\\NewsModel' => 'system/modules/news_categories/models/NewsModel.php', 'NewsCategories\\ModuleNewsCategories' => 'system/modules/news_categories/modules/ModuleNewsCategories.php', 'NewsCategories\\ModuleNewsArchive' => 'system/modules/news_categories/modules/ModuleNewsArchive.php', 'NewsCategories\\ModuleNewsList' => 'system/modules/news_categories/modules/ModuleNewsList.php', 'NewsCategories\\ModuleNewsMenu' => 'system/modules/news_categories/modules/ModuleNewsMenu.php'));
/**
 * Register the templates
 */
TemplateLoader::addFiles(array('mod_newscategories' => 'system/modules/news_categories/templates/modules', 'nav_newscategories' => 'system/modules/news_categories/templates/navigation'));
开发者ID:codefog,项目名称:contao-news_categories,代码行数:25,代码来源:autoload.php

示例3:

<?php

ClassLoader::addClasses(['PwSuggestion' => 'system/modules/password-suggestion/classes/PwSuggestion.php']);
开发者ID:presprog,项目名称:contao-password-suggestion,代码行数:3,代码来源:autoload.php

示例4:

<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2015 Leo Feyer
 *
 * @license LGPL-3.0+
 */
// Classes
ClassLoader::addClasses(array('Contao\\News' => 'vendor/contao/news-bundle/src/Resources/contao/classes/News.php', 'Contao\\NewsArchiveModel' => 'vendor/contao/news-bundle/src/Resources/contao/models/NewsArchiveModel.php', 'Contao\\NewsFeedModel' => 'vendor/contao/news-bundle/src/Resources/contao/models/NewsFeedModel.php', 'Contao\\NewsModel' => 'vendor/contao/news-bundle/src/Resources/contao/models/NewsModel.php', 'Contao\\ModuleNews' => 'vendor/contao/news-bundle/src/Resources/contao/modules/ModuleNews.php', 'Contao\\ModuleNewsArchive' => 'vendor/contao/news-bundle/src/Resources/contao/modules/ModuleNewsArchive.php', 'Contao\\ModuleNewsList' => 'vendor/contao/news-bundle/src/Resources/contao/modules/ModuleNewsList.php', 'Contao\\ModuleNewsMenu' => 'vendor/contao/news-bundle/src/Resources/contao/modules/ModuleNewsMenu.php', 'Contao\\ModuleNewsReader' => 'vendor/contao/news-bundle/src/Resources/contao/modules/ModuleNewsReader.php'));
// Templates
TemplateLoader::addFiles(array('mod_newsarchive' => 'vendor/contao/news-bundle/src/Resources/contao/templates/modules', 'mod_newslist' => 'vendor/contao/news-bundle/src/Resources/contao/templates/modules', 'mod_newsmenu' => 'vendor/contao/news-bundle/src/Resources/contao/templates/modules', 'mod_newsreader' => 'vendor/contao/news-bundle/src/Resources/contao/templates/modules', 'news_full' => 'vendor/contao/news-bundle/src/Resources/contao/templates/news', 'news_latest' => 'vendor/contao/news-bundle/src/Resources/contao/templates/news', 'news_short' => 'vendor/contao/news-bundle/src/Resources/contao/templates/news', 'news_simple' => 'vendor/contao/news-bundle/src/Resources/contao/templates/news'));
开发者ID:burguin,项目名称:test02,代码行数:13,代码来源:autoload.php

示例5:

<?php

/**
 * Dropbox tools extension for Contao Open Source CMS
 *
 * Copyright (C) 2015 Davide Rocchi
 *
 * @package dropbox_tools
 * @author  Davide Rocchi <http://www.daviderocchi.it>
 * @license LGPL
 */
/**
 * Register the namespace
 */
ClassLoader::addNamespace('DropboxTools');
/**
 * Register the classes
 */
ClassLoader::addClasses(array('DropboxTools\\DropboxClient' => 'system/modules/dropbox_tools/classes/DropboxClient.php', 'DropboxTools\\WidgetDropboxChooser' => 'system/modules/dropbox_tools/widgets/WidgetDropboxChooser.php', 'DropboxTools\\ContentDropboxDownloads' => 'system/modules/dropbox_tools/elements/ContentDropboxDownloads.php', 'DropboxTools\\ContentDropboxToolsTest' => 'system/modules/dropbox_tools/elements/ContentDropboxToolsTest.php'));
/**
 * Register the templates
 */
TemplateLoader::addFiles(array('ce_dropbox_downloads' => 'system/modules/dropbox_tools/templates/elements', 'ce_dropboxtoolstest' => 'system/modules/dropbox_tools/templates/elements'));
开发者ID:rocchidavide,项目名称:contao-dropbox_tools,代码行数:23,代码来源:autoload.php

示例6:

<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2014 Leo Feyer
 *
 * @package Newsletter
 * @link    https://contao.org
 * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
 */
/**
 * Register the classes
 */
ClassLoader::addClasses(array('Contao\\Newsletter' => 'system/modules/newsletter/classes/Newsletter.php', 'Contao\\NewsletterChannelModel' => 'system/modules/newsletter/models/NewsletterChannelModel.php', 'Contao\\NewsletterModel' => 'system/modules/newsletter/models/NewsletterModel.php', 'Contao\\NewsletterRecipientsModel' => 'system/modules/newsletter/models/NewsletterRecipientsModel.php', 'Contao\\ModuleNewsletterList' => 'system/modules/newsletter/modules/ModuleNewsletterList.php', 'Contao\\ModuleNewsletterReader' => 'system/modules/newsletter/modules/ModuleNewsletterReader.php', 'Contao\\ModuleSubscribe' => 'system/modules/newsletter/modules/ModuleSubscribe.php', 'Contao\\ModuleUnsubscribe' => 'system/modules/newsletter/modules/ModuleUnsubscribe.php'));
/**
 * Register the templates
 */
TemplateLoader::addFiles(array('mod_newsletter' => 'system/modules/newsletter/templates/modules', 'mod_newsletter_list' => 'system/modules/newsletter/templates/modules', 'mod_newsletter_reader' => 'system/modules/newsletter/templates/modules', 'nl_default' => 'system/modules/newsletter/templates/newsletter'));
开发者ID:iCodr8,项目名称:core,代码行数:19,代码来源:autoload.php

示例7:

<?php

/**
 * notification_center extension for Contao Open Source CMS
 *
 * @copyright  Copyright (c) 2008-2015, terminal42
 * @author     terminal42 gmbh <info@terminal42.ch>
 * @license    LGPL
 */
/**
 * Register PSR-0 namespace
 */
NamespaceClassLoader::add('NotificationCenter', 'system/modules/notification_center/library');
/**
 * Register classes outside the namespace folder
 */
NamespaceClassLoader::addClassMap(array('NotificationCenter\\tl_form' => 'system/modules/notification_center/classes/tl_form.php', 'NotificationCenter\\tl_member' => 'system/modules/notification_center/classes/tl_member.php', 'NotificationCenter\\tl_module' => 'system/modules/notification_center/classes/tl_module.php', 'NotificationCenter\\tl_nc_gateway' => 'system/modules/notification_center/classes/tl_nc_gateway.php', 'NotificationCenter\\tl_nc_notification' => 'system/modules/notification_center/classes/tl_nc_notification.php', 'NotificationCenter\\tl_nc_language' => 'system/modules/notification_center/classes/tl_nc_language.php', 'NotificationCenter\\tl_nc_message' => 'system/modules/notification_center/classes/tl_nc_message.php', 'NotificationCenter\\tl_nc_queue' => 'system/modules/notification_center/classes/tl_nc_queue.php'));
/**
 * Register Contao classes
 */
ClassLoader::addClasses(array('Contao\\ModulePasswordNotificationCenter' => 'system/modules/notification_center/modules/ModulePasswordNotificationCenter.php'));
开发者ID:Ainschy,项目名称:contao-notification_center,代码行数:21,代码来源:autoload.php

示例8:

<?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'));
开发者ID:presprog,项目名称:contao-restful-webservices,代码行数:19,代码来源:autoload.php

示例9:

<?php

/**
 * PHP version 5
 * @package    dc-general
 * @author     Christian Schiffler <c.schiffler@cyberspectrum.de>
 * @author     Stefan Heimes <stefan_heimes@hotmail.com>
 * @author     Tristan Lins <tristan.lins@bit3.de>
 * @copyright  Contao Community Alliance.
 * @license    LGPL.
 * @filesource
 */
/**
 * Register the classes
 */
ClassLoader::addClasses(array('DC_General' => 'system/modules/dc-general/DC_General.php'));
/**
 * Register the templates
 */
TemplateLoader::addFiles(array('dcbe_general_edit' => 'system/modules/dc-general/templates', 'dcbe_general_field' => 'system/modules/dc-general/templates', 'dcbe_general_language_panel' => 'system/modules/dc-general/templates', 'dcbe_general_listView' => 'system/modules/dc-general/templates', 'dcbe_general_listView_sorting' => 'system/modules/dc-general/templates', 'dcbe_general_panel' => 'system/modules/dc-general/templates', 'dcbe_general_panel_filter' => 'system/modules/dc-general/templates', 'dcbe_general_panel_limit' => 'system/modules/dc-general/templates', 'dcbe_general_panel_search' => 'system/modules/dc-general/templates', 'dcbe_general_panel_sort' => 'system/modules/dc-general/templates', 'dcbe_general_panel_submit' => 'system/modules/dc-general/templates', 'dcbe_general_parentView' => 'system/modules/dc-general/templates', 'dcbe_general_show' => 'system/modules/dc-general/templates', 'dcbe_general_treeview' => 'system/modules/dc-general/templates', 'dcbe_general_treeview_child' => 'system/modules/dc-general/templates', 'dcbe_general_treeview_entry' => 'system/modules/dc-general/templates', 'dcbe_general_breadcrumb' => 'system/modules/dc-general/templates', 'dcbe_general_grouping' => 'system/modules/dc-general/templates', 'widget_treepicker' => 'system/modules/dc-general/templates', 'widget_treepicker_popup' => 'system/modules/dc-general/templates', 'widget_treepicker_entry' => 'system/modules/dc-general/templates', 'widget_treepicker_child' => 'system/modules/dc-general/templates'));
开发者ID:amenk,项目名称:dc-general,代码行数:20,代码来源:autoload.php

示例10:

<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2015 Leo Feyer
 *
 * @license LGPL-3.0+
 */
/**
 * Register the classes
 */
ClassLoader::addClasses(array('AjaxLayout' => 'system/modules/ajax_layout/classes/AjaxLayout.php'));
/**
 * Register the templates
 */
TemplateLoader::addFiles(array('fe_page_ajax' => 'system/modules/ajax_layout/templates'));
开发者ID:fritzmg,项目名称:contao-ajax-layout,代码行数:17,代码来源:autoload.php

示例11:

<?php

/**
 * Contao Open Source CMS
 *
 * Copyright (c) 2005-2016 Leo Feyer
 *
 * @license LGPL-3.0+
 */
/**
 * Register the namespaces
 */
ClassLoader::addNamespaces(array('Blioxxx'));
/**
 * Register the classes
 */
ClassLoader::addClasses(array('Blioxxx\\uLibrary\\images' => 'system/modules/bx_universal/library/images.php'));
开发者ID:blioxxx,项目名称:contao-universal-library,代码行数:17,代码来源:autoload.php

示例12:

<?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'));
开发者ID:heimrichhannot,项目名称:contao-googlesitemap,代码行数:17,代码来源:autoload.php

示例13:

<?php

/**
 * Extension for Contao Open Source CMS
 *
 * Copyright (c) 2014 Daniel Kiesel
 *
 * @package AccountMail
 * @link    https://github.com/craffft/contao-accountmail
 * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL
 */
/**
 * Register the namespaces
 */
ClassLoader::addNamespaces(array('Craffft'));
/**
 * Register the classes
 */
ClassLoader::addClasses(array('Craffft\\CssStyleSelector\\CssStyleSelectorHelper' => 'system/modules/css-style-selector/library/Craffft/CssStyleSelector/CssStyleSelectorHelper.php', 'Craffft\\CssStyleSelector\\CssStyleSelectorModel' => 'system/modules/css-style-selector/models/CssStyleSelectorModel.php'));
开发者ID:craffft,项目名称:contao-css-style-selector,代码行数:19,代码来源:autoload.php

示例14:

<?php

/**
 * Extension for Contao Open Source CMS
 *
 * Copyright (C) 2009 - 2016 terminal42 gmbh
 *
 * @package    easy_themes
 * @link       http://www.terminal42.ch
 * @license    http://opensource.org/licenses/lgpl-3.0.html LGPL
 */
/**
 * Register the classes
 */
ClassLoader::addClasses(array('CheckBoxChooseAtLeastOne' => 'system/modules/easy_themes/CheckBoxChooseAtLeastOne.php', 'EasyThemes' => 'system/modules/easy_themes/EasyThemes.php'));
/**
 * Register the templates
 */
TemplateLoader::addFiles(array('be_easythemes' => 'system/modules/easy_themes/templates'));
开发者ID:terminal42,项目名称:contao-easy_themes,代码行数:19,代码来源:autoload.php

示例15:

<?php

/**
 * ajaxform extension for Contao Open Source CMS
 *
 * @copyright  Copyright (c) 2009-2014, terminal42 gmbh
 * @author     terminal42 gmbh <info@terminal42.ch>
 * @license    http://opensource.org/licenses/lgpl-3.0.html LGPL
 * @link       http://github.com/aschempp/contao-ajaxform
 */
/**
 * Register the classes
 */
ClassLoader::addClasses(array('AjaxForm' => 'system/modules/ajaxform/AjaxForm.php'));
/**
 * Register the templates
 */
TemplateLoader::addFiles(array('ajaxform_confirm' => 'system/modules/ajaxform/templates', 'ajaxform_inline' => 'system/modules/ajaxform/templates', 'ajaxform' => 'system/modules/ajaxform/templates'));
开发者ID:terminal42,项目名称:contao-ajaxform,代码行数:18,代码来源:autoload.php


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