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-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Tool
- Subpackage
- Framework
- Version
- $Id$
\Zend_Tool_Framework_Manifest_Repository
Package: Zend_Tool
Returns
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
array $_metadatas = array()
Array of Zend_Tool_Framework_Metadata_Interface
Default value
array()
Details- Type
- array
Methods
addManifest(\Zend_Tool_Framework_Manifest_Interface $manifest) : \Zend_Tool_Framework_Manifest_Repository
addManifest() - Add a manifest for later processing
Parameters
Returns
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_Repository
addMetadata() - add a metadata peice by peice
Parameters
Returns
Name | Type | Description |
---|---|---|
$metadata | \Zend_Tool_Framework_Manifest_Metadata |
Type | Description |
---|---|
\Zend_Tool_Framework_Manifest_Repository |
getIterator() : \ArrayIterator
getIterator() - required by the IteratorAggregate interface
Returns
Type | Description |
---|---|
\ArrayIterator |
getManifests() : \Zend_Tool_Framework_Manifest_Interface[]
getManifests()
Returns
Type | Description |
---|---|
\Zend_Tool_Framework_Manifest_Interface[] |
getMetadata(array $searchProperties = array(), bool $includeNonExistentProperties = true) : \Zend_Tool_Framework_Manifest_Metadata
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
Returns
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'
));
ParametersName | Type | Description |
---|---|---|
$searchProperties | array | |
$includeNonExistentProperties | bool |
Type | Description |
---|---|
\Zend_Tool_Framework_Manifest_Metadata[] |
process() : \Zend_Tool_Framework_Manifest_Repository
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
ReturnsType | Description |
---|---|
\Zend_Tool_Framework_Manifest_Repository |
setRegistry(\Zend_Tool_Framework_Registry_Interface $registry) : \unknown
setRegistry()
Parameters
Returns
Name | Type | Description |
---|---|---|
$registry | \Zend_Tool_Framework_Registry_Interface |
Type | Description |
---|---|
\unknown |