本文整理匯總了PHP中Assets::set_assets_url方法的典型用法代碼示例。如果您正苦於以下問題:PHP Assets::set_assets_url方法的具體用法?PHP Assets::set_assets_url怎麽用?PHP Assets::set_assets_url使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Assets
的用法示例。
在下文中一共展示了Assets::set_assets_url方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
function tearDown()
{
Assets::set_assets_url($this->memo_assets_url);
}
示例2: date_default_timezone_set
require 'config.inc.php';
require_once 'lib/functions.php';
require_once 'lib/language.inc.php';
require_once 'lib/visual.inc.php';
require_once 'lib/deputies_functions.inc.php';
//setup default logger
Log::get()->setHandler($GLOBALS['TMP_PATH'] . '/studip.log');
if (Studip\ENV == 'development') {
Log::get()->setLogLevel(Log::DEBUG);
} else {
Log::get()->setLogLevel(Log::ERROR);
}
// set default time zone
date_default_timezone_set($DEFAULT_TIMEZONE ?: @date_default_timezone_get());
// set assets url
Assets::set_assets_url($GLOBALS['ASSETS_URL']);
// globale template factory anlegen
require_once 'vendor/flexi/lib/flexi.php';
$GLOBALS['template_factory'] = new Flexi_TemplateFactory($STUDIP_BASE_PATH . '/templates');
// set default exception handler
// command line or http request?
if (isset($_SERVER['REQUEST_METHOD'])) {
set_exception_handler('studip_default_exception_handler');
}
// set default pdo connection
DBManager::getInstance()->setConnection('studip', 'mysql:host=' . $GLOBALS['DB_STUDIP_HOST'] . ';dbname=' . $GLOBALS['DB_STUDIP_DATABASE'], $GLOBALS['DB_STUDIP_USER'], $GLOBALS['DB_STUDIP_PASSWORD']);
// set slave connection
if (isset($GLOBALS['DB_STUDIP_SLAVE_HOST'])) {
try {
DBManager::getInstance()->setConnection('studip-slave', 'mysql:host=' . $GLOBALS['DB_STUDIP_SLAVE_HOST'] . ';dbname=' . $GLOBALS['DB_STUDIP_SLAVE_DATABASE'], $GLOBALS['DB_STUDIP_SLAVE_USER'], $GLOBALS['DB_STUDIP_SLAVE_PASSWORD']);
} catch (PDOException $exception) {
示例3: tearDown
function tearDown()
{
Assets::set_assets_url('');
}
示例4: tearDown
function tearDown()
{
\Assets::set_assets_url($this->original_assets_url);
$this->rmTmpDir();
$GLOBALS['STUDIP_BASE_PATH'] = $this->STUDIP_BASE_PATH;
}