Tool/Framework/Provider/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_Provider_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

>VPropertyprotectedbool $_processOnAdd = false
Default valuefalseDetails
Type
bool
>VPropertyprotected\Zend_Tool_Framework_Provider_Signature[] $_providerSignatures = array()
Default valuearray()Details
Type
\Zend_Tool_Framework_Provider_Signature[]
>VPropertyprotectedarray $_providers = array()

Array of Zend_Tool_Framework_Provider_Inteface

Default valuearray()Details
Type
array
>VPropertyprotected\Zend_Tool_Framework_Registry $_registry = null
Default valuenullDetails
Type
\Zend_Tool_Framework_Registry
>VPropertyprotected\Zend_Tool_Framework_Provider_Interface[] $_unprocessedProviders = array()
Default valuearray()Details
Type
\Zend_Tool_Framework_Provider_Interface[]

Methods

methodprotected_parseName( $provider) : string

_parseName - internal method to determine the name of an action when one is not explicity provided.

Parameters
NameTypeDescription
$provider
Returns
TypeDescription
string
methodpublicaddProvider(\Zend_Tool_Framework_Provider_Interface $provider,  $overwriteExistingProvider = false) : \Zend_Tool_Framework_Provider_Repository

Add a provider to the repository for processing

Parameters
NameTypeDescription
$provider\Zend_Tool_Framework_Provider_Interface
$overwriteExistingProvider
Returns
TypeDescription
\Zend_Tool_Framework_Provider_Repository
methodpubliccount() : int

count() - return the number of providers

Returns
TypeDescription
int
methodpublicgetIterator() : \ArrayIterator

getIterator() - Required by the IteratorAggregate Interface

Returns
TypeDescription
\ArrayIterator
methodpublicgetProvider(string $providerName) : \Zend_Tool_Framework_Provider_Interface

getProvider()

Parameters
NameTypeDescription
$providerNamestring
Returns
TypeDescription
\Zend_Tool_Framework_Provider_Interface
methodpublicgetProviderSignature(string $providerName) : \Zend_Tool_Framework_Provider_Signature

getProviderSignature()

Parameters
NameTypeDescription
$providerNamestring
Returns
TypeDescription
\Zend_Tool_Framework_Provider_Signature
methodpublicgetProviderSignatures() : array

getProviderSignatures() Get all the provider signatures

Returns
TypeDescription
array
methodpublicgetProviders() : array

getProviders() Get all the providers in the repository

Returns
TypeDescription
array
methodpublichasProvider( $providerOrClassName,  $processedOnly = true) : void

Parameters
NameTypeDescription
$providerOrClassName
$processedOnly
methodpublicprocess() : void

Process all of the unprocessed providers

methodpublicsetProcessOnAdd(\unknown_type $processOnAdd = true) : \unknown

Set the ProcessOnAdd flag

Parameters
NameTypeDescription
$processOnAdd\unknown_type
Returns
TypeDescription
\unknown
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 .