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.
Dojo module layer and custom build profile generation support
bool $_consumeJavascript = 'false'
Flag: whether or not to consume JS aggregated in the dojo() view helper when generate the module layer contents
bool $_consumeOnLoad = 'false'
Flag: whether or not to consume dojo.addOnLoad events registered with the dojo() view helper when generating the module layer file contents
Zend_Dojo_View_Helper_Dojo_Container $_dojo = ''
Dojo view helper reference
string $_layerName = ''
Name of the custom layer to generate
string $_layerScriptPath = ''
Path to the custom layer script relative to dojo.js (used when creating the build profile)
array $_profileOptions = 'array'
Build profile options
array $_profilePrefixes = 'array'
Associative array of module/path pairs for the build profile
Zend_View_Interface $_view = ''
Zend_View reference
__construct(
array|Zend_Config $options
=
null
)
:
void
Constructor
_filterJsonProfileToJavascript(
string $profile
)
:
string
Filter a JSON build profile to JavaScript
_getPrefix(
string $module
)
:
void
Retrieve module prefix
addProfileOption(
string $key, value $value
)
:
Zend_Dojo_BuildLayer
Add a single build profile option
addProfileOptions(
array $options
)
:
Zend_Dojo_BuildLayer
Add many build profile options at once
addProfilePrefix(
string $prefix, null|string $path
=
null
)
:
Zend_Dojo_BuildLayer
Add a build profile dependency prefix
If just the prefix is passed, sets path to "../$prefix".
clearProfileOptions(
)
:
Zend_Dojo_BuildLayer
Remove all build profile options
consumeJavascript(
)
:
bool
Get flag indicating whether or not to consume JS aggregated in dojo() view helper
consumeOnLoad(
)
:
bool
Get flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper
generateBuildProfile(
)
:
string
Generate build profile
generateLayerScript(
)
:
string
Generate module layer script
getDojoHelper(
)
:
Zend_Dojo_View_Helper_Dojo_Container
Retrieve dojo() view helper instance
Will retrieve it from the view object if not registered.
getLayerName(
)
:
string|null
Retrieve custom layer name
getLayerScriptPath(
)
:
string|null
Get custom layer script path
getProfileOption(
string $key
)
:
mixed
Retrieve a single build profile option
Returns null if profile option does not exist.
getProfileOptions(
)
:
array
Get all build profile options
getProfilePrefixes(
)
:
array
Get build profile dependency prefixes
getView(
)
:
Zend_View_Interface|null
Retrieve view object
hasProfileOption(
string $key
)
:
bool
Is a given build profile option set?
removeProfileOption(
string $name
)
:
Zend_Dojo_BuildLayer
Remove a build profile option
setConsumeJavascript(
bool $flag
)
:
Zend_Dojo_BuildLayer
Set flag indicating whether or not to consume JS aggregated in dojo() view helper
setConsumeOnLoad(
bool $flag
)
:
Zend_Dojo_BuildLayer
Set flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper
setDojoHelper(
Zend_Dojo_View_Helper_Dojo_Container $helper
)
:
Zend_Dojo_BuildLayer
Set dojo() view helper instance
setLayerName(
string $name
)
:
Zend_Dojo_BuildLayer
Set custom layer name; e.g. "custom.main"
setLayerScriptPath(
string $path
)
:
Zend_Dojo_BuildLayer
Set the path to the custom layer script
Should be a path relative to dojo.js
setOptions(
array $options
)
:
Zend_Dojo_BuildLayer
Set options
Proxies to any setter that matches an option key.
setProfileOptions(
array $options
)
:
Zend_Dojo_BuildLayer
Set many build profile options at once
setProfilePrefixes(
array $prefixes
)
:
Zend_Dojo_BuildLayer
Set multiple dependency prefixes for bulid profile
setView(
Zend_View_Interface $view
)
:
Zend_Dojo_BuildLayer
Set View object