本文整理汇总了PHP中AO::includeFile方法的典型用法代码示例。如果您正苦于以下问题:PHP AO::includeFile方法的具体用法?PHP AO::includeFile怎么用?PHP AO::includeFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AO
的用法示例。
在下文中一共展示了AO::includeFile方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category Mage
* @package Mage_Core
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
* @ao-modified
* @ao-copyright 2009 Mark Kimsal
*/
AO::includeFile('Mage/Model/Config_Base');
/**
* Core configuration class
*
* Used to retrieve core configuration values
*
* @link http://var-dev.varien.com/wiki/doku.php?id=magento:api:mage:core:config
* @author Magento Core Team <core@magentocommerce.com>
*/
class Mage_Core_Model_Config extends Mage_Core_Model_Config_Base
{
const CACHE_TAG = 'config';
/**
* Flag which allow use cache logic
*
* @var bool
示例2:
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category Mage
* @package Mage_Core
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
* @ao-modified
* @ao-copyright 2009 Mark Kimsal
*/
AO::includeFile('Mage/Core/Block/Template');
/**
* Layout model
*
* @category Mage
* @package Mage_Core
*/
class Mage_Core_Model_Layout extends Varien_Simplexml_Config
{
/**
* Layout Update module
*
* @var Mage_Core_Layout_Update
*/
protected $_update;
/**
示例3: setDefault
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category Mage
* @package Mage_Core
* @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
* @ao-modified
* @ao-copyright 2009 Mark Kimsal
*/
AO::includeFile('Mage/Core/Controller/Varien/Router/Abstract');
AO::includeFile('Mage/Core/Controller/Front/Action');
class Mage_Core_Controller_Varien_Front extends Varien_Object
{
protected $_defaults = array();
/**
* Available routers array
*
* @var array
*/
protected $_routers = array();
protected $_urlCache = array();
const XML_STORE_ROUTERS_PATH = 'web/routers';
public function setDefault($key, $value = null)
{
if (is_array($key)) {
$this->_defaults = $key;
示例4: _initFrontController
/**
* Initialize application front controller
*
* @return Mage_Core_Model_App
*/
protected function _initFrontController()
{
AO::includeFile('Mage/Core/Controller/Varien/Front');
AO::includeFile('Mage/Core/Model/Session');
$this->_frontController = new Mage_Core_Controller_Varien_Front();
if (VPROF) {
Varien_Profiler::start('mage::app::init_front_controller');
}
$this->_frontController->init();
if (VPROF) {
Varien_Profiler::stop('mage::app::init_front_controller');
}
return $this;
}