Zend Framework
1.12
|
Public Member Functions | |
search ($matchSearchConstraints, $nonMatchSearchConstraints=null) | |
Finder method to be able to find resources by context name and attributes. | |
createResourceAt ($appendResourceOrSearchConstraints, $context, Array $attributes=array()) | |
createResourceAt() | |
createResource ($context, Array $attributes=array()) | |
createResource() | |
setAttributes (Array $attributes) | |
setAttributes() | |
getAttributes () | |
getAttributes() | |
setAttribute ($name, $value) | |
setAttribute() | |
getAttribute ($name) | |
getAttribute() | |
hasAttribute ($name) | |
hasAttribute() | |
setAppendable ($appendable) | |
setAppendable() | |
isAppendable () | |
isAppendable() | |
setParentResource (Zend_Tool_Project_Profile_Resource_Container $parentResource) | |
setParentResource() | |
getParentResource () | |
getParentResource() | |
append (Zend_Tool_Project_Profile_Resource_Container $resource) | |
append() | |
current () | |
current() - required by RecursiveIterator | |
key () | |
key() - required by RecursiveIterator | |
next () | |
next() - required by RecursiveIterator | |
rewind () | |
rewind() - required by RecursiveIterator | |
valid () | |
valid() - - required by RecursiveIterator | |
hasChildren () | |
hasChildren() | |
getChildren () | |
getChildren() | |
count () | |
count() | |
__clone () | |
__clone() | |
Protected Attributes | |
$_subResources = array() | |
$_position = 0 | |
$_appendable = true | |
$_attributes = array() | |
__clone | ( | ) |
append | ( | Zend_Tool_Project_Profile_Resource_Container | $resource | ) |
Zend_Tool_Project_Profile_Resource_Container | $resource |
count | ( | ) |
createResource | ( | $context, | |
Array | $attributes = array() |
||
) |
Method to create a resource with a given context with specific attributes
string | $context | |
array | $attributes |
Interesting logic here:
First set the parentResource (this will also be done inside append). This will allow the initialization routine to change the appendability of the parent resource. This is important to allow specific resources to be appendable by very specific sub-resources.
createResourceAt | ( | $appendResourceOrSearchConstraints, | |
$context, | |||
Array | $attributes = array() |
||
) |
array | Zend_Tool_Project_Profile_Resource_SearchConstraints | $appendResourceOrSearchConstraints | |
string | $context | |
array | $attributes |
current | ( | ) |
current() - required by RecursiveIterator
getAttribute | ( | $name | ) |
getAttributes | ( | ) |
getChildren | ( | ) |
getParentResource | ( | ) |
hasAttribute | ( | $name | ) |
hasChildren | ( | ) |
isAppendable | ( | ) |
key | ( | ) |
key() - required by RecursiveIterator
next | ( | ) |
next() - required by RecursiveIterator
rewind | ( | ) |
rewind() - required by RecursiveIterator
search | ( | $matchSearchConstraints, | |
$nonMatchSearchConstraints = null |
|||
) |
Finder method to be able to find resources by context name and attributes.
Example usage:
Zend_Tool_Project_Profile_Resource_SearchConstraints | string | array | $searchParameters |
setAppendable | ( | $appendable | ) |
setAttribute | ( | $name, | |
$value | |||
) |
string | $name | |
mixed | $value |
setAttributes | ( | Array | $attributes | ) |
persist the attributes if the resource will accept them
array | $attributes |
setParentResource | ( | Zend_Tool_Project_Profile_Resource_Container | $parentResource | ) |
Zend_Tool_Project_Profile_Resource_Container | $parentResource |
valid | ( | ) |
valid() - - required by RecursiveIterator
|
protected |
|
protected |
|
protected |
|
protected |