Tool/Project/Profile/Resource.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Tool
- Subpackage
- Framework
- Version
- $Id: Resource.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Tool_Project_Profile_Resource
- Parent(s)
- \Zend_Tool_Project_Profile_Resource_Container
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

bool $_appendable = truetrueDetails- Type
- bool
- Inherited_from
- \Zend_Tool_Project_Profile_Resource_Container::$$_appendable

\Zend_Tool_Project_Context|string $_context = nullnullDetails- Type
- \Zend_Tool_Project_Context | string

int $_position = 00Details- Type
- int
- Inherited_from
- \Zend_Tool_Project_Profile_Resource_Container::$$_position

array $_subResources = array()array()Details- Type
- array
- Inherited_from
- \Zend_Tool_Project_Profile_Resource_Container::$$_subResources
Methods

__call(string $method, array $arguments) : \Zend_Tool_Project_Profile_Resource__call()
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $arguments | array |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

__construct(string | \Zend_Tool_Project_Context_Interface $context) : void__construct()
| Name | Type | Description |
|---|---|---|
| $context | string | \Zend_Tool_Project_Context_Interface |

append(\Zend_Tool_Project_Profile_Resource_Container $resource) : \Zend_Tool_Project_Profile_Resource_Container| 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()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::createResource()Method to create a resource with a given context with specific attributes
| 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()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::createResourceAt()| 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
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::current()| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

getAttribute(string $name) : \Zend_Tool_Project_Profile_Resource_ContainergetAttribute()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::getAttribute()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

getAttributes() : arraygetAttributes()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::getAttributes()| Type | Description |
|---|---|
| array |

getContext() : \Zend_Tool_Project_Context_InterfacegetContext()
| Type | Description |
|---|---|
| \Zend_Tool_Project_Context_Interface |

getName() : stringgetName() - Get the resource name
Name is derived from the context name
| Type | Description |
|---|---|
| string |

getParentResource() : \Zend_Tool_Project_Profile_Resource_ContainergetParentResource()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::getParentResource()| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

hasAttribute(string $name) : boolhasAttribute()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::hasAttribute()| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| bool |

initializeContext() : \Zend_Tool_Project_Profile_ResourceinitializeContext()
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

isAppendable() : boolisAppendable()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::isAppendable()| Type | Description |
|---|---|
| bool |

isDeleted() : \Zend_Tool_Project_Profile_ResourceisDeleted()
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

key() : intkey() - required by RecursiveIterator
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::key()| Type | Description |
|---|---|
| int |

next() : boolnext() - required by RecursiveIterator
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::next()| Type | Description |
|---|---|
| bool |

rewind() : boolrewind() - required by RecursiveIterator
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::rewind()| Type | Description |
|---|---|
| bool |

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

setAppendable(bool $appendable) : \Zend_Tool_Project_Profile_Resource_ContainersetAppendable()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::setAppendable()| Name | Type | Description |
|---|---|---|
| $appendable | bool |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

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

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

setContext(string | \Zend_Tool_Project_Context_Interface $context) : \Zend_Tool_Project_Profile_ResourcesetContext()
| Name | Type | Description |
|---|---|---|
| $context | string | \Zend_Tool_Project_Context_Interface |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

setDeleted(bool $deleted = true) : \Zend_Tool_Project_Profile_ResourcesetDeleted()
| Name | Type | Description |
|---|---|---|
| $deleted | bool |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

setEnabled(bool $enabled = true) : \Zend_Tool_Project_Profile_ResourcesetEnabled()
| Name | Type | Description |
|---|---|---|
| $enabled | bool |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

setParentResource(\Zend_Tool_Project_Profile_Resource_Container $parentResource) : \Zend_Tool_Project_Profile_Resource_ContainersetParentResource()
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::setParentResource()| Name | Type | Description |
|---|---|---|
| $parentResource | \Zend_Tool_Project_Profile_Resource_Container |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource_Container |

setProfile(\Zend_Tool_Project_Profile $profile) : \Zend_Tool_Project_Profile_ResourcesetProfile()
| Name | Type | Description |
|---|---|---|
| $profile | \Zend_Tool_Project_Profile |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

valid() : boolvalid() - - required by RecursiveIterator
Inherited from: \Zend_Tool_Project_Profile_Resource_Container::valid()| Type | Description |
|---|---|
| bool |