当前位置: 首页>>代码示例>>PHP>>正文


PHP action::perform方法代码示例

本文整理汇总了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);
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:26,代码来源:display_cache_manager_action.class.php

示例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();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:display_chat_room_action.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:14,代码来源:display_chat_room_action.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:17,代码来源:display_cache_manager_action.class.php


注:本文中的action::perform方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。