本文整理汇总了PHP中action::perform方法的典型用法代码示例。如果您正苦于以下问题:PHP action::perform方法的具体用法?PHP action::perform怎么用?PHP action::perform使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类action
的用法示例。
在下文中一共展示了action::perform方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: perform
function perform(&$request, &$response)
{
parent :: perform($request, $response);
$full_page_cache_manager = new full_page_cache_manager();
$partial_page_cache_manager = new partial_page_cache_manager();
$image_cache_manager = new image_cache_manager();
$full_page_cache_size = $this->_format_size($full_page_cache_manager->get_cache_size());
$this->view->set('full_page_cache_size', $full_page_cache_size);
$partial_page_cache_size = $this->_format_size($partial_page_cache_manager->get_cache_size());
$this->view->set('partial_page_cache_size', $partial_page_cache_size);
$image_cache_size = $this->_format_size($image_cache_manager->get_cache_size());
$this->view->set('image_cache_size', $image_cache_size);
$template_cache_size = $this->_format_size($this->_get_template_cache_size());
$this->view->set('template_cache_size', $template_cache_size);
$general_cache_size = $this->_format_size($this->_get_general_cache_size());
$this->view->set('general_cache_size', $general_cache_size);
$ini_cache_size = $this->_format_size($this->_get_ini_cache_size());
$this->view->set('ini_cache_size', $ini_cache_size);
}
示例2: perform
function perform()
{
$chat_room_data =& fetch_mapped_by_url();
session::destroy('last_message_ids');
setcookie('chat_room_id', $chat_room_data['object_id'], time() + 365 * 24 * 3600);
chat_user::enter_chat_room($chat_room_data['object_id']);
return parent::perform();
}
示例3: perform
function perform(&$request, &$response)
{
$chat_room_data =& fetch_requested_object();
session::destroy('last_message_ids');
setcookie('chat_room_id', $chat_room_data['object_id'], time() + 365 * 24 * 3600);
if ($chat_user_data = chat_user::get_chat_user_data()) {
if ($chat_user_data['chat_room_id'] != $chat_room_data['object_id']) {
chat_system::leave_chat_room($chat_user_data['id'], $chat_user_data['nickname'], $chat_user_data['chat_room_id']);
chat_system::enter_chat_room($chat_user_data['id'], $chat_user_data['nickname'], $chat_room_data['object_id']);
}
$this->view->set('nickname', $chat_user_data['nickname']);
}
parent::perform(&$request, &$response);
}
示例4: perform
function perform(&$request, &$response)
{
parent::perform($request, $response);
$full_page_cache_manager = new full_page_cache_manager();
$partial_page_cache_manager = new partial_page_cache_manager();
$image_cache_manager = new image_cache_manager();
$full_page_cache_size = number_format($full_page_cache_manager->get_cache_size() / 1024) . " KB";
$this->view->set('full_page_cache_size', $full_page_cache_size);
$partial_page_cache_size = number_format($partial_page_cache_manager->get_cache_size() / 1024) . " KB";
$this->view->set('partial_page_cache_size', $partial_page_cache_size);
$image_cache_size = number_format($image_cache_manager->get_cache_size() / 1024) . " KB";
$this->view->set('image_cache_size', $image_cache_size);
$template_cache_size = number_format($this->_get_template_cache_size() / 1024) . " KB";
$this->view->set('template_cache_size', $template_cache_size);
$ini_cache_size = number_format($this->_get_ini_cache_size() / 1024) . " KB";
$this->view->set('ini_cache_size', $ini_cache_size);
}