Helper for setting and retrieving script elements for HTML head section
Return headScript object
Returns headScript helper object; optionally, allows specifying a script or script file to include.
Parameters: |
|
---|---|
Return type: | ZendViewHelperHeadScript |
Start capture action
Parameters: |
|
---|---|
Return type: | void |
Throws : | ExceptionRuntimeException |
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())
Parameters: |
|
---|---|
Return type: | ZendViewHelperHeadScript |
Throws : | ExceptionBadMethodCallException if too few arguments or invalid method |
Is the file specified a duplicate?
Parameters: | string – Name of file to check |
---|---|
Return type: | bool |
Is the script provided valid?
Parameters: | mixed – Is the given script valid? |
---|---|
Return type: | bool |
Override append
Parameters: | string – Append script or file |
---|---|
Return type: | void |
Throws : | ExceptionInvalidArgumentException |
Override prepend
Parameters: | string – Prepend script or file |
---|---|
Return type: | void |
Throws : | ExceptionInvalidArgumentException |
Override set
Parameters: | string – Set script or file |
---|---|
Return type: | void |
Throws : | ExceptionInvalidArgumentException |
Override offsetSet
Parameters: |
|
---|---|
Return type: | void |
Throws : | ExceptionInvalidArgumentException |
Set flag indicating if arbitrary attributes are allowed
Parameters: | bool – Set flag |
---|---|
Return type: | ZendViewHelperHeadScript |
Are arbitrary attributes allowed?
Return type: | bool |
---|
Create script HTML
Parameters: |
|
---|---|
Return type: | string |