This class is an iterator that will iterate only over enabled resources

category Zend
package Zend_Tool
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Tool_Project_Profile_Resource_Container

 Methods

__call()

__call(string $method, array $arguments) : \Zend_Tool_Project_Profile_Resource

Parameters

$method

string

$arguments

array

Returns

\Zend_Tool_Project_Profile_Resource

__clone()

__clone() 
Inherited

__construct()

__construct(string|\Zend_Tool_Project_Context_Interface $context) 

Parameters

$context

string\Zend_Tool_Project_Context_Interface

__toString()

__toString() : string

Returns

string

append()

append(\Zend_Tool_Project_Profile_Resource_Container $resource) : \Zend_Tool_Project_Profile_Resource_Container
Inherited

Parameters

$resource

\Zend_Tool_Project_Profile_Resource_Container

Returns

\Zend_Tool_Project_Profile_Resource_Container

count()

count() : integer
Inherited

Returns

integer

createResource()

createResource(string $context, array $attributes = array()) : \Zend_Tool_Project_Profile_Resource
Inherited

Method to create a resource with a given context with specific attributes

Parameters

$context

string

$attributes

array

Returns

\Zend_Tool_Project_Profile_Resource

createResourceAt()

createResourceAt(array|\Zend_Tool_Project_Profile_Resource_SearchConstraints $appendResourceOrSearchConstraints, string $context, array $attributes = array()) : \Zend_Tool_Project_Profile_Resource
Inherited

Parameters

$appendResourceOrSearchConstraints

array\Zend_Tool_Project_Profile_Resource_SearchConstraints

$context

string

$attributes

array

Returns

\Zend_Tool_Project_Profile_Resource

current() - required by RecursiveIterator

current() : \Zend_Tool_Project_Profile_Resource
Inherited

Returns

\Zend_Tool_Project_Profile_Resource

getAttribute()

getAttribute(string $name) : \Zend_Tool_Project_Profile_Resource_Container
Inherited

Parameters

$name

string

Returns

\Zend_Tool_Project_Profile_Resource_Container

getAttributes()

getAttributes() : array
Inherited

Returns

array

getChildren()

getChildren() : array
Inherited

Returns

array

getContext()

getContext() : \Zend_Tool_Project_Context_Interface

Returns

\Zend_Tool_Project_Context_Interface

getName() - Get the resource name

getName() : string

Name is derived from the context name

Returns

string

getParentResource()

getParentResource() : \Zend_Tool_Project_Profile_Resource_Container
Inherited

Returns

\Zend_Tool_Project_Profile_Resource_Container

getPersistentAttributes()

getPersistentAttributes() : array

Returns

array

getProfile

getProfile() : \Zend_Tool_Project_Profile

Returns

\Zend_Tool_Project_Profile

hasAttribute()

hasAttribute(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

hasChildren()

hasChildren() : boolean
Inherited

Returns

boolean

initializeContext()

initializeContext() : \Zend_Tool_Project_Profile_Resource

Returns

\Zend_Tool_Project_Profile_Resource

isAppendable()

isAppendable() : boolean
Inherited

Returns

boolean

isDeleted()

isDeleted() : \Zend_Tool_Project_Profile_Resource

Returns

\Zend_Tool_Project_Profile_Resource

isEnabled()

isEnabled() : boolean

Returns

boolean

key() - required by RecursiveIterator

key() : integer
Inherited

Returns

integer

next() - required by RecursiveIterator

next() : boolean
Inherited

Returns

boolean

rewind() - required by RecursiveIterator

rewind() : boolean
Inherited

Returns

boolean

setAppendable()

setAppendable(boolean $appendable) : \Zend_Tool_Project_Profile_Resource_Container
Inherited

Parameters

$appendable

boolean

Returns

\Zend_Tool_Project_Profile_Resource_Container

setAttribute()

setAttribute(string $name, mixed $value) : \Zend_Tool_Project_Profile_Resource_Container
Inherited

Parameters

$name

string

$value

mixed

Returns

\Zend_Tool_Project_Profile_Resource_Container

setAttributes()

setAttributes(array $attributes) : \Zend_Tool_Project_Profile_Resource_Container
Inherited

persist the attributes if the resource will accept them

Parameters

$attributes

array

Returns

\Zend_Tool_Project_Profile_Resource_Container

setContext()

setContext(string|\Zend_Tool_Project_Context_Interface $context) : \Zend_Tool_Project_Profile_Resource

Parameters

$context

string\Zend_Tool_Project_Context_Interface

Returns

\Zend_Tool_Project_Profile_Resource

setDeleted()

setDeleted(boolean $deleted = true) : \Zend_Tool_Project_Profile_Resource

Parameters

$deleted

boolean

Returns

\Zend_Tool_Project_Profile_Resource

setEnabled()

setEnabled(boolean $enabled = true) : \Zend_Tool_Project_Profile_Resource

Parameters

$enabled

boolean

Returns

\Zend_Tool_Project_Profile_Resource

setParentResource()

setParentResource(\Zend_Tool_Project_Profile_Resource_Container $parentResource) : \Zend_Tool_Project_Profile_Resource_Container
Inherited

Parameters

$parentResource

\Zend_Tool_Project_Profile_Resource_Container

Returns

\Zend_Tool_Project_Profile_Resource_Container

setProfile()

setProfile(\Zend_Tool_Project_Profile $profile) : \Zend_Tool_Project_Profile_Resource

Parameters

$profile

\Zend_Tool_Project_Profile

Returns

\Zend_Tool_Project_Profile_Resource

valid() - - required by RecursiveIterator

valid() : boolean
Inherited

Returns

boolean

 Properties

 

$_appendable

$_appendable : boolean

Default

true
 

$_attributes

$_attributes : array

Default

array()
inherited_from \Zend_Tool_Project_Profile_Resource_Container::_attributes
 

$_attributes

$_attributes : array

Default

array()
 

$_context

$_context : \Zend_Tool_Project_Context | string

Default

null
 

$_deleted

$_deleted 

Default

false
 

$_enabled

$_enabled 

Default

true
 

$_isContextInitialized

$_isContextInitialized : boolean

Default

false
 

$_parentResource

$_parentResource : \Zend_Tool_Project_Profile_Resource

Default

null
 

$_position

$_position : integer

Default

0
 

$_profile

$_profile : \Zend_Tool_Project_Profile

Default

null
 

$_subResources

$_subResources : array

Default

array()