API Documentation

Tool/Project/Profile/Resource/Container.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Tool
subpackage
Framework
version
$Id: Container.php 20967 2010-02-07 18:17:49Z ralph $
Classes
Zend_Tool_Project_Profile_Resource_Container

Description

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.

Zend_Tool_Project_Profile_Resource_Container

Implements
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Tool
Properties
$_subResources
$_position
$_appendable
$_attributes
Methods
search
createResourceAt
createResource
setAttributes
getAttributes
setAttribute
getAttribute
hasAttribute
setAppendable
isAppendable
setParentResource
getParentResource
append
current
key
next
rewind
valid
hasChildren
getChildren
count
__clone

Description

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

Properties

$_appendable

bool $_appendable = 'true'

Details

$_appendable
bool
visibility
protected
default
true
final
false
static
false

$_attributes

array $_attributes = 'array'

Details

$_attributes
array
visibility
protected
default
array
final
false
static
false

$_position

int $_position = '0'

Details

$_position
int
visibility
protected
default
0
final
false
static
false

$_subResources

array $_subResources = 'array'

Details

$_subResources
array
visibility
protected
default
array
final
false
static
false

Methods

__clone

__clone( ) :

__clone()

Details
visibility
public
final
false
static
false

append

append( Zend_Tool_Project_Profile_Resource_Container $resource ) : Zend_Tool_Project_Profile_Resource_Container

append()

Arguments
$resource
Zend_Tool_Project_Profile_Resource_Container
Details
visibility
public
final
false
static
false

count

count( ) : int

count()

Output
int
Details
visibility
public
final
false
static
false

createResource

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

createResource()

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

Arguments
$context
string
$attributes
array
Details
visibility
public
final
false
static
false

createResourceAt

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

createResourceAt()

Arguments
$appendResourceOrSearchConstraints
arrayZend_Tool_Project_Profile_Resource_SearchConstraints
$context
string
$attributes
array
Details
visibility
public
final
false
static
false

current

current( ) : Zend_Tool_Project_Profile_Resource

current() - required by RecursiveIterator

Details
visibility
public
final
false
static
false

getAttribute

getAttribute( string $name ) : Zend_Tool_Project_Profile_Resource_Container

getAttribute()

Arguments
$name
string
Details
visibility
public
final
false
static
false

getAttributes

getAttributes( ) : array

getAttributes()

Output
array
Details
visibility
public
final
false
static
false

getChildren

getChildren( ) : array

getChildren()

Output
array
Details
visibility
public
final
false
static
false

getParentResource

getParentResource( ) : Zend_Tool_Project_Profile_Resource_Container

getParentResource()

Details
visibility
public
final
false
static
false

hasAttribute

hasAttribute( string $name ) : bool

hasAttribute()

Arguments
$name
string
Output
bool
Details
visibility
public
final
false
static
false

hasChildren

hasChildren( ) : bool

hasChildren()

Output
bool
Details
visibility
public
final
false
static
false

isAppendable

isAppendable( ) : bool

isAppendable()

Output
bool
Details
visibility
public
final
false
static
false

key

key( ) : int

key() - required by RecursiveIterator

Output
int
Details
visibility
public
final
false
static
false

next

next( ) : bool

next() - required by RecursiveIterator

Output
bool
Details
visibility
public
final
false
static
false

rewind

rewind( ) : bool

rewind() - required by RecursiveIterator

Output
bool
Details
visibility
public
final
false
static
false

search

search(  $matchSearchConstraints,  $nonMatchSearchConstraints = null ) : Zend_Tool_Project_Profile_Resource

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

Arguments
$matchSearchConstraints
$nonMatchSearchConstraints
Details
visibility
public
final
false
static
false

setAppendable

setAppendable( bool $appendable ) : Zend_Tool_Project_Profile_Resource_Container

setAppendable()

Arguments
$appendable
bool
Details
visibility
public
final
false
static
false

setAttribute

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

setAttribute()

Arguments
$name
string
$value
mixed
Details
visibility
public
final
false
static
false

setAttributes

setAttributes( array $attributes ) : Zend_Tool_Project_Profile_Resource_Container

setAttributes()

persist the attributes if the resource will accept them

Arguments
$attributes
array
Details
visibility
public
final
false
static
false

setParentResource

setParentResource( Zend_Tool_Project_Profile_Resource_Container $parentResource ) : Zend_Tool_Project_Profile_Resource_Container

setParentResource()

Arguments
$parentResource
Zend_Tool_Project_Profile_Resource_Container
Details
visibility
public
final
false
static
false

valid

valid( ) : bool

valid() - - required by RecursiveIterator

Output
bool
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.