本文整理汇总了PHP中Wind::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Wind::init方法的具体用法?PHP Wind::init怎么用?PHP Wind::init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Wind
的用法示例。
在下文中一共展示了Wind::init方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
protected function setUp()
{
parent::setUp();
Wind::init();
}
示例2: _setImport
/**
*
* @param string $className
* @param string $classPath
* @return void
*/
private static function _setImport($className, $classPath)
{
self::$_imports[$classPath] = $className;
if (!isset(self::$_classes[$className])) {
$_classPath = self::getRealPath($classPath, false);
self::$_classes[$className] = $_classPath;
} else {
$_classPath = self::$_classes[$className];
}
if (!self::$_isAutoLoad) {
self::autoLoad($className, $_classPath);
}
}
/**
* 加载核心层库函数
*
* @return void
*/
private static function _loadBaseLib()
{
self::$_classes = array('AbstractWindBootstrap' => 'base/AbstractWindBootstrap', 'AbstractWindFrontController' => 'base/AbstractWindFrontController', 'AbstractWindApplication' => 'base/AbstractWindApplication', 'IWindController' => 'base/IWindController', 'IWindRequest' => 'base/IWindRequest', 'IWindResponse' => 'base/IWindResponse', 'WindActionException' => 'base/WindActionException', 'WindEnableValidateModule' => 'base/WindEnableValidateModule', 'WindError' => 'base/WindError', 'WindErrorMessage' => 'base/WindErrorMessage', 'WindException' => 'base/WindException', 'WindFactory' => 'base/WindFactory', 'WindFinalException' => 'base/WindFinalException', 'WindForwardException' => 'base/WindForwardException', 'WindModule' => 'base/WindModule', 'WindActionFilter' => 'filter/WindActionFilter', 'WindHandlerInterceptor' => 'filter/WindHandlerInterceptor', 'WindHandlerInterceptorChain' => 'filter/WindHandlerInterceptorChain', 'WindLogger' => 'log/WindLogger', 'WindLangResource' => 'i18n/WindLangResource', 'WindConfigParser' => 'parser/WindConfigParser', 'WindArray' => 'utility/WindArray', 'WindConvert' => 'utility/WindConvert', 'WindCookie' => 'utility/WindCookie', 'WindDate' => 'utility/WindDate', 'WindFile' => 'utility/WindFile', 'WindFolder' => 'utility/WindFolder', 'WindGeneralDate' => 'utility/WindGeneralDate', 'WindImage' => 'utility/WindImage', 'WindJson' => 'utility/WindJson', 'WindPack' => 'utility/WindPack', 'WindSecurity' => 'utility/WindSecurity', 'WindString' => 'utility/WindString', 'WindUrlHelper' => 'utility/WindUrlHelper', 'WindUtility' => 'utility/WindUtility', 'WindValidator' => 'utility/WindValidator');
}
}
Wind::init();