Example #1
0
 /**
  * Clear the image cache and resets the current object back to default.
  * We reset object because any saved files no longer exist, and paths are now invalid.
  *
  * @return  boolean  True on success false otherwise
  */
 public function clear_cache()
 {
     File::rrmdir($this->img_cache);
     return $this->reset();
 }