本文整理匯總了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();
}