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 / HtmlFlash.php
blob24bcb580f2e6f66f2e0d52f1cf102bc66cbb061b
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 HtmlFlash extends AbstractHtmlElement
14 /**
15 * Default file type for a flash applet
17 const TYPE = 'application/x-shockwave-flash';
19 /**
20 * Output a flash movie object tag
22 * @param string $data The flash file
23 * @param array $attribs Attribs for the object tag
24 * @param array $params Params for in the object tag
25 * @param string $content Alternative content
26 * @return string
28 public function __invoke($data, array $attribs = array(), array $params = array(), $content = null)
30 $params = array_merge(array('movie' => $data, 'quality' => 'high'), $params);
32 $htmlObject = $this->getView()->plugin('htmlObject');
33 return $htmlObject($data, self::TYPE, $attribs, $params, $content);