e4e4ce76
Administrator
update rep
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
/**
* Created by PhpStorm.
* User: Cibermag
* Date: 27.08.2015
* Time: 16:47
*/
namespace common\components;
use yii\helpers\BaseVarDumper;
class CustomVarDamp extends BaseVarDumper {
public static function dumpAndDie($var, $depth = 10, $highlight = false)
{
echo "<pre>";
echo static::dumpAsString($var, $depth, $highlight);
echo "</pre>";
die;
}
public static function dump($var, $step = '', $depth = 10, $highlight = false)
{
echo "<pre>";
if ($step) {
echo "-------------- {$step} -------------";
}
echo static::dumpAsString($var, $depth, $highlight);
if ($step) {
echo "-------------- {$step} -------------";
}
echo "</pre>";
}
}
|