delete() 추상적인 공개 메소드

Delete data from storage.
abstract public delete ( )
예제 #1
0
 /**
  * Delete a linked attachment.
  *
  * @param string $token  The delete token.
  *
  * @return boolean|string  Filename of deleted file, or false if file was
  *                         not deleted.
  */
 public function delete($token)
 {
     if (empty($GLOBALS['conf']['compose']['link_attachments_notify']) || !($dtoken = $this->_getDeleteToken()) || $dtoken != $token) {
         return false;
     }
     $md = $this->_atc->getMetadata();
     try {
         $this->_atc->delete();
     } catch (Exception $e) {
     }
     $this->_atc->saveMetadata();
     return $md->filename;
 }
예제 #2
0
 /**
  */
 public function delete()
 {
     $this->_storage->delete();
 }