Tool/Framework/Manifest/Repository.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_Framework_Manifest_Repository

Package: Zend_Tool
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_manifests = array()
Default valuearray()Details
Type
array
>VPropertyprotectedarray $_metadatas = array()

Array of Zend_Tool_Framework_Metadata_Interface

Default valuearray()Details
Type
array
>VPropertyprotected\Zend_Tool_Framework_Provider_Registry_Interface $_registry = null

Methods

methodpublic__toString() : string

__toString() - cast to string

Returns
TypeDescription
string
methodpublicaddManifest(\Zend_Tool_Framework_Manifest_Interface $manifest) : \Zend_Tool_Framework_Manifest_Repository

addManifest() - Add a manifest for later processing

Parameters
NameTypeDescription
$manifest\Zend_Tool_Framework_Manifest_Interface
Returns
TypeDescription
\Zend_Tool_Framework_Manifest_Repository
methodpublicaddMetadata(\Zend_Tool_Framework_Manifest_Metadata $metadata) : \Zend_Tool_Framework_Manifest_Repository

addMetadata() - add a metadata peice by peice

Parameters
NameTypeDescription
$metadata\Zend_Tool_Framework_Manifest_Metadata
Returns
TypeDescription
\Zend_Tool_Framework_Manifest_Repository
methodpubliccount() : int

count() - required by the Countable Interface

Returns
TypeDescription
int
methodpublicgetIterator() : \ArrayIterator

getIterator() - required by the IteratorAggregate interface

Returns
TypeDescription
\ArrayIterator
methodpublicgetMetadata(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
NameTypeDescription
$searchPropertiesarray
$includeNonExistentPropertiesbool
Returns
TypeDescription
\Zend_Tool_Framework_Manifest_Metadata
methodpublicgetMetadatas(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' ));
Parameters
NameTypeDescription
$searchPropertiesarray
$includeNonExistentPropertiesbool
Returns
TypeDescription
\Zend_Tool_Framework_Manifest_Metadata[]
methodpublicprocess() : \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
Returns
TypeDescription
\Zend_Tool_Framework_Manifest_Repository
methodpublicsetRegistry(\Zend_Tool_Framework_Registry_Interface $registry) : \unknown

setRegistry()

Parameters
NameTypeDescription
$registry\Zend_Tool_Framework_Registry_Interface
Returns
TypeDescription
\unknown
Documentation was generated by phpDocumentor 2.2.0 .