Example #1
0
 public function _drop($with = array())
 {
     if (parent::_drop($with)->countErrors()) {
         return $this;
     }
     if (is_assoc($this->_result)) {
         @unlink(BASE_PATH . $this->_result['URL']);
     } else {
         foreach ($this->_result as $file) {
             @unlink(BASE_PATH . $file['URL']);
         }
     }
     return $this;
 }