本文整理匯總了PHP中jApp::_isInit方法的典型用法代碼示例。如果您正苦於以下問題:PHP jApp::_isInit方法的具體用法?PHP jApp::_isInit怎麽用?PHP jApp::_isInit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類jApp
的用法示例。
在下文中一共展示了jApp::_isInit方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: initPaths
/**
* initialize the application paths
*
* Warning: given paths should be ended by a directory separator.
* @param string $appPath application directory
* @param string $wwwPath www directory
* @param string $varPath var directory
* @param string $logPath log directory
* @param string $configPath config directory
* @param string $scriptPath scripts directory
*/
public static function initPaths($appPath, $wwwPath = null, $varPath = null, $logPath = null, $configPath = null, $scriptPath = null)
{
self::$appPath = $appPath;
self::$wwwPath = is_null($wwwPath) ? $appPath . 'www/' : $wwwPath;
self::$varPath = is_null($varPath) ? $appPath . 'var/' : $varPath;
self::$logPath = is_null($logPath) ? self::$varPath . 'log/' : $logPath;
self::$configPath = is_null($configPath) ? self::$varPath . 'config/' : $configPath;
self::$scriptPath = is_null($scriptPath) ? $appPath . 'scripts/' : $scriptPath;
self::$_isInit = true;
}
示例2: initPaths
/**
* initialize the application paths
*
* Warning: given paths should be ended by a directory separator.
* @param string $appPath application directory
* @param string $wwwPath www directory
* @param string $varPath var directory
* @param string $logPath log directory
* @param string $configPath config directory
* @param string $scriptPath scripts directory
*/
public static function initPaths($appPath, $wwwPath = null, $varPath = null, $logPath = null, $configPath = null, $scriptPath = null)
{
self::$appPath = $appPath;
self::$wwwPath = is_null($wwwPath) ? $appPath . 'www/' : $wwwPath;
self::$varPath = is_null($varPath) ? $appPath . 'var/' : $varPath;
self::$logPath = is_null($logPath) ? self::$varPath . 'log/' : $logPath;
self::$configPath = is_null($configPath) ? self::$varPath . 'config/' : $configPath;
self::$scriptPath = is_null($scriptPath) ? $appPath . 'scripts/' : $scriptPath;
self::$_isInit = true;
self::$_coord = null;
self::$_config = null;
self::$configAutoloader = null;
self::$_mainConfigFile = null;
}