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
;
13 * Helper for setting and retrieving script elements for inclusion in HTML body
16 class InlineScript
extends HeadScript
19 * Registry key for placeholder
23 protected $regKey = 'Zend_View_Helper_InlineScript';
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);