Tool/Project/Profile/Resource/Container.php

Show: PublicProtectedPrivateinherited
Table of Contents
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
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

>VPropertyprotectedbool $_appendable = true
Default valuetrueDetails
Type
bool
>VPropertyprotectedarray $_attributes = array()
Default valuearray()Details
Type
array
>VPropertyprotectedint $_position = 0
Default value0Details
Type
int
>VPropertyprotectedarray $_subResources = array()
Default valuearray()Details
Type
array

Methods

methodpublic__clone() : void

__clone()

methodpubliccount() : int

count()

Returns
TypeDescription
int
methodpubliccreateResource(string $context, array $attributes = array()) : \Zend_Tool_Project_Profile_Resource

createResource()

Method to create a resource with a given context with specific attributes
Parameters
NameTypeDescription
$contextstring
$attributesarray
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource
methodpubliccreateResourceAt(array | \Zend_Tool_Project_Profile_Resource_SearchConstraints $appendResourceOrSearchConstraints, string $context, array $attributes = array()) : \Zend_Tool_Project_Profile_Resource

createResourceAt()

Parameters
NameTypeDescription
$appendResourceOrSearchConstraintsarray | \Zend_Tool_Project_Profile_Resource_SearchConstraints
$contextstring
$attributesarray
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource
methodpubliccurrent() : \Zend_Tool_Project_Profile_Resource

current() - required by RecursiveIterator

methodpublicgetAttribute(string $name) : \Zend_Tool_Project_Profile_Resource_Container

getAttribute()

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource_Container
methodpublicgetAttributes() : array

getAttributes()

Returns
TypeDescription
array
methodpublicgetChildren() : array

getChildren()

Returns
TypeDescription
array
methodpublicgetParentResource() : \Zend_Tool_Project_Profile_Resource_Container

getParentResource()

methodpublichasAttribute(string $name) : bool

hasAttribute()

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
bool
methodpublichasChildren() : bool

hasChildren()

Returns
TypeDescription
bool
methodpublicisAppendable() : bool

isAppendable()

Returns
TypeDescription
bool
methodpublickey() : int

key() - required by RecursiveIterator

Returns
TypeDescription
int
methodpublicnext() : bool

next() - required by RecursiveIterator

Returns
TypeDescription
bool
methodpublicrewind() : bool

rewind() - required by RecursiveIterator

Returns
TypeDescription
bool
methodpublicsearch( $matchSearchConstraints,  $nonMatchSearchConstraints = null) : \Zend_Tool_Project_Profile_Resource

Finder method to be able to find resources by context name and attributes. Example usage:

Parameters
NameTypeDescription
$matchSearchConstraints
$nonMatchSearchConstraints
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource
methodpublicsetAppendable(bool $appendable) : \Zend_Tool_Project_Profile_Resource_Container

setAppendable()

Parameters
NameTypeDescription
$appendablebool
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource_Container
methodpublicsetAttribute(string $name, mixed $value) : \Zend_Tool_Project_Profile_Resource_Container

setAttribute()

Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource_Container
methodpublicsetAttributes(array $attributes) : \Zend_Tool_Project_Profile_Resource_Container

setAttributes()

persist the attributes if the resource will accept them
Parameters
NameTypeDescription
$attributesarray
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource_Container
methodpublicsetParentResource(\Zend_Tool_Project_Profile_Resource_Container $parentResource) : \Zend_Tool_Project_Profile_Resource_Container

setParentResource()

Parameters
NameTypeDescription
$parentResource\Zend_Tool_Project_Profile_Resource_Container
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource_Container
methodpublicvalid() : bool

valid() - - required by RecursiveIterator

Returns
TypeDescription
bool
Documentation was generated by phpDocumentor 2.2.0 .