3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\View\Helper
;
12 class HtmlQuicktime
extends AbstractHtmlElement
15 * Default file type for a movie applet
17 const TYPE
= 'video/quicktime';
22 const ATTRIB_CLASSID
= 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';
27 const ATTRIB_CODEBASE
= 'http://www.apple.com/qtactivex/qtplugin.cab';
34 protected $attribs = array('classid' => self
::ATTRIB_CLASSID
, 'codebase' => self
::ATTRIB_CODEBASE
);
37 * Output a quicktime movie object tag
39 * @param string $data The quicktime file
40 * @param array $attribs Attribs for the object tag
41 * @param array $params Params for in the object tag
42 * @param string $content Alternative content
45 public function __invoke($data, array $attribs = array(), array $params = array(), $content = null)
48 $attribs = array_merge($this->attribs
, $attribs);
51 $params = array_merge(array('src' => $data), $params);
53 $htmlObject = $this->getView()->plugin('htmlObject');
54 return $htmlObject($data, self
::TYPE
, $attribs, $params, $content);