PHP Classes

i`ve added class constructor: function Cacher ($name) { i...

Recommend this page to a friend!

      Cacher  >  All threads  >  i`ve added class constructor:...  >  (Un) Subscribe thread alerts  
Subject:i`ve added class constructor:...
Summary:Package rating comment
Messages:1
Author:cpu1
Date:2009-10-24 20:53:14
 

cpu1 rated this package as follows:

Utility: Sufficient
Consistency: Sufficient

  1. i`ve added class constructor:...   Reply   Report abuse  
Picture of cpu1 cpu1 - 2009-10-24 20:53:14
i`ve added class constructor:

function Cacher ($name) {
if (!is_dir ($this -> cacheDir . $name)){
mkdir ($this -> cacheDir . $name, 0777);
}
$this -> cacheDir = $this -> cacheDir . $name . '/';
}

and replaced " var $cacheDir = "/tmp/"; " into " var $cacheDir = "tmp/"; "