Tool/Framework/Manifest/Repository.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Tool
- Subpackage
- Framework
- Version
- $Id: Repository.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Tool_Framework_Manifest_Repository
- Implements
- \Zend_Tool_Framework_Registry_EnabledInterface
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_metadatas = array()array()Details- Type
- array
Methods

addManifest(\Zend_Tool_Framework_Manifest_Interface $manifest) : \Zend_Tool_Framework_Manifest_RepositoryaddManifest() - Add a manifest for later processing
| Name | Type | Description |
|---|---|---|
| $manifest | \Zend_Tool_Framework_Manifest_Interface |
| Type | Description |
|---|---|
| \Zend_Tool_Framework_Manifest_Repository |

addMetadata(\Zend_Tool_Framework_Manifest_Metadata $metadata) : \Zend_Tool_Framework_Manifest_RepositoryaddMetadata() - add a metadata peice by peice
| Name | Type | Description |
|---|---|---|
| $metadata | \Zend_Tool_Framework_Manifest_Metadata |
| Type | Description |
|---|---|
| \Zend_Tool_Framework_Manifest_Repository |

getIterator() : \ArrayIteratorgetIterator() - required by the IteratorAggregate interface
| Type | Description |
|---|---|
| \ArrayIterator |

getManifests() : \Zend_Tool_Framework_Manifest_Interface[]getManifests()
| Type | Description |
|---|---|
| \Zend_Tool_Framework_Manifest_Interface[] |

getMetadata(array $searchProperties = array(), bool $includeNonExistentProperties = true) : \Zend_Tool_Framework_Manifest_MetadatagetMetadata() - 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
| Name | Type | Description |
|---|---|---|
| $searchProperties | array | |
| $includeNonExistentProperties | bool |
| Type | Description |
|---|---|
| \Zend_Tool_Framework_Manifest_Metadata |

getMetadatas(array $searchProperties = array(), bool $includeNonExistentProperties = true) : \Zend_Tool_Framework_Manifest_Metadata[]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' ));
| Name | Type | Description |
|---|---|---|
| $searchProperties | array | |
| $includeNonExistentProperties | bool |
| Type | Description |
|---|---|
| \Zend_Tool_Framework_Manifest_Metadata[] |

process() : \Zend_Tool_Framework_Manifest_Repositoryprocess() - 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
| Type | Description |
|---|---|
| \Zend_Tool_Framework_Manifest_Repository |

setRegistry(\Zend_Tool_Framework_Registry_Interface $registry) : \unknownsetRegistry()
| Name | Type | Description |
|---|---|---|
| $registry | \Zend_Tool_Framework_Registry_Interface |
| Type | Description |
|---|---|
| \unknown |