Class: Deff (0.1.0)
Loads/saves definitions (settings) from files/data
Source: class.deff.php
Credits to: Jeph
Variables
string Deff::path
Methods
Deff::Deff (
$file
)
Deff::LoadDefinitionData (
$data
)
Deff::LoadDefinitionFile (
$file
)
Deff::SaveDefinition (
$data
, $path
)
Deff::path
Holds the path of the last definition file loaded.
Type:
string
Deff::Deff()
Class Constructor.
If the parameter is given, the class will atempt to load that parameter as a file path.
Arguments:
( string
)
$file
Default:
$file = ""
Deff::LoadDefinitionData()
Receives data as the parameter instead of a file (see LoadDefinitionFile) and outputs it's definitions in an array.
Arguments:
( string
)
$data
Deff::LoadDefinitionFile()
Loads a definition file and outputs definitions in an array.
Path will be saved to path.
Arguments:
( string
)
$file
Default:
$file = ""
Deff::SaveDefinition()
Saves data array into the specified path. If path is not given but you have loaded successfully a file before, that file will be the path.
Arguments:
( array
)
$data
( string
)
$path
Default:
$path = path