本文整理汇总了PHP中storage::dao_initializeEntries方法的典型用法代码示例。如果您正苦于以下问题:PHP storage::dao_initializeEntries方法的具体用法?PHP storage::dao_initializeEntries怎么用?PHP storage::dao_initializeEntries使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类storage
的用法示例。
在下文中一共展示了storage::dao_initializeEntries方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
}
} else {
define('REA_RUNMODE_PORTAL', false);
}
$location = isset($config->application['location_id']) ? $config->application['location_id'] : '*';
$u = rea_sp_rel2dr(REA_BASE_PATH, $location);
if (substr($u, -1, 1) != '/') {
$u .= '/';
}
define('REA_BASE_URL', $u);
define('REA_ENGINE_URL', rea_sp_rel2dr(cfgEngineFolder, $location));
define('REA_SELF_URL', $config->application['attributes']['action']);
rea_app::loadStorageConnections();
$rea_controller->raiseEvent("rea_storage_configure");
$rea_controller->raiseEvent('rea_app_config_ready', array($config));
storage::dao_initializeEntries();
if (REA_RUNMODE_SERVICE) {
rea_app::lock();
}
//print "<b>DONE</b><br>";
function rea_sp_rel2dr($f, $location = '*')
{
///N:Converts an absolute path to relative assuming is under document root
$s = str_replace($_SERVER['DOCUMENT_ROOT'], '', $f);
if (substr($s, 0, 1) != '/') {
$s = '/' . $s;
}
if (!is_null($location) and $location != '*' and strlen($location) > 0) {
$s = '/' . strtolower($location) . $s;
}
return $s;