Location: PHPKode > scripts > Def Setting Files > def-setting-files/index.html
<html>
  <head>
    <title>Class: Deff 0.1.0</title>
    <style type="text/css">
    <!--
      body,td { font: 8pt verdana #000000; }
      body { background: #ffffff; }
      a { text-decoration: none; color: #0000aa; }
      a:hover { text-decoration: underline; }
      h1 { font-size: 12pt; letter-spacing: 2pt; }
      hr { height: 1px; color: #dddddd; background: #dddddd; }
      .varname { font-size: 10pt; letter-spacing: 2pt; color: #123456; font-weight: bold; }
      .funname { font-size: 10pt; letter-spacing: 2pt; color: #123456; font-weight: bold; }
      .vartype { color: #0000aa; font-weight: bold; }
    //-->
    </style>
  </head>
  <body>
    <a name='top'></a>
    <h1>Class: <b>Deff</b> (0.1.0)</h1>
    Loads/saves definitions (settings) from files/data<br>
    Source: <a href='source.php?class=deff'>class.deff.php</a><br>
    Credits to: <a href='mailto:hide@address.com'>Jeph</a><br>
    <a name='var'></a>
    <br><u>Variables</u><br><br>
    <a href='#var_path' title="Holds the path of the last definition file loaded."><span class=vartype>string</span> Deff::path</a><br>
    <a name='fun'></a>
    <br><u>Methods</u><br><br>
    <a href='#fun_Deff' title="Class Constructor.
If the parameter is given, the class will atempt to load that parameter as a file path.">Deff::Deff (
    $file
    ) </a><br>
    <a href='#fun_LoadDefinitionData' title="Receives data as the parameter instead of a file (see &lt;fun=LoadDefinitionFile&gt;) and outputs it's definitions in an array.">Deff::LoadDefinitionData (
    $data
    ) </a><br>
    <a href='#fun_LoadDefinitionFile' title="Loads a definition file and outputs definitions in an array.
Path will be saved to &lt;var=path&gt;.">Deff::LoadDefinitionFile (
    $file
    ) </a><br>
    <a href='#fun_SaveDefinition' title="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.">Deff::SaveDefinition (
    $data
    , $path
    ) </a><br>
    <hr><a name='var_path'><span class=varname>Deff::path</span></a><br>
    Holds the path of the last definition file loaded.<br><br>
    &nbsp; <b>Type:</b><br>
    &nbsp; &nbsp; &nbsp; &nbsp; string<br>
    <br>
    <hr><a name='fun_Deff'><span class=funname>Deff::Deff()</span></a><br>
    Class Constructor.<br />
If the parameter is given, the class will atempt to load that parameter as a file path.<br><br>
    &nbsp; <b>Arguments:</b><br>
    &nbsp; &nbsp; &nbsp; &nbsp;
    ( <span class=vartype>string</span>
    )
    $file<br>
    <br>&nbsp; <b>Default:</b><br>
    &nbsp; &nbsp; &nbsp; &nbsp;$file = ""<br>
    <br>
    <hr><a name='fun_LoadDefinitionData'><span class=funname>Deff::LoadDefinitionData()</span></a><br>
    Receives data as the parameter instead of a file (see <a href='#fun_LoadDefinitionFile'>LoadDefinitionFile</a>) and outputs it's definitions in an array.<br><br>
    &nbsp; <b>Arguments:</b><br>
    &nbsp; &nbsp; &nbsp; &nbsp;
    ( <span class=vartype>string</span>
    )
    $data<br>
    <br>
    <hr><a name='fun_LoadDefinitionFile'><span class=funname>Deff::LoadDefinitionFile()</span></a><br>
    Loads a definition file and outputs definitions in an array.<br />
Path will be saved to <a href='#var_path'>path</a>.<br><br>
    &nbsp; <b>Arguments:</b><br>
    &nbsp; &nbsp; &nbsp; &nbsp;
    ( <span class=vartype>string</span>
    )
    $file<br>
    <br>&nbsp; <b>Default:</b><br>
    &nbsp; &nbsp; &nbsp; &nbsp;$file = ""<br>
    <br>
    <hr><a name='fun_SaveDefinition'><span class=funname>Deff::SaveDefinition()</span></a><br>
    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.<br><br>
    &nbsp; <b>Arguments:</b><br>
    &nbsp; &nbsp; &nbsp; &nbsp;
    ( <span class=vartype>array</span>
    )
    $data<br>
    &nbsp; &nbsp; &nbsp; &nbsp;
    ( <span class=vartype>string</span>
    )
    $path<br>
    <br>&nbsp; <b>Default:</b><br>
    &nbsp; &nbsp; &nbsp; &nbsp;$path = <a href='#var_path'>path</a><br>
    <br>
  </body>
</html>
Return current item: Def Setting Files