本文整理汇总了PHP中site_object类的典型用法代码示例。如果您正苦于以下问题:PHP site_object类的具体用法?PHP site_object怎么用?PHP site_object使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了site_object类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
function run(&$filter_chain, &$request, &$response)
{
debug :: add_timing_point('locale filter started');
if(!$node = map_request_to_node($request))
{
define('CONTENT_LOCALE_ID', DEFAULT_CONTENT_LOCALE_ID);
define('MANAGEMENT_LOCALE_ID', CONTENT_LOCALE_ID);
$locale =& locale :: instance();
$locale->setlocale();
$filter_chain->next();
return;
}
if($object_locale_id = site_object :: get_locale_by_id($node['object_id']))
define('CONTENT_LOCALE_ID', $object_locale_id);
else
define('CONTENT_LOCALE_ID', DEFAULT_CONTENT_LOCALE_ID);
$user = user :: instance();
if($user_locale_id = $user->get_locale_id())
define('MANAGEMENT_LOCALE_ID', $user_locale_id);
else
define('MANAGEMENT_LOCALE_ID', CONTENT_LOCALE_ID);
debug :: add_timing_point('locale filter finished');
$locale =& locale :: instance();
$locale->setlocale();
$filter_chain->next();
}
示例2: mock_root_object
function mock_root_object()
{
parent :: site_object();
}
示例3: faq_folder_container
function faq_folder_container()
{
parent::site_object();
}
示例4: ad_block_folder
function ad_block_folder()
{
parent::site_object();
}
示例5: site_object_manipulation_test
function site_object_manipulation_test()
{
parent::site_object();
}
示例6: class_folder
function class_folder()
{
parent::site_object();
}
示例7: version
function version()
{
parent::site_object();
}
示例8: file_select
function file_select()
{
parent::site_object();
}
示例9: image_select
function image_select()
{
parent::site_object();
}
示例10: objects_access
function objects_access()
{
parent::site_object();
}
示例11: chat
function chat()
{
parent::site_object();
}
示例12: site_object_auto_identifier_test_version
function site_object_auto_identifier_test_version()
{
parent::site_object();
}
示例13: stats_event
function stats_event()
{
parent::site_object();
}
示例14: poll_container
function poll_container()
{
parent::site_object();
}
示例15: template_source
function template_source()
{
parent::site_object();
}