Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / View / Helper / HtmlQuicktime.php
blobf2a3fe79be6aa80ab05ebe8f7643a29c5cc3594a
1 <?php
2 /**
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
8 */
10 namespace Zend\View\Helper;
12 class HtmlQuicktime extends AbstractHtmlElement
14 /**
15 * Default file type for a movie applet
17 const TYPE = 'video/quicktime';
19 /**
20 * Object classid
22 const ATTRIB_CLASSID = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B';
24 /**
25 * Object Codebase
27 const ATTRIB_CODEBASE = 'http://www.apple.com/qtactivex/qtplugin.cab';
29 /**
30 * Default attributes
32 * @var array
34 protected $attribs = array('classid' => self::ATTRIB_CLASSID, 'codebase' => self::ATTRIB_CODEBASE);
36 /**
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
43 * @return string
45 public function __invoke($data, array $attribs = array(), array $params = array(), $content = null)
47 // Attrs
48 $attribs = array_merge($this->attribs, $attribs);
50 // Params
51 $params = array_merge(array('src' => $data), $params);
53 $htmlObject = $this->getView()->plugin('htmlObject');
54 return $htmlObject($data, self::TYPE, $attribs, $params, $content);