Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=null) | |
Constructor. | |
setOptions (array $options) | |
Set options. | |
setView (Zend_View_Interface $view) | |
Set View object. | |
getView () | |
Retrieve view object. | |
setDojoHelper (Zend_Dojo_View_Helper_Dojo_Container $helper) | |
Set dojo() view helper instance. | |
getDojoHelper () | |
Retrieve dojo() view helper instance. | |
setLayerName ($name) | |
Set custom layer name; e.g. | |
getLayerName () | |
Retrieve custom layer name. | |
setLayerScriptPath ($path) | |
Set the path to the custom layer script. | |
getLayerScriptPath () | |
Get custom layer script path. | |
setConsumeJavascript ($flag) | |
Set flag indicating whether or not to consume JS aggregated in dojo() view helper. | |
consumeJavascript () | |
Get flag indicating whether or not to consume JS aggregated in dojo() view helper. | |
setConsumeOnLoad ($flag) | |
Set flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper. | |
consumeOnLoad () | |
Get flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper. | |
setProfileOptions (array $options) | |
Set many build profile options at once. | |
addProfileOptions (array $options) | |
Add many build profile options at once. | |
addProfileOption ($key, $value) | |
Add a single build profile option. | |
hasProfileOption ($key) | |
Is a given build profile option set? | |
getProfileOption ($key) | |
Retrieve a single build profile option. | |
getProfileOptions () | |
Get all build profile options. | |
removeProfileOption ($name) | |
Remove a build profile option. | |
clearProfileOptions () | |
Remove all build profile options. | |
addProfilePrefix ($prefix, $path=null) | |
Add a build profile dependency prefix. | |
setProfilePrefixes (array $prefixes) | |
Set multiple dependency prefixes for bulid profile. | |
getProfilePrefixes () | |
Get build profile dependency prefixes. | |
generateLayerScript () | |
Generate module layer script. | |
generateBuildProfile () | |
Generate build profile. | |
Protected Member Functions | |
_getPrefix ($module) | |
Retrieve module prefix. | |
_filterJsonProfileToJavascript ($profile) | |
Filter a JSON build profile to JavaScript. | |
Protected Attributes | |
$_consumeJavascript = false | |
$_consumeOnLoad = false | |
$_dojo | |
$_layerName | |
$_layerScriptPath | |
$_profileOptions | |
$_profilePrefixes = array() | |
$_view | |
__construct | ( | $options = null | ) |
Constructor.
array | Zend_Config | $options |
Zend_Dojo_Exception | for invalid option argument |
|
protected |
Filter a JSON build profile to JavaScript.
string | $profile |
|
protected |
Retrieve module prefix.
string | $module |
addProfileOption | ( | $key, | |
$value | |||
) |
addProfileOptions | ( | array | $options | ) |
addProfilePrefix | ( | $prefix, | |
$path = null |
|||
) |
Add a build profile dependency prefix.
If just the prefix is passed, sets path to "../$prefix".
string | $prefix | |
null | string | $path |
clearProfileOptions | ( | ) |
Remove all build profile options.
consumeJavascript | ( | ) |
Get flag indicating whether or not to consume JS aggregated in dojo() view helper.
consumeOnLoad | ( | ) |
Get flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper.
generateBuildProfile | ( | ) |
Generate build profile.
generateLayerScript | ( | ) |
Generate module layer script.
getDojoHelper | ( | ) |
Retrieve dojo() view helper instance.
Will retrieve it from the view object if not registered.
Zend_Dojo_Exception | if not registered and no view object found |
getLayerName | ( | ) |
Retrieve custom layer name.
getLayerScriptPath | ( | ) |
Get custom layer script path.
getProfileOption | ( | $key | ) |
Retrieve a single build profile option.
Returns null if profile option does not exist.
string | $key |
getProfileOptions | ( | ) |
Get all build profile options.
getProfilePrefixes | ( | ) |
Get build profile dependency prefixes.
getView | ( | ) |
Retrieve view object.
hasProfileOption | ( | $key | ) |
Is a given build profile option set?
string | $key |
removeProfileOption | ( | $name | ) |
setConsumeJavascript | ( | $flag | ) |
Set flag indicating whether or not to consume JS aggregated in dojo() view helper.
bool | $flag |
setConsumeOnLoad | ( | $flag | ) |
Set flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper.
bool | $flag |
setDojoHelper | ( | Zend_Dojo_View_Helper_Dojo_Container | $helper | ) |
Set dojo() view helper instance.
Zend_Dojo_View_Helper_Dojo_Container | $helper |
setLayerName | ( | $name | ) |
setLayerScriptPath | ( | $path | ) |
Set the path to the custom layer script.
Should be a path relative to dojo.js
string | $path |
setOptions | ( | array | $options | ) |
Set options.
Proxies to any setter that matches an option key.
array | $options |
setProfileOptions | ( | array | $options | ) |
setProfilePrefixes | ( | array | $prefixes | ) |
Set multiple dependency prefixes for bulid profile.
array | $prefixes |
setView | ( | Zend_View_Interface | $view | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |