Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Tool_Framework_Manifest_Repository Class Reference

Public Member Functions

 setRegistry (Zend_Tool_Framework_Registry_Interface $registry)
 setRegistry()
 
 addManifest (Zend_Tool_Framework_Manifest_Interface $manifest)
 addManifest() - Add a manifest for later processing
 
 getManifests ()
 getManifests()
 
 addMetadata (Zend_Tool_Framework_Metadata_Interface $metadata)
 addMetadata() - add a metadata peice by peice
 
 process ()
 process() - Process is expected to be called at the end of client construction time.
 
 getMetadatas (Array $searchProperties=array(), $includeNonExistentProperties=true)
 getMetadatas() - This is the main search function for the repository.
 
 getMetadata (Array $searchProperties=array(), $includeNonExistentProperties=true)
 getMetadata() - This will proxy to getMetadatas(), but will only return a single metadata.
 
 __toString ()
 __toString() - cast to string
 
 count ()
 count() - required by the Countable Interface
 
 getIterator ()
 getIterator() - required by the IteratorAggregate interface
 

Protected Attributes

 $_registry = null
 
 $_manifests = array()
 
 $_metadatas = array()
 

Member Function Documentation

__toString ( )

__toString() - cast to string

Returns
string
addManifest ( Zend_Tool_Framework_Manifest_Interface  $manifest)

addManifest() - Add a manifest for later processing

Parameters
Zend_Tool_Framework_Manifest_Interface$manifest
Returns
Zend_Tool_Framework_Manifest_Repository
addMetadata ( Zend_Tool_Framework_Metadata_Interface  $metadata)

addMetadata() - add a metadata peice by peice

Parameters
Zend_Tool_Framework_Manifest_Metadata$metadata
Returns
Zend_Tool_Framework_Manifest_Repository
count ( )

count() - required by the Countable Interface

Returns
int
getIterator ( )

getIterator() - required by the IteratorAggregate interface

Returns
ArrayIterator
getManifests ( )
getMetadata ( Array  $searchProperties = array(),
  $includeNonExistentProperties = true 
)

getMetadata() - This will proxy to getMetadatas(), but will only return a single metadata.

This method should be used in situations where the search criteria is known to only find a single metadata object

Parameters
array$searchProperties
bool$includeNonExistentProperties
Returns
Zend_Tool_Framework_Manifest_Metadata
getMetadatas ( Array  $searchProperties = array(),
  $includeNonExistentProperties = true 
)

getMetadatas() - This is the main search function for the repository.

example: This will retrieve all metadata that matches the following criteria $manifestRepo->getMetadatas(array( 'providerName' => 'Version', 'actionName' => 'show' ));

Parameters
array$searchProperties
bool$includeNonExistentProperties
Returns
Zend_Tool_Framework_Manifest_Metadata[]
process ( )

process() - Process is expected to be called at the end of client construction time.

By this time, the loader has run and loaded any found manifests into the repository for loading

Returns
Zend_Tool_Framework_Manifest_Repository
setRegistry ( Zend_Tool_Framework_Registry_Interface  $registry)

Member Data Documentation

$_manifests = array()
protected
$_metadatas = array()
protected
$_registry = null
protected