Helper for setting and retrieving script elements for inclusion in HTML body section
uses | |
---|---|
package | Zend_View |
subpackage | Helper |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_View_Helper_HeadScript |
__call(string $method, array $args) : mixed
Proxy to container methods
string
array
mixed
__construct() : void
__get(string $key) : mixed
string
mixed
__isset(string $key) : boolean
string
boolean
__set(string $key, mixed $value) : void
string
mixed
__toString() : string
string
__unset(string $key) : void
string
append(string $value) : void
string
arbitraryAttributesAllowed() : boolean
boolean
captureEnd() : void
captureStart(mixed $captureType= \Zend_View_Helper_Placeholder_Container_Abstract::APPEND
, $type= 'text/javascript'
, $attrs= array()
) : void
mixed
count() : integer
integer
createData(string $type, array $attributes, string $content = null
) : \stdClass
string
array
string
\stdClass
direct() : void
inherited_from | \Zend_View_Helper_Interface::direct() |
---|
getAutoEscape()
return bool
getContainer() : \Zend_View_Helper_Placeholder_Container_Abstract
\Zend_View_Helper_Placeholder_Container_Abstract
getIterator() : \Iterator
\Iterator
getRegistry() : \Zend_View_Helper_Placeholder_Registry
\Zend_View_Helper_Placeholder_Registry
headScript(string $mode= \Zend_View_Helper_HeadScript::FILE
, string $spec= null
, string $placement= 'APPEND'
, array $attrs= array()
, string $type= 'text/javascript'
) : \Zend_View_Helper_HeadScript
Returns headScript helper object; optionally, allows specifying a script or script file to include.
string
Script or file
string
Script/url
string
Append, prepend, or set
array
Array of script attributes
string
Script type and/or array of script attributes
\Zend_View_Helper_HeadScript
inlineScript(string $mode= \Zend_View_Helper_HeadScript::FILE
, string $spec= null
, string $placement= 'APPEND'
, array $attrs= array()
, string $type= 'text/javascript'
) : \Zend_View_Helper_InlineScript
Returns InlineScript helper object; optionally, allows specifying a script or script file to include.
string
Script or file
string
Script/url
string
Append, prepend, or set
array
Array of script attributes
string
Script type and/or array of script attributes
\Zend_View_Helper_InlineScript
itemToString($item, string|integer $indent, $escapeStart, $escapeEnd) : string
string
integer
string
offsetExists(string|integer $offset) : boolean
string
integer
boolean
offsetGet(string|integer $offset) : mixed
string
integer
mixed
offsetSet(string|integer $offset, mixed $value) : void
string
integer
mixed
offsetUnset(string|integer $offset) : void
string
integer
prepend(string $value) : void
string
set(string $value) : void
string
setAllowArbitraryAttributes(boolean $flag) : \Zend_View_Helper_HeadScript
boolean
\Zend_View_Helper_HeadScript
setAutoEscape(boolean $autoEscape = true
) : \Zend_View_Helper_Placeholder_Container_Standalone
boolean
whether or not to auto escape output
\Zend_View_Helper_Placeholder_Container_Standalone
setContainer(\Zend_View_Helper_Placeholder_Container_Abstract $container) : \Zend_View_Helper_Placeholder_Container_Standalone
\Zend_View_Helper_Placeholder_Container_Abstract
\Zend_View_Helper_Placeholder_Container_Standalone
setRegistry(\Zend_View_Helper_Placeholder_Registry $registry) : \Zend_View_Helper_Placeholder_Container_Standalone
\Zend_View_Helper_Placeholder_Registry
\Zend_View_Helper_Placeholder_Container_Standalone
setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
inherited_from | \Zend_View_Helper_Interface::setView() |
---|
\Zend_View_Interface
\Zend_View_Helper_Abstract
toString() : string
string
_escape(string $string) : string
string
string
_isDuplicate(string $file) : boolean
string
boolean
_isValid(mixed $value) : boolean
mixed
boolean
$useCdata : boolean
false
$view : \Zend_View_Interface
null
$_arbitraryAttributes : boolean
false
$_autoEscape : \book
true
$_captureLock
$_captureScriptAttrs
null
$_captureScriptType
null
$_captureType
$_container : \Zend_View_Helper_Placeholder_Container_Abstract
$_optionalAttributes : array
array('charset', 'defer', 'language', 'src')
$_regKey : string
'Zend_View_Helper_InlineScript'
inherited_from | \Zend_View_Helper_HeadScript::_regKey |
---|
$_regKey : string
$_registry : \Zend_View_Helper_Placeholder_Registry
$_requiredAttributes : string
array('type')
FILE = 'FILE'
SCRIPT = 'SCRIPT'