IMP_Compose_Attachment_Storage::getMetadata PHP Méthode

getMetadata() public méthode

Return metadata about attachment.
public getMetadata ( ) : IMP_Compose_Linked_Metadata
Résultat IMP_Compose_Linked_Metadata Metadata object.
    public function getMetadata()
    {
        return new IMP_Compose_Linked_Metadata();
    }

Usage Example

Exemple #1
0
 /**
  * Get/create the delete token.
  *
  * @param boolean $create  Create token if it doesn't exist?
  *
  * @return string  The delete token, or null if it doesn't exist.
  */
 protected function _getDeleteToken($create = false)
 {
     $md = $this->_atc->getMetadata();
     if (is_null($md->dtoken)) {
         if (!$create) {
             return null;
         }
         $md->dtoken = strval(new Horde_Support_Uuid());
         try {
             $this->_atc->saveMetadata($md);
         } catch (Exception $e) {
         }
     }
     return $md->dtoken;
 }
All Usage Examples Of IMP_Compose_Attachment_Storage::getMetadata