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 / InlineScript.php
blob3096870582a90802cbb1a9d8c2506ee869113827
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 /**
13 * Helper for setting and retrieving script elements for inclusion in HTML body
14 * section
16 class InlineScript extends HeadScript
18 /**
19 * Registry key for placeholder
21 * @var string
23 protected $regKey = 'Zend_View_Helper_InlineScript';
25 /**
26 * Return InlineScript object
28 * Returns InlineScript helper object; optionally, allows specifying a
29 * script or script file to include.
31 * @param string $mode Script or file
32 * @param string $spec Script/url
33 * @param string $placement Append, prepend, or set
34 * @param array $attrs Array of script attributes
35 * @param string $type Script type and/or array of script attributes
36 * @return InlineScript
38 public function __invoke($mode = self::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
40 return parent::__invoke($mode, $spec, $placement, $attrs, $type);