Tool/Project/Profile/Resource/Container.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Tool
- Subpackage
- Framework
- Version
- $Id$
\Zend_Tool_Project_Profile_Resource_Container
Package: Zend_Tool

Returns





Parameters
Returns



Returns

This class is an iterator that will iterate only over enabled resources
- Implements
- Children
- \Zend_Tool_Project_Profile_Resource
- \Zend_Tool_Project_Profile
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods

append(\Zend_Tool_Project_Profile_Resource_Container $resource) : \Zend_Tool_Project_Profile_Resource_Containerappend()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $resource | \Zend_Tool_Project_Profile_Resource_Container |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

createResource(string $context, array $attributes = array()) : \Zend_Tool_Project_Profile_ResourcecreateResource()
Method to create a resource with a given context with specific attributes
Parameters| Name | Type | Description |
|---|---|---|
| $context | string | |
| $attributes | array |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

createResourceAt(array | \Zend_Tool_Project_Profile_Resource_SearchConstraints $appendResourceOrSearchConstraints, string $context, array $attributes = array()) : \Zend_Tool_Project_Profile_ResourcecreateResourceAt()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $appendResourceOrSearchConstraints | array | \Zend_Tool_Project_Profile_Resource_SearchConstraints | |
| $context | string | |
| $attributes | array |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

current() : \Zend_Tool_Project_Profile_Resourcecurrent() - required by RecursiveIterator
Returns
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

getAttribute(string $name) : \Zend_Tool_Project_Profile_Resource_ContainergetAttribute()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

getParentResource() : \Zend_Tool_Project_Profile_Resource_ContainergetParentResource()
Returns
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

hasAttribute(string $name) : boolhasAttribute()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| bool |

search( $matchSearchConstraints, $nonMatchSearchConstraints = null) : \Zend_Tool_Project_Profile_ResourceFinder method to be able to find resources by context name and attributes. Example usage:
| Name | Type | Description |
|---|---|---|
| $matchSearchConstraints | ||
| $nonMatchSearchConstraints |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

setAppendable(bool $appendable) : \Zend_Tool_Project_Profile_Resource_ContainersetAppendable()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $appendable | bool |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

setAttribute(string $name, mixed $value) : \Zend_Tool_Project_Profile_Resource_ContainersetAttribute()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $value | mixed |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

setAttributes(array $attributes) : \Zend_Tool_Project_Profile_Resource_ContainersetAttributes()
persist the attributes if the resource will accept them
Parameters| Name | Type | Description |
|---|---|---|
| $attributes | array |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

setParentResource(\Zend_Tool_Project_Profile_Resource_Container $parentResource) : \Zend_Tool_Project_Profile_Resource_ContainersetParentResource()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $parentResource | \Zend_Tool_Project_Profile_Resource_Container |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |