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
Detailsbool $_consumeOnLoad = 'false'Flag: whether or not to consume dojo.addOnLoad events registered with the dojo() view helper when generating the module layer file contents
DetailsZend_Dojo_View_Helper_Dojo_Container $_dojo = ''Dojo view helper reference
Detailsstring $_layerName = ''Name of the custom layer to generate
Detailsstring $_layerScriptPath = ''Path to the custom layer script relative to dojo.js (used when creating the build profile)
Detailsarray $_profileOptions = 'array'Build profile options
Detailsarray $_profilePrefixes = 'array'Associative array of module/path pairs for the build profile
DetailsZend_View_Interface $_view = ''Zend_View reference
Details__construct(
array|Zend_Config $options
=
null
)
:
voidConstructor
Details_filterJsonProfileToJavascript(
string $profile
)
:
stringFilter a JSON build profile to JavaScript
Details_getPrefix(
string $module
)
:
voidRetrieve module prefix
DetailsaddProfileOption(
string $key, value $value
)
:
Zend_Dojo_BuildLayerAdd a single build profile option
DetailsaddProfileOptions(
array $options
)
:
Zend_Dojo_BuildLayerAdd many build profile options at once
DetailsaddProfilePrefix(
string $prefix, null|string $path
=
null
)
:
Zend_Dojo_BuildLayerAdd a build profile dependency prefix
If just the prefix is passed, sets path to "../$prefix".
DetailsclearProfileOptions(
)
:
Zend_Dojo_BuildLayerRemove all build profile options
DetailsconsumeJavascript(
)
:
boolGet flag indicating whether or not to consume JS aggregated in dojo() view helper
DetailsconsumeOnLoad(
)
:
boolGet flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper
DetailsgenerateBuildProfile(
)
:
stringGenerate build profile
DetailsgenerateLayerScript(
)
:
stringGenerate module layer script
DetailsgetDojoHelper(
)
:
Zend_Dojo_View_Helper_Dojo_ContainerRetrieve dojo() view helper instance
Will retrieve it from the view object if not registered.
DetailsgetLayerName(
)
:
string|nullRetrieve custom layer name
DetailsgetLayerScriptPath(
)
:
string|nullGet custom layer script path
DetailsgetProfileOption(
string $key
)
:
mixedRetrieve a single build profile option
Returns null if profile option does not exist.
DetailsgetProfileOptions(
)
:
arrayGet all build profile options
DetailsgetProfilePrefixes(
)
:
arrayGet build profile dependency prefixes
DetailsgetView(
)
:
Zend_View_Interface|nullRetrieve view object
DetailshasProfileOption(
string $key
)
:
boolIs a given build profile option set?
DetailsremoveProfileOption(
string $name
)
:
Zend_Dojo_BuildLayerRemove a build profile option
DetailssetConsumeJavascript(
bool $flag
)
:
Zend_Dojo_BuildLayerSet flag indicating whether or not to consume JS aggregated in dojo() view helper
DetailssetConsumeOnLoad(
bool $flag
)
:
Zend_Dojo_BuildLayerSet flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper
DetailssetDojoHelper(
Zend_Dojo_View_Helper_Dojo_Container $helper
)
:
Zend_Dojo_BuildLayerSet dojo() view helper instance
DetailssetLayerName(
string $name
)
:
Zend_Dojo_BuildLayerSet custom layer name; e.g. "custom.main"
DetailssetLayerScriptPath(
string $path
)
:
Zend_Dojo_BuildLayerSet the path to the custom layer script
Should be a path relative to dojo.js
DetailssetOptions(
array $options
)
:
Zend_Dojo_BuildLayerSet options
Proxies to any setter that matches an option key.
DetailssetProfileOptions(
array $options
)
:
Zend_Dojo_BuildLayerSet many build profile options at once
DetailssetProfilePrefixes(
array $prefixes
)
:
Zend_Dojo_BuildLayerSet multiple dependency prefixes for bulid profile
DetailssetView(
Zend_View_Interface $view
)
:
Zend_Dojo_BuildLayerSet View object
Details