MediaWiki REL1_35
|
Format a static PHP array to be written to a file. More...
Public Member Functions | |
create (array $data, $header='Automatically generated') | |
Static Public Member Functions | |
static | write (array $data, $header) |
Static Private Member Functions | |
static | 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.
@newable
Definition at line 27 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 33 of file StaticArrayWriter.php.
References $header.
|
staticprivate |
Recursively turn one k/v pair into properly-indented PHP.
string | int | $key | |
mixed | $value | |
int | $indent | Indentation level |
Definition at line 62 of file StaticArrayWriter.php.
References $line.
|
static |
array | $data | Array with keys/values to export |
string | $header |
Definition at line 43 of file StaticArrayWriter.php.
References $header.