API Documentation

Tool/Project/Provider/Abstract.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Tool
subpackage
Framework
version
$Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Tool_Project_Provider_Abstract

Description

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.

Zend_Tool_Project_Provider_Abstract

Extends from
Zend_Tool_Framework_Provider_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Tool
Constants
NO_PROFILE_THROW_EXCEPTION
NO_PROFILE_RETURN_FALSE
Properties
$_isInitialized
$_projectPath
$_loadedProfile
Methods
__construct
getContextClasses
_loadProfile
_loadProfileRequired
_getProfile
_storeProfile
_getContentForContext
_loadContextClassesIntoRegistry

Description

Constants

NO_PROFILE_THROW_EXCEPTION

 NO_PROFILE_THROW_EXCEPTION = 'true'

Details

value
true

NO_PROFILE_RETURN_FALSE

 NO_PROFILE_RETURN_FALSE = 'false'

Details

value
false

Properties

$_isInitialized

bool $_isInitialized = 'false'

Details

$_isInitialized
bool
visibility
protected
default
false
final
false
static
true

$_loadedProfile

Zend_Tool_Project_Profile $_loadedProfile = 'null'

Details

$_loadedProfile
Zend_Tool_Project_Profile
visibility
protected
default
null
final
false
static
false

$_projectPath

 $_projectPath = 'null'

Details

visibility
protected
default
null
final
false
static
false

Methods

__construct

__construct( ) :

constructor

YOU SHOULD NOT OVERRIDE THIS, unless you know what you are doing

Details
visibility
public
final
false
static
false

_getContentForContext

_getContentForContext(  $context,  $methodName,  $parameters ) :
Arguments
$context
$methodName
$parameters
Details
visibility
protected
final
false
static
false

_getProfile

_getProfile(  $loadProfileFlag = self ) : Zend_Tool_Project_Profile

Return the currently loaded profile

Arguments
$loadProfileFlag
Details
visibility
protected
final
false
static
false

_loadContextClassesIntoRegistry

_loadContextClassesIntoRegistry( array $contextClasses ) :

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

Arguments
$contextClasses
array
Details
visibility
private
final
false
static
false

_loadProfile

_loadProfile( $loadProfileFlag $loadProfileFlag = self, $projectDirectory $projectDirectory = null, $searchParentDirectories $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
Arguments
$loadProfileFlag
$loadProfileFlag
bool Whether or not to throw an exception when no profile is found
$projectDirectory
$projectDirectory
string The project directory to use to search
$searchParentDirectories
$searchParentDirectories
bool Whether or not to search upper level direcotries
Details
visibility
protected
final
false
static
false

_loadProfileRequired

_loadProfileRequired( ) : Zend_Tool_Project_Profile

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

Details
visibility
protected
final
false
static
false

_storeProfile

_storeProfile( ) :

_storeProfile()

This method will store the profile into its proper location

Details
visibility
protected
final
false
static
false

getContextClasses

getContextClasses( ) :
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.