Dojo module layer and custom build profile generation support
package | Zend_Dojo |
---|---|
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(array|\Zend_Config $options = null
) : void
array
\Zend_Config
\Zend_Dojo_Exception |
for invalid option argument |
---|
addProfileOption(string $key, \value $value) : \Zend_Dojo_BuildLayer
string
\value
\Zend_Dojo_BuildLayer
addProfileOptions(array $options) : \Zend_Dojo_BuildLayer
array
\Zend_Dojo_BuildLayer
addProfilePrefix(string $prefix, null|string $path = null
) : \Zend_Dojo_BuildLayer
If just the prefix is passed, sets path to "../$prefix".
string
null
string
\Zend_Dojo_BuildLayer
clearProfileOptions() : \Zend_Dojo_BuildLayer
\Zend_Dojo_BuildLayer
consumeJavascript() : boolean
boolean
consumeOnLoad() : boolean
boolean
generateBuildProfile() : string
string
generateLayerScript() : string
string
getDojoHelper() : \Zend_Dojo_View_Helper_Dojo_Container
Will retrieve it from the view object if not registered.
\Zend_Dojo_Exception |
if not registered and no view object found |
---|
\Zend_Dojo_View_Helper_Dojo_Container
getLayerName() : string | null
string
null
getLayerScriptPath() : string | null
string
null
getProfileOption(string $key) : mixed
Returns null if profile option does not exist.
string
mixed
getProfileOptions() : array
array
getProfilePrefixes() : array
array
getView() : \Zend_View_Interface | null
\Zend_View_Interface
null
hasProfileOption(string $key) : boolean
string
boolean
removeProfileOption(string $name) : \Zend_Dojo_BuildLayer
string
\Zend_Dojo_BuildLayer
setConsumeJavascript(boolean $flag) : \Zend_Dojo_BuildLayer
boolean
\Zend_Dojo_BuildLayer
setConsumeOnLoad(boolean $flag) : \Zend_Dojo_BuildLayer
boolean
\Zend_Dojo_BuildLayer
setDojoHelper(\Zend_Dojo_View_Helper_Dojo_Container $helper) : \Zend_Dojo_BuildLayer
\Zend_Dojo_View_Helper_Dojo_Container
\Zend_Dojo_BuildLayer
setLayerName(string $name) : \Zend_Dojo_BuildLayer
string
\Zend_Dojo_BuildLayer
setLayerScriptPath(string $path) : \Zend_Dojo_BuildLayer
Should be a path relative to dojo.js
string
\Zend_Dojo_BuildLayer
setOptions(array $options) : \Zend_Dojo_BuildLayer
Proxies to any setter that matches an option key.
array
\Zend_Dojo_BuildLayer
setProfileOptions(array $options) : \Zend_Dojo_BuildLayer
array
\Zend_Dojo_BuildLayer
setProfilePrefixes(array $prefixes) : \Zend_Dojo_BuildLayer
array
\Zend_Dojo_BuildLayer
setView(\Zend_View_Interface $view) : \Zend_Dojo_BuildLayer
\Zend_View_Interface
\Zend_Dojo_BuildLayer
_filterJsonProfileToJavascript(string $profile) : string
string
string
_getPrefix(string $module) : void
string
$_consumeJavascript : boolean
false
$_consumeOnLoad : boolean
false
$_dojo : \Zend_Dojo_View_Helper_Dojo_Container
$_layerName : string
$_layerScriptPath : string
$_profileOptions : array
array('action' => 'release', 'optimize' => 'shrinksafe', 'layerOptimize' => 'shrinksafe', 'copyTests' => false, 'loader' => 'default', 'cssOptimize' => 'comments')
$_profilePrefixes : array
array()
$_view : \Zend_View_Interface