本文整理匯總了PHP中PKPApplication::initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP PKPApplication::initialize方法的具體用法?PHP PKPApplication::initialize怎麽用?PHP PKPApplication::initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PKPApplication
的用法示例。
在下文中一共展示了PKPApplication::initialize方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define
*
* Copyright (c) 2003-2008 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @ingroup index
*
* @brief Core system initialization code.
* This file is loaded before any others.
* Any system-wide imports or initialization code should be placed here.
*/
// $Id$
/**
* Basic initialization (pre-classloading).
*/
// Update include path
define('ENV_SEPARATOR', strtolower(substr(PHP_OS, 0, 3)) == 'win' ? ';' : ':');
if (!defined('DIRECTORY_SEPARATOR')) {
// Older versions of PHP do not define this
define('DIRECTORY_SEPARATOR', strtolower(substr(PHP_OS, 0, 3)) == 'win' ? '\\' : '/');
}
define('BASE_SYS_DIR', dirname(dirname(__FILE__)));
ini_set('include_path', '.' . ENV_SEPARATOR . BASE_SYS_DIR . '/includes' . ENV_SEPARATOR . BASE_SYS_DIR . '/classes' . ENV_SEPARATOR . BASE_SYS_DIR . '/pages' . ENV_SEPARATOR . BASE_SYS_DIR . '/lib/pkp/classes' . ENV_SEPARATOR . BASE_SYS_DIR . '/lib/pkp/lib/adodb' . ENV_SEPARATOR . BASE_SYS_DIR . '/lib/pkp/lib/smarty' . ENV_SEPARATOR . ini_get('include_path'));
// System-wide functions
require 'functions.inc.php';
/**
* System initialization (post-classloading).
*/
import('core.OJSApplication');
$ojsApplication =& new OJSApplication();
PKPApplication::initialize($ojsApplication);
示例2: initialize
function initialize(&$application)
{
PKPApplication::initialize($application);
import('i18n.Locale');
import('core.Request');
}