CompiledJsonFile
extends JsonFile
in package
uses
CompiledFile
Class CompiledJsonFile
Table of Contents
Methods
- __sleep() : array<string|int, mixed>
- Serialize file.
- __wakeup() : mixed
- Unserialize file.
- content() : array<string|int, mixed>
- Get/set parsed file contents.
- save() : void
- Save file.
- decode() : array<string|int, mixed>
- Decode RAW string into contents.
Methods
__sleep()
Serialize file.
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
Unserialize file.
public
__wakeup() : mixed
content()
Get/set parsed file contents.
public
content([mixed $var = null ]) : array<string|int, mixed>
Parameters
- $var : mixed = null
Return values
array<string|int, mixed>save()
Save file.
public
save([mixed $data = null ]) : void
Parameters
- $data : mixed = null
-
Optional data to be saved, usually array.
Tags
decode()
Decode RAW string into contents.
protected
decode(string $var[, bool $assoc = true ]) : array<string|int, mixed>
Parameters
- $var : string
- $assoc : bool = true