File indexing completed on 2024-12-22 05:33:23

0001 <?php
0002 /*
0003  *   TRT GFX 3.0.1 (beta build) BackToSlash
0004  * 
0005  *   support: happy.snizzo@gmail.com
0006  *   website: http://trt-gfx.googlecode.com
0007  *   credits: Claudio Desideri
0008  *   
0009  *   This software is released under the MIT License.
0010  *   http://opensource.org/licenses/mit-license.php
0011  */ 
0012 
0013 class ECacheFile {
0014   
0015   private $var;
0016   private $prefix = "ecachefile_";
0017   
0018   public function __construct($file=false){
0019     /*
0020     //if cache doesn't exists, load cache from text file
0021     if(!$this->exists($this->prefix.$file)){
0022       $this->var = $file;
0023       if(file_exists($file)){
0024         $content = file_get_contents($file);
0025         $this->set($content);
0026       }
0027     }
0028     */
0029   }
0030   
0031   public function exists($key){
0032     /*
0033     apc_exists($this->prefix.$key);
0034     */
0035   }
0036   
0037   // get the value of a variable
0038   public function get(){
0039     /*
0040     return apc_fetch($this->prefix.$this->var);
0041     * */
0042   }
0043   
0044   //set the value of a variable
0045   public function set($value){
0046     /*
0047     apc_store($this->prefix.$this->var,$value);
0048     * */
0049   }
0050   
0051   public function del(){
0052     /*
0053     apc_delete($this->prefix.$this->var);รน
0054     * */
0055   }
0056 }