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?
$_captureLock = ''
$_captureScriptAttrs = 'null'
$_captureScriptType = 'null'
$_captureType = ''
array $_optionalAttributes = 'array'
Optional allowed attributes for script tag
string $_regKey = 'Zend_View_Helper_HeadScript'
Registry key for placeholder
string $_requiredAttributes = 'array'
Required attributes for script tag
bool $useCdata = 'false'
Whether or not to format scripts using CDATA; used only if doctype helper is not accessible
__call(
string $method, array $args
)
:
Zend_View_Helper_HeadScript
Overload 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())
__construct(
)
:
void
Constructor
Set separator to PHP_EOL.
_isDuplicate(
string $file
)
:
bool
Is the file specified a duplicate?
_isValid(
mixed $value
)
:
bool
Is the script provided valid?
append(
string $value
)
:
void
Override append
arbitraryAttributesAllowed(
)
:
bool
Are arbitrary attributes allowed?
captureEnd(
)
:
void
End capture action and store
captureStart(
mixed $captureType
=
Zend_View_Helper_Placeholder_Container_Abstract, $type
=
text/javascript, $attrs
=
array
)
:
void
Start capture action
createData(
string $type, array $attributes, string $content
=
null
)
:
stdClass
Create data item containing all necessary components of script
headScript(
string $mode
=
Zend_View_Helper_HeadScript, string $spec
=
null, string $placement
=
APPEND, array $attrs
=
array, string $type
=
text/javascript
)
:
Zend_View_Helper_HeadScript
Return headScript object
Returns headScript helper object; optionally, allows specifying a script or script file to include.
itemToString(
$item, string|int $indent, $escapeStart, $escapeEnd
)
:
string
Create script HTML
offsetSet(
string|int $index, mixed $value
)
:
void
Override offsetSet
prepend(
string $value
)
:
void
Override prepend
set(
string $value
)
:
void
Override set
setAllowArbitraryAttributes(
bool $flag
)
:
Zend_View_Helper_HeadScript
Set flag indicating if arbitrary attributes are allowed
toString(
string|int $indent
=
null
)
:
string
Retrieve string representation