Public Member Functions | |
set ($key, $val=true) | |
get ($key) | |
exists ($key) | |
remove ($key) |
zDef Class is able to store even non-scaler values
Definition at line 37 of file define_handler.php.
zDef::set | ( | $ | key, | |
$ | val = true | |||
) |
set/define/redfine zDef::set('var', 'value').
$key | string name of define Key | |
$val | mixed value of the defined key |
Definition at line 44 of file define_handler.php.
References $____zigmoyd__Internal____Define__Holder____, and $val.
Referenced by upload::__construct(), zCookie::__construct(), zCaptcha::captcha(), and zLogger::release().
00044 { 00045 global $____zigmoyd__Internal____Define__Holder____; 00046 $____zigmoyd__Internal____Define__Holder____[$key] = $val; 00047 }
zDef::get | ( | $ | key | ) |
get(retrive) zDef::get('var').
$key | string name of define Key |
Definition at line 54 of file define_handler.php.
References $____zigmoyd__Internal____Define__Holder____, and perror().
Referenced by zLogClient::__construct(), zCaptcha::captcha(), zLogger::commit(), zLogger::debug(), upload::doUpload(), dumpTest(), zLogger::error(), zLogger::hr(), zCaptcha::putText(), zLogger::release(), zCookie::setEncrypted(), zCookie::setPlain(), and zCookie::setRaw().
00054 { 00055 global $____zigmoyd__Internal____Define__Holder____; 00056 if(isset($____zigmoyd__Internal____Define__Holder____[$key])){ 00057 return $____zigmoyd__Internal____Define__Holder____[$key]; 00058 }else{ 00059 perror('<code>zigmoyd.define.get</code><br />Trying to get non existing variable '.$key); 00060 return false; 00061 } 00062 }
zDef::exists | ( | $ | key | ) |
Check wheather or not a macro already exists zDef::exists('var'). returns boolean Value e.g. true if exists else false
$key | string name of define Key |
Definition at line 70 of file define_handler.php.
References $____zigmoyd__Internal____Define__Holder____.
00070 { 00071 global $____zigmoyd__Internal____Define__Holder____; 00072 return (isset($____zigmoyd__Internal____Define__Holder____[$key])); 00073 }
zDef::remove | ( | $ | key | ) |
remove zDef::remove('var'). Returns Success Value
$key | string name of define Key |
Definition at line 82 of file define_handler.php.
References $____zigmoyd__Internal____Define__Holder____, and perror().
00082 { 00083 global $____zigmoyd__Internal____Define__Holder____; 00084 if(isset($____zigmoyd__Internal____Define__Holder____[$key])){ 00085 unset($____zigmoyd__Internal____Define__Holder____[$key]); 00086 }else{ 00087 perror('<code>zigmoyd.define.get</code><br />Trying to get non existing variable '.$key); 00088 return false; 00089 } 00090 }