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


PHP debug::return_pretty_var_dump方法代码示例

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


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

示例1: mail_body

 /**
  * The mail body / message
  * Extend this to child classes
  *
  * @since ADD MVC 0.0
  */
 public function mail_body()
 {
     $important_info = array("Path" => $_SERVER['REQUEST_URI'], "IP" => $_SERVER['REMOTE_ADDR'], "User Agent" => $_SERVER['HTTP_USER_AGENT']);
     $original_message = $this->getMessage();
     $message = $this->truncated_subject();
     $mail_body_header = "= {$message} =\r\n";
     if ($original_message != $message) {
         $mail_body_header .= "{$original_message}\r\n\r\n";
     }
     return $mail_body_header . debug::return_pretty_var_dump($important_info) . "\r\n" . "== Data ==\r\n" . debug::return_pretty_var_dump($this->data) . "\r\n" . "== Trace ==\r\n" . debug::return_pretty_var_dump($this->getTrace()) . "\r\n" . "== User Latest Request Data ==\r\n" . debug::return_pretty_var_dump(current_user::singleton()->request_data()) . "\r\n";
     "== User Activities ==\r\n" . debug::return_pretty_var_dump(current_user::singleton()->trimmed_activities());
 }
开发者ID:google-code-backups,项目名称:add-mvc-framework,代码行数:18,代码来源:e_add.class.php

示例2: mail_body

 /**
  * The mail body / message
  * Extend this to child classes
  *
  * @since ADD MVC 0.0
  */
 public function mail_body()
 {
     $important_info = array("Path" => $_SERVER['REQUEST_URI'], "IP" => $_SERVER['REMOTE_ADDR'], "User Agent" => $_SERVER['HTTP_USER_AGENT']);
     $original_message = $this->getMessage();
     $message = $this->truncated_subject();
     $header = "= {$message} =\r\n";
     if ($original_message != $message) {
         $header .= "{$original_message}\r\n\r\n";
     }
     return $header . debug::return_pretty_var_dump($important_info) . "\r\n" . "== Data ==\r\n" . debug::return_pretty_var_dump($this->data) . "\r\n" . "== Trace ==\r\n" . $this->getTraceAsString() . "\r\n" . "== Request Headers ==\r\n" . debug::return_pretty_var_dump(function_exists('apache_request_headers') ? apache_request_headers() : false) . "\r\n" . "== Request ==\r\n" . debug::return_pretty_var_dump($_REQUEST) . "\r\n" . "== Get ==\r\n" . debug::return_pretty_var_dump($_GET) . "\r\n" . "== Post ==\r\n" . debug::return_pretty_var_dump($_POST) . "\r\n" . "== Cookie ==\r\n" . debug::return_pretty_var_dump($_COOKIE) . "\r\n" . "== Session ==\r\n" . debug::return_pretty_var_dump($_SESSION) . "\r\n" . "== Server == \r\n" . debug::return_pretty_var_dump($_SERVER);
 }
开发者ID:google-code-backups,项目名称:add-mvc-framework,代码行数:17,代码来源:e_add.class.php

示例3: mail_body

 /**
  * The mail body / message
  * Extend this to child classes
  *
  * @since ADD MVC 0.0
  */
 public function mail_body()
 {
     $important_info = array("Path" => $_SERVER['REQUEST_URI'], "IP" => $_SERVER['REMOTE_ADDR'], "User Agent" => $_SERVER['HTTP_USER_AGENT']);
     $message = $this->getMessage();
     if (strlen($message) > 30) {
         $header = "= " . get_called_class() . ": " . substr($message, 0, 30) . "=\r\n{$message}\r\n\r\n";
     } else {
         $header = "= " . get_called_class() . ": " . $message . "=\r\n\r\n";
     }
     return $header . debug::return_pretty_var_dump($important_info) . "\r\n" . "== Data ==\r\n" . debug::return_pretty_var_dump($this->data) . "\r\n" . "== Request Headers ==\r\n" . debug::return_pretty_var_dump(function_exists('apache_request_headers') ? apache_request_headers() : false) . "\r\n" . "== Trace ==\r\n" . debug::return_pretty_var_dump($this->getTrace()) . "\r\n" . "== Request ==\r\n" . debug::return_pretty_var_dump($_REQUEST) . "\r\n" . "== Get ==\r\n" . debug::return_pretty_var_dump($_GET) . "\r\n" . "== Post ==\r\n" . debug::return_pretty_var_dump($_POST) . "\r\n" . "== Cookie ==\r\n" . debug::return_pretty_var_dump($_COOKIE) . "\r\n" . "== Session ==\r\n" . debug::return_pretty_var_dump($_SESSION) . "\r\n" . "== Server == \r\n" . debug::return_pretty_var_dump($_SERVER);
 }
开发者ID:google-code-backups,项目名称:add-mvc-framework,代码行数:17,代码来源:e_add.class.php


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