File indexing completed on 2024-12-22 05:37:13

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_View
0017  * @subpackage Helper
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @version    $Id$
0020  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0021  */
0022 
0023 /** Zend_View_Helper_HeadScript */
0024 // require_once 'Zend/View/Helper/HeadScript.php';
0025 
0026 /**
0027  * Helper for setting and retrieving script elements for inclusion in HTML body
0028  * section
0029  *
0030  * @uses       Zend_View_Helper_Head_Script
0031  * @package    Zend_View
0032  * @subpackage Helper
0033  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0034  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0035  */
0036 class Zend_View_Helper_InlineScript extends Zend_View_Helper_HeadScript
0037 {
0038     /**
0039      * Registry key for placeholder
0040      * @var string
0041      */
0042     protected $_regKey = 'Zend_View_Helper_InlineScript';
0043 
0044     /**
0045      * Return InlineScript object
0046      *
0047      * Returns InlineScript helper object; optionally, allows specifying a
0048      * script or script file to include.
0049      *
0050      * @param  string $mode Script or file
0051      * @param  string $spec Script/url
0052      * @param  string $placement Append, prepend, or set
0053      * @param  array $attrs Array of script attributes
0054      * @param  string $type Script type and/or array of script attributes
0055      * @return Zend_View_Helper_InlineScript
0056      */
0057     public function inlineScript($mode = Zend_View_Helper_HeadScript::FILE, $spec = null, $placement = 'APPEND', array $attrs = array(), $type = 'text/javascript')
0058     {
0059         return $this->headScript($mode, $spec, $placement, $attrs, $type);
0060     }
0061 }