本文整理汇总了PHP中Autoloader::add_core_namespace方法的典型用法代码示例。如果您正苦于以下问题:PHP Autoloader::add_core_namespace方法的具体用法?PHP Autoloader::add_core_namespace怎么用?PHP Autoloader::add_core_namespace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Autoloader
的用法示例。
在下文中一共展示了Autoloader::add_core_namespace方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
Autoloader::add_core_namespace('CKEditor');
Autoloader::add_classes(array('CKEditor\\CKEditor' => __DIR__ . DS . 'classes' . DS . 'ckeditor.php'));
Config::load(__DIR__ . DS . 'config' . DS . 'config.php', 'ckeditor', false, true);
require __DIR__ . DS . 'core.php';
示例2:
<?php
/**
* Access: role based permissions library for FuelPHP - depends on Warden.
*
* @package Access
* @subpackage Access
* @version 2.0
* @author Jordan Kapelner
* @license MIT License
* @copyright (c) 2013 Jordan Kapelner
*/
/*
* Make sure the dependency packages are loaded.
*/
Package::load(array('warden'));
Autoloader::add_core_namespace('Access');
Autoloader::add_classes(array('Access\\Access' => __DIR__ . '/classes/access.php'));
Config::load('access', true);
示例3:
<?php
/**
* Amon: Integrate FuelPHP with Amon Exception & Logging
*
* @package Amon
* @version v0.1
* @author Matthew McConnell
* @license MIT License
* @link http://github.com/maca134/fuelphp-amon
*/
Autoloader::add_core_namespace('Amon');
Autoloader::add_classes(array('Amon\\Error' => __DIR__ . '/classes/error.php', 'Amon\\Log' => __DIR__ . '/classes/log.php', 'Amon\\Amon_Data' => __DIR__ . '/classes/amon/data.php', 'Amon\\Amon_Request' => __DIR__ . '/classes/amon/request.php', 'Amon\\Amon_Request_Http' => __DIR__ . '/classes/amon/request/http.php', 'Amon\\Amon_Request_Zeromq' => __DIR__ . '/classes/amon/request/zeromq.php'));
示例4:
<?php
Autoloader::add_core_namespace('Crm\\Creditor');
// Load the config file for the package
\Config::load('creditor', true);
Autoloader::add_classes(array('Controller_Crm_Creditor' => __DIR__ . '/controller/index.php', 'Crm\\Creditor\\Creditor_model' => __DIR__ . '/model/creditor_model.php', 'Crm\\Creditor\\Creditor_class' => __DIR__ . '/classes/creditor_class.php'));
示例5:
<?php
/**
* Fuzzy Search
*
* @package Fuzzy_Search
* @version 1.0
* @author Takeshige Nii
* @license MIT License
* @copyright 2015 rz Inc.
* @link http://rrr-z.jp/
*/
\Autoloader::add_core_namespace('Fuzzy_Search');
\Autoloader::add_classes(array('Fuzzy_Search\\Fuzzy' => __DIR__ . '/classes/fuzzy.php', 'Fuzzy_Search\\Fuzzy_Address' => __DIR__ . '/classes/fuzzy/address.php', 'Fuzzy_Search\\Fuzzy_Tell' => __DIR__ . '/classes/fuzzy/tell.php', 'Fuzzy_Search\\Fuzzy_Zip' => __DIR__ . '/classes/fuzzy/zip.php', 'Fuzzy_Search\\Traits_Number' => __DIR__ . '/classes/traits/number.php', 'Fuzzy_Search\\Traits_Symbol' => __DIR__ . '/classes/traits/symbol.php'));
示例6:
<?php
Autoloader::add_core_namespace('SMS');
Autoloader::add_classes(array(
'SMS\\SMS' => __DIR__.'/classes/sms.php',
'SMS\\SMS_Driver' => __DIR__.'/classes/sms/driver.php',
'SMS\\SMS_Driver_Textlocal' => __DIR__.'/classes/sms/driver/textlocal.php',
'SMS\\Model_Sms_Log' => __DIR__.'/model/sms_log.php',
));
示例7:
<?php
/**
* Alias the Log namespace to global so we can overload the Log class
*/
Autoloader::add_core_namespace('Log');
/**
* Inform the autoloader where to find what...
*/
/**
* v1.x style classes.
*/
Autoloader::add_classes(array('Log\\Log' => __DIR__ . '/classes/log.php'));
/**
* v2.0 style classes. They are PSR-0, so we only need to define the path.
*/
Autoloader::add_namespace('Psr\\Log', __DIR__ . '/Psr/Log/', true);
Autoloader::add_namespace('Monolog', __DIR__ . '/src/Monolog/', true);
示例8:
<?php
/**
* Flexible currency converter for FuelPHP
*
* @package Currency
* @version 1.0
* @author Jaroslav Petrusevic (huglester)
* @license MIT License
* @copyright 2012 Jaroslav Petrusevic (huglester)
* @link http://www.webas.lt
*/
Autoloader::add_core_namespace('Currency');
Autoloader::add_classes(array('Currency\\Currency' => __DIR__ . '/classes/currency.php', 'Currency\\Currency_Driver' => __DIR__ . '/classes/currency/driver.php', 'Currency\\Currency_Driver_Openexchangerates' => __DIR__ . '/classes/currency/driver/openexchangerates.php', 'Currency\\Currency_Driver_Google' => __DIR__ . '/classes/currency/driver/google.php', 'Currency\\Currency_Driver_Yahoo' => __DIR__ . '/classes/currency/driver/yahoo.php', 'Currency\\Currency_Driver_Json' => __DIR__ . '/classes/currency/driver/json.php'));
示例9:
<?php
/**
* @author Yoshihisa
* @version 1.0
* @package Fuel
* @subpackage G2FA
*/
\Autoloader::add_core_namespace('G2FA');
\Autoloader::add_classes(array('G2FA\\G2FA' => __DIR__ . '/classes/g2fa.php'));
示例10:
<?php
/**
* Payments
*
* The payments package allows you to easily process e-commerce transactions
* without having to worry about all the backend details of connecting and
* settings up specifications regarding various payment portals.
*
* @package Payments
* @version 1.0
* @author Ninjarite Development Group
* @license MIT License
* @copyright 2011 Ninjarite Development
*/
Autoloader::add_core_namespace('Payments');
// Define available classes into the Autoloader
Autoloader::add_classes(array('Payments\\Payment' => __DIR__ . '/classes/payment.php', 'Payments\\Payment_Driver' => __DIR__ . '/classes/payment/driver.php', 'Payments\\Payment_Driver_Authorize' => __DIR__ . '/classes/payment/driver.php', 'Payments\\Payment_Driver_Googlecheckout' => __DIR__ . '/classes/payment/driver.php', 'Payments\\Payment_Driver_Moneybookers' => __DIR__ . '/classes/payment/driver.php', 'Payments\\Payment_Driver_Paypal' => __DIR__ . '/classes/payment/driver.php', 'Payments\\Payment_Driver_Paypalpro' => __DIR__ . '/classes/payment/driver.php', 'Payments\\Payment_Driver_Trident' => __DIR__ . '/classes/payment/driver.php', 'Payments\\Payment_Driver_Trustcommerce' => __DIR__ . '/classes/payment/driver.php', 'Payments\\Payment_Driver_Yourpay' => __DIR__ . '/classes/payment/driver.php'));
/* End of file bootstrap.php */
示例11:
<?php
/**
* @package PostgreSQL
* @version 1.0
* @author Michiel De Mey
* @license MIT License
* @link http://michieldemey.be
*/
Autoloader::add_core_namespace('Pgsql');
Autoloader::add_classes(array('Pgsql\\Database_Pgsql_Connection' => __DIR__ . '/classes/database/pgsql/connection.php', 'Pgsql\\Database_Pgsql_Result' => __DIR__ . '/classes/database/pgsql/result.php'));
示例12:
<?php
Autoloader::add_core_namespace('Message');
Autoloader::add_classes(array('Message\\Message' => __DIR__ . '/classes/message.php'));
示例13:
<?php
/**
* Part of the Petro package for Fuel.
*
* @package Petro
* @version 1.0
* @author Rati Wannapanop
* @license MIT License
* @copyright 2011 Rati Wannapanop
* @link <to be added>
*/
Autoloader::add_core_namespace('Petro');
Autoloader::add_classes(array('Petro\\Petro' => __DIR__ . '/classes/petro.php', 'Petro\\Petro_Grid' => __DIR__ . '/classes/petro/grid.php', 'Petro\\Petro_Lookup' => __DIR__ . '/classes/petro/lookup.php', 'Petro\\Petro_Sidebar' => __DIR__ . '/classes/petro/sidebar.php', 'Petro\\Petro_Form' => __DIR__ . '/classes/petro/form.php', 'Petro\\Petro_Menu' => __DIR__ . '/classes/petro/menu.php', 'Petro\\Petro_Comment' => __DIR__ . '/classes/petro/comment.php', 'Petro\\Controller_App' => __DIR__ . '/classes/controller/app.php', 'Petro\\Controller_Users' => __DIR__ . '/classes/controller/users.php', 'Petro\\Controller_Groups' => __DIR__ . '/classes/controller/groups.php', 'Petro\\Controller_Dashboard' => __DIR__ . '/classes/controller/dashboard.php', 'Petro\\Model_User' => __DIR__ . '/classes/model/user.php', 'Petro\\Model_Group' => __DIR__ . '/classes/model/group.php', 'Petro\\Model_Comment' => __DIR__ . '/classes/model/comment.php'));
示例14:
<?php
/**
* Fuel
*
* Fuel is a fast, lightweight, community driven PHP5 framework.
*
* @package Fuel
* @version 1.6
* @author Fuel Development Team
* @license MIT License
* @copyright 2010 - 2013 Fuel Development Team
* @link http://fuelphp.com
*/
Autoloader::add_core_namespace('Auth');
Autoloader::add_classes(array('Auth\\Auth' => __DIR__ . '/classes/auth.php', 'Auth\\AuthException' => __DIR__ . '/classes/auth.php', 'Auth\\Auth_Driver' => __DIR__ . '/classes/auth/driver.php', 'Auth\\Auth_Acl_Driver' => __DIR__ . '/classes/auth/acl/driver.php', 'Auth\\Auth_Acl_Simpleacl' => __DIR__ . '/classes/auth/acl/simpleacl.php', 'Auth\\Auth_Acl_Ormacl' => __DIR__ . '/classes/auth/acl/ormacl.php', 'Auth\\Auth_Group_Driver' => __DIR__ . '/classes/auth/group/driver.php', 'Auth\\Auth_Group_Simplegroup' => __DIR__ . '/classes/auth/group/simplegroup.php', 'Auth\\Auth_Group_Ormgroup' => __DIR__ . '/classes/auth/group/ormgroup.php', 'Auth\\Auth_Login_Driver' => __DIR__ . '/classes/auth/login/driver.php', 'Auth\\Auth_Login_Simpleauth' => __DIR__ . '/classes/auth/login/simpleauth.php', 'Auth\\Auth_Login_Ormauth' => __DIR__ . '/classes/auth/login/ormauth.php', 'Auth\\SimpleUserUpdateException' => __DIR__ . '/classes/auth/exceptions.php', 'Auth\\SimpleUserWrongPassword' => __DIR__ . '/classes/auth/exceptions.php', 'Auth\\Model\\Auth_User' => __DIR__ . '/classes/model/auth/user.php', 'Auth\\Model\\Auth_Userpermission' => __DIR__ . '/classes/model/auth/userpermission.php', 'Auth\\Model\\Auth_Metadata' => __DIR__ . '/classes/model/auth/metadata.php', 'Auth\\Model\\Auth_Group' => __DIR__ . '/classes/model/auth/group.php', 'Auth\\Model\\Auth_Grouppermission' => __DIR__ . '/classes/model/auth/grouppermission.php', 'Auth\\Model\\Auth_Role' => __DIR__ . '/classes/model/auth/role.php', 'Auth\\Model\\Auth_Rolepermission' => __DIR__ . '/classes/model/auth/rolepermission.php', 'Auth\\Model\\Auth_Permission' => __DIR__ . '/classes/model/auth/permission.php'));
示例15:
<?php
Autoloader::add_core_namespace('Skills', true);
Autoloader::add_classes(array('Skills\\Skills' => __DIR__ . '/classes/skills.php', 'Skills\\Validation' => __DIR__ . '/classes/validation.php', 'Skills\\SkillsException' => __DIR__ . '/classes/skills.php', 'Skills\\Model\\Skill' => __DIR__ . '/classes/model/skill.php', 'Skills\\Access' => __DIR__ . '/classes/access.php'));