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


PHP message_box::parse方法代码示例

本文整理汇总了PHP中message_box::parse方法的典型用法代码示例。如果您正苦于以下问题:PHP message_box::parse方法的具体用法?PHP message_box::parse怎么用?PHP message_box::parse使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在message_box的用法示例。


在下文中一共展示了message_box::parse方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: run

  function run(&$filter_chain, &$request, &$response)
  {
    $filter_chain->next();

    if( $response->get_content_type() == 'text/html' &&
        $response->get_status() == 200)//only 200?
    {
      if (debug :: is_console_enabled())
        $response->write(debug :: parse_html_console());

      $response->write(message_box :: parse());//It definetly should be somewhere else!
    }
  }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:13,代码来源:response_processing_filter.class.php

示例2: run

 function run()
 {
     $request =& request::instance();
     $response =& new http_response();
     $filter_chain =& new filter_chain($request, $response);
     $this->_register_filters($filter_chain);
     $filter_chain->process();
     if ($response->get_content_type() == 'text/html' && $response->get_status() == 200) {
         if (debug::is_console_enabled()) {
             $response->write(debug::parse_html_console());
         }
         $response->write(message_box::parse());
         //It definetly should be somewhere else!
     }
     $response->commit();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:16,代码来源:limb_application.class.php

示例3: run

 function run()
 {
     $this->_inititiliaze_user_session();
     $request =& request::instance();
     $response =& new http_response();
     $filter_chain =& new filter_chain($request, $response);
     $this->_register_filters($filter_chain);
     $filter_chain->process();
     if (!$response->file_sent()) {
         if (debug::is_console_enabled()) {
             echo debug::parse_html_console();
         }
         echo message_box::parse();
         //It definetly should be somewhere else!
     }
     $response->commit();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:17,代码来源:limb_application.class.php

示例4: ob_end_clean

debug::add_timing_point('object fetched');
$site_object_controller =& $site_object->get_controller();
if (($action = $site_object_controller->determine_action()) === false) {
    debug::write_error('"' . $action . '" action not found', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__);
    ob_end_clean();
    if (debug::is_console_enabled()) {
        echo debug::parse_html_console();
    }
    header("HTTP/1.1 404 Not found");
    exit;
}
$actions = $object_data['actions'];
if (!isset($actions[$action])) {
    debug::write_error('"' . $action . '" action is not accessible', __FILE__ . ' : ' . __LINE__ . ' : ' . __FUNCTION__);
    ob_end_clean();
    if (debug::is_console_enabled()) {
        echo debug::parse_html_console();
    }
    header("HTTP/1.1 403 Access denied");
    exit;
}
$response = $site_object_controller->process();
$stats_register = new stats_register();
$stats_register->register($node['id'], $action, $response->get_status());
$response->perform();
$site_object_controller->display_view();
echo message_box::parse();
if (debug::is_console_enabled()) {
    echo debug::parse_html_console();
}
ob_end_flush();
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:root.php

示例5: instance

require_once(LIMB_DIR . 'core/lib/http/control_flow.inc.php');
require_once(LIMB_DIR . 'core/lib/system/message_box.class.php');

start_user_session();

$request =& request :: instance();
$response =& new http_response();

$filter_chain =& new filter_chain($request, $response);

$filter_chain->register_filter($f1 = LIMB_DIR . 'core/filters/locale_definition_filter');
$filter_chain->register_filter($f2 = LIMB_DIR . 'core/filters/authentication_filter');
$filter_chain->register_filter($f3 = LIMB_DIR . 'core/filters/logging_filter');
$filter_chain->register_filter($f4 = LIMB_DIR . 'core/filters/full_page_cache_filter');
$filter_chain->register_filter($f5 = LIMB_DIR . 'core/filters/jip_filter');
$filter_chain->register_filter($f6 = LIMB_DIR . 'core/filters/output_buffering_filter');
$filter_chain->register_filter($f7 = LIMB_DIR . 'core/filters/site_object_controller_filter');

$filter_chain->process();

if(!$response->file_sent())//FIXXX???
{
  if (debug :: is_console_enabled())
  	echo debug :: parse_html_console();
  	
  echo message_box :: parse();//It definetly should be somewhere else!
}

$response->commit();

?>
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:root.php


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