00001 <?php 00030 $____zigmoyd__Internal____Define__Holder____ = array(); 00037 class zDef extends zCore{ 00044 function set($key, $val=true){ 00045 global $____zigmoyd__Internal____Define__Holder____; 00046 $____zigmoyd__Internal____Define__Holder____[$key] = $val; 00047 } 00054 function get($key){ 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 } 00070 function exists($key){ 00071 global $____zigmoyd__Internal____Define__Holder____; 00072 return (isset($____zigmoyd__Internal____Define__Holder____[$key])); 00073 } 00082 function remove($key){ 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 } 00091 } 00093 ?>