本文整理汇总了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;
}