Horde_Mime_Part::getDisposition PHP Method

getDisposition() public method

Get the content-disposition of this part.
public getDisposition ( ) : string
return string The part's content-disposition. An empty string means no desired disposition has been set for this part.
    public function getDisposition()
    {
        return $this->_headers['content-disposition']->value;
    }

Usage Example

Example #1
0
File: Base.php Project: horde/horde
 /**
  * Can this driver render the the data?
  *
  * @param string $mode  The mode.  Either 'full', 'inline', 'info', or
  *                      'raw'.
  *
  * @return boolean  True if the driver can render the data for the given
  *                  view.
  */
 public function canRender($mode)
 {
     $viewer = $this->_getViewer();
     if ($viewer) {
         return $viewer->canRender($mode);
     }
     switch ($mode) {
         case 'full':
         case 'info':
         case 'raw':
             return $this->_capability[$mode];
         case 'inline':
             return $this->getConfigParam('inline') && ($this->_metadata['forceinline'] || $this->_capability['inline'] && $this->_mimepart->getDisposition() != 'attachment');
         default:
             return false;
     }
 }
All Usage Examples Of Horde_Mime_Part::getDisposition