Tool/Project/Provider/Abstract.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 [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_Project_Provider_Abstract

Package: Zend_Tool
This is a convenience class.
At current it will return the request and response from the client registry as they are the more common things that will be needed by providers
Implements
Parent(s)
\Zend_Tool_Framework_Provider_Abstract
Children
\Zend_Tool_Project_Provider_Application
\Zend_Tool_Project_Provider_Controller
\Zend_Tool_Project_Provider_Layout
\Zend_Tool_Project_Provider_Form
\Zend_Tool_Project_Provider_Action
\Zend_Tool_Project_Provider_Project
\Zend_Tool_Project_Provider_Test
\Zend_Tool_Project_Provider_DbTable
\Zend_Tool_Project_Provider_View
\Zend_Tool_Project_Provider_Module
\Zend_Tool_Project_Provider_Model
\Zend_Tool_Project_Provider_ProjectProvider
\Zend_Tool_Project_Provider_Profile
\Zend_Tool_Project_Provider_DbAdapter
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  NO_PROFILE_THROW_EXCEPTION = true
>VConstant  NO_PROFILE_RETURN_FALSE = false

Properties

>VPropertyprotectedbool $_isInitialized = false
static
Default valuefalseDetails
Type
bool
>VPropertyprotected\Zend_Tool_Project_Profile $_loadedProfile = null
Default valuenullDetails
Type
\Zend_Tool_Project_Profile
>VPropertyprotected$_projectPath = null
Default valuenullDetails
Type
n/a

Methods

methodprotected_findProfileDirectory( $projectDirectory = null,  $searchParentDirectories = true) : void

Parameters
NameTypeDescription
$projectDirectory
$searchParentDirectories
methodprotected_getContentForContext( $context,  $methodName,  $parameters) : void

Parameters
NameTypeDescription
$context
$methodName
$parameters
methodprotected_getProfile( $loadProfileFlag = self::NO_PROFILE_THROW_EXCEPTION) : \Zend_Tool_Project_Profile

Return the currently loaded profile

Parameters
NameTypeDescription
$loadProfileFlag
Returns
TypeDescription
\Zend_Tool_Project_Profile
methodprotected_hasProjectProviderDirectory( $pathToProfileFile) : void

Parameters
NameTypeDescription
$pathToProfileFile
methodprivate_loadContextClassesIntoRegistry(array $contextClasses) : void

_loadContextClassesIntoRegistry() - This is called by the constructor so that child providers can provide a list of contexts to load into the context repository

Parameters
NameTypeDescription
$contextClassesarray
methodprotected_loadProfile(bool $loadProfileFlag = self::NO_PROFILE_THROW_EXCEPTION, string $projectDirectory = null, bool $searchParentDirectories = true) : \Zend_Tool_Project_Profile

_getProject is designed to find if there is project file in the context of where the client has been called from.

. The search order is as follows.. - traversing downwards from (PWD) - current working directory - if an enpoint variable has been registered in teh client registry - key=workingDirectory - if an ENV variable with the key ZFPROJECT_PATH is found
Parameters
NameTypeDescription
$loadProfileFlagbool

Whether or not to throw an exception when no profile is found

$projectDirectorystring

The project directory to use to search

$searchParentDirectoriesbool

Whether or not to search upper level direcotries

Returns
TypeDescription
\Zend_Tool_Project_Profile
methodprotected_loadProfileRequired() : \Zend_Tool_Project_Profile

Load the project profile from the current working directory, if not throw exception

Returns
TypeDescription
\Zend_Tool_Project_Profile
methodprotected_storeProfile() : void

_storeProfile()

This method will store the profile into its proper location
methodpublicgetContextClasses() : void

methodpublicinitialize() : void

Documentation was generated by phpDocumentor 2.2.0 .