Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
b94b1833
Commit
b94b1833
authored
May 09, 2014
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc comments for `BaseVarDumper::export()` added
parent
7c69c914
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
BaseVarDumper.php
framework/helpers/BaseVarDumper.php
+17
-0
No files found.
framework/helpers/BaseVarDumper.php
View file @
b94b1833
...
...
@@ -125,11 +125,24 @@ class BaseVarDumper
}
}
/**
* Outputs a parsable string representation of a variable.
* This method achieves the similar functionality as var_export
* but is more robust when handling arrays and objects.
* @param mixed $var variable to be exported.
*/
public
static
function
export
(
$var
)
{
echo
static
::
exportAsString
(
$var
);
}
/**
* Returns a parsable string representation of a variable.
* This method achieves the similar functionality as var_export
* but is more robust when handling arrays and objects.
* @param mixed $var variable to be exported.
* @return string parsable string representation of a variable.
*/
public
static
function
exportAsString
(
$var
)
{
self
::
$_output
=
''
;
...
...
@@ -137,6 +150,10 @@ class BaseVarDumper
return
self
::
$_output
;
}
/**
* @param mixed $var variable to be exported
* @param integer $level depth level
*/
private
static
function
exportInternal
(
$var
,
$level
)
{
switch
(
gettype
(
$var
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment