Dojo/BuildLayer.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Dojo
- Version
- $Id$
\Zend_Dojo_BuildLayer
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

bool $_consumeJavascript = falsefalseDetails- Type
- bool

bool $_consumeOnLoad = falsefalseDetails- Type
- bool

string $_layerScriptPath- Type
- string

array $_profileOptions = array('action' => 'release', 'optimize' => 'shrinksafe', 'layerOptimize' => 'shrinksafe', 'copyTests' => false, 'loader' => 'default', 'cssOptimize' => 'comments')array('action' => 'release', 'optimize' => 'shrinksafe', 'layerOptimize' => 'shrinksafe', 'copyTests' => false, 'loader' => 'default', 'cssOptimize' => 'comments')Details- Type
- array

array $_profilePrefixes = array()array()Details- Type
- array
Methods

__construct(array | \Zend_Config $options = null) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $options | array | \Zend_Config |
| Exception | Description |
|---|---|
| \Zend_Dojo_Exception | for invalid option argument |

_filterJsonProfileToJavascript(string $profile) : stringFilter a JSON build profile to JavaScript
| Name | Type | Description |
|---|---|---|
| $profile | string |
| Type | Description |
|---|---|
| string |

addProfileOption(string $key, \value $value) : \Zend_Dojo_BuildLayerAdd a single build profile option
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | \value |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

addProfileOptions(array $options) : \Zend_Dojo_BuildLayerAdd many build profile options at once
| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

addProfilePrefix(string $prefix, null | string $path = null) : \Zend_Dojo_BuildLayerAdd a build profile dependency prefix
| Name | Type | Description |
|---|---|---|
| $prefix | string | |
| $path | null | string |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

clearProfileOptions() : \Zend_Dojo_BuildLayerRemove all build profile options
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

consumeJavascript() : boolGet flag indicating whether or not to consume JS aggregated in dojo() view helper
| Type | Description |
|---|---|
| bool |

consumeOnLoad() : boolGet flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper
| Type | Description |
|---|---|
| bool |

getDojoHelper() : \Zend_Dojo_View_Helper_Dojo_ContainerRetrieve dojo() view helper instance
| Type | Description |
|---|---|
| \Zend_Dojo_View_Helper_Dojo_Container |
| Exception | Description |
|---|---|
| \Zend_Dojo_Exception | if not registered and no view object found |

getProfileOption(string $key) : mixedRetrieve a single build profile option
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| mixed |

getView() : \Zend_View_Interface | nullRetrieve view object
| Type | Description |
|---|---|
| \Zend_View_Interface | null |

hasProfileOption(string $key) : boolIs a given build profile option set?
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| bool |

removeProfileOption(string $name) : \Zend_Dojo_BuildLayerRemove a build profile option
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setConsumeJavascript(bool $flag) : \Zend_Dojo_BuildLayerSet flag indicating whether or not to consume JS aggregated in dojo() view helper
| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setConsumeOnLoad(bool $flag) : \Zend_Dojo_BuildLayerSet flag indicating whether or not to consume dojo.addOnLoad events aggregated in dojo() view helper
| Name | Type | Description |
|---|---|---|
| $flag | bool |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setDojoHelper(\Zend_Dojo_View_Helper_Dojo_Container $helper) : \Zend_Dojo_BuildLayerSet dojo() view helper instance
| Name | Type | Description |
|---|---|---|
| $helper | \Zend_Dojo_View_Helper_Dojo_Container |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setLayerName(string $name) : \Zend_Dojo_BuildLayerSet custom layer name; e.g. "custom.main"
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setLayerScriptPath(string $path) : \Zend_Dojo_BuildLayerSet the path to the custom layer script
| Name | Type | Description |
|---|---|---|
| $path | string |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setOptions(array $options) : \Zend_Dojo_BuildLayerSet options
| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setProfileOptions(array $options) : \Zend_Dojo_BuildLayerSet many build profile options at once
| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setProfilePrefixes(array $prefixes) : \Zend_Dojo_BuildLayerSet multiple dependency prefixes for bulid profile
| Name | Type | Description |
|---|---|---|
| $prefixes | array |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |

setView(\Zend_View_Interface $view) : \Zend_Dojo_BuildLayerSet View object
| Name | Type | Description |
|---|---|---|
| $view | \Zend_View_Interface |
| Type | Description |
|---|---|
| \Zend_Dojo_BuildLayer |