MediaWiki REL1_34
|
Format a static PHP array to be written to a file. More...
Public Member Functions | |
create (array $data, $header='Automatically generated') | |
Private Member Functions | |
encode ( $key, $value, $indent) | |
Recursively turn one k/v pair into properly-indented PHP. | |
Format a static PHP array to be written to a file.
Definition at line 26 of file StaticArrayWriter.php.
Wikimedia\StaticArrayWriter::create | ( | array | $data, |
$header = 'Automatically generated' |
|||
) |
array | $data | Array with keys/values to export |
string | $header |
Definition at line 34 of file StaticArrayWriter.php.
References $header.
|
private |
Recursively turn one k/v pair into properly-indented PHP.
string | int | $key | |
array | mixed | $value | |
int | $indent | Indentation level |
Definition at line 54 of file StaticArrayWriter.php.
References $line.