Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Helper for setting and retrieving script elements for HTML head section
bool $_arbitraryAttributes = 'false'Are arbitrary attributes allowed?
Details $_captureLock = ''
Details $_captureScriptAttrs = 'null'
Details $_captureScriptType = 'null'
Details $_captureType = ''
Detailsarray $_optionalAttributes = 'array'Optional allowed attributes for script tag
Detailsstring $_regKey = 'Zend_View_Helper_HeadScript'Registry key for placeholder
Detailsstring $_requiredAttributes = 'array'Required attributes for script tag
Detailsbool $useCdata = 'false'Whether or not to format scripts using CDATA; used only if doctype helper is not accessible
Details__call(
string $method, array $args
)
:
Zend_View_Helper_HeadScriptOverload method access
Allows the following method calls: - appendFile($src, $type = 'text/javascript', $attrs = array()) - offsetSetFile($index, $src, $type = 'text/javascript', $attrs = array()) - prependFile($src, $type = 'text/javascript', $attrs = array()) - setFile($src, $type = 'text/javascript', $attrs = array()) - appendScript($script, $type = 'text/javascript', $attrs = array()) - offsetSetScript($index, $src, $type = 'text/javascript', $attrs = array()) - prependScript($script, $type = 'text/javascript', $attrs = array()) - setScript($script, $type = 'text/javascript', $attrs = array())
Details__construct(
)
:
voidConstructor
Set separator to PHP_EOL.
Details_isDuplicate(
string $file
)
:
boolIs the file specified a duplicate?
Details_isValid(
mixed $value
)
:
boolIs the script provided valid?
Detailsappend(
string $value
)
:
voidOverride append
DetailsarbitraryAttributesAllowed(
)
:
boolAre arbitrary attributes allowed?
DetailscaptureEnd(
)
:
voidEnd capture action and store
DetailscaptureStart(
mixed $captureType
=
Zend_View_Helper_Placeholder_Container_Abstract, $type
=
text/javascript, $attrs
=
array
)
:
voidStart capture action
DetailscreateData(
string $type, array $attributes, string $content
=
null
)
:
stdClassCreate data item containing all necessary components of script
DetailsheadScript(
string $mode
=
Zend_View_Helper_HeadScript, string $spec
=
null, string $placement
=
APPEND, array $attrs
=
array, string $type
=
text/javascript
)
:
Zend_View_Helper_HeadScriptReturn headScript object
Returns headScript helper object; optionally, allows specifying a script or script file to include.
DetailsitemToString(
$item, string|int $indent, $escapeStart, $escapeEnd
)
:
stringCreate script HTML
DetailsoffsetSet(
string|int $index, mixed $value
)
:
voidOverride offsetSet
Detailsprepend(
string $value
)
:
voidOverride prepend
Detailsset(
string $value
)
:
voidOverride set
DetailssetAllowArbitraryAttributes(
bool $flag
)
:
Zend_View_Helper_HeadScriptSet flag indicating if arbitrary attributes are allowed
DetailstoString(
string|int $indent
=
null
)
:
stringRetrieve string representation
Details