/**
* 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;
}
}