本文整理汇总了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());
}
示例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);
}
示例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);
}