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 / HtmlPage.php
blobf776260cc3932751e1d5b71ea305a3e553f34426
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 HtmlPage extends AbstractHtmlElement
14 /**
15 * Default file type for html
17 const TYPE = 'text/html';
19 /**
20 * Object classid
22 const ATTRIB_CLASSID = 'clsid:25336920-03F9-11CF-8FD0-00AA00686F13';
24 /**
25 * Default attributes
27 * @var array
29 protected $attribs = array('classid' => self::ATTRIB_CLASSID);
31 /**
32 * Output a html object tag
34 * @param string $data The html url
35 * @param array $attribs Attribs for the object tag
36 * @param array $params Params for in the object tag
37 * @param string $content Alternative content
38 * @return string
40 public function __invoke($data, array $attribs = array(), array $params = array(), $content = null)
42 // Attribs
43 $attribs = array_merge($this->attribs, $attribs);
45 // Params
46 $params = array_merge(array('data' => $data), $params);
48 $htmlObject = $this->getView()->plugin('htmlObject');
49 return $htmlObject($data, self::TYPE, $attribs, $params, $content);