Tool/Project/Provider/Model.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Tool
- Subpackage
- Framework
- Version
- $Id: Model.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Tool_Project_Provider_Model
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
- Parent(s)
- \Zend_Tool_Project_Provider_Abstract < \Zend_Tool_Framework_Provider_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
NO_PROFILE_THROW_EXCEPTION
= true
NO_PROFILE_RETURN_FALSE
= falseProperties

bool $_isInitialized = falsefalseDetails- Type
- bool
- Inherited_from
- \Zend_Tool_Project_Provider_Abstract::$$_isInitialized

\Zend_Tool_Project_Profile $_loadedProfile = nullnullDetails
$_projectPath = nullnullDetails- Type
- n/a
- Inherited_from
- \Zend_Tool_Project_Provider_Abstract::$$_projectPath

\Zend_Tool_Framework_Registry_Interface $_registry = nullnullDetailsMethods

_findProfileDirectory( $projectDirectory = null, $searchParentDirectories = true) : void| Name | Type | Description |
|---|---|---|
| $projectDirectory | ||
| $searchParentDirectories |

_getContentForContext( $context, $methodName, $parameters) : void| Name | Type | Description |
|---|---|---|
| $context | ||
| $methodName | ||
| $parameters |

_getModelsDirectoryResource(\Zend_Tool_Project_Profile $profile, string $moduleName = null) : \Zend_Tool_Project_Profile_Resource_getModelsDirectoryResource()
| Name | Type | Description |
|---|---|---|
| $profile | \Zend_Tool_Project_Profile | |
| $moduleName | string |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

_getProfile( $loadProfileFlag = self::NO_PROFILE_THROW_EXCEPTION) : \Zend_Tool_Project_ProfileReturn the currently loaded profile
Inherited from: \Zend_Tool_Project_Provider_Abstract::_getProfile()| Name | Type | Description |
|---|---|---|
| $loadProfileFlag |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile |

_hasProjectProviderDirectory( $pathToProfileFile) : void| Name | Type | Description |
|---|---|---|
| $pathToProfileFile |

_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
Inherited from: \Zend_Tool_Project_Provider_Abstract::_loadContextClassesIntoRegistry()| Name | Type | Description |
|---|---|---|
| $contextClasses | array |

_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.
Inherited from: \Zend_Tool_Project_Provider_Abstract::_loadProfile(). 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
| Name | Type | Description |
|---|---|---|
| $loadProfileFlag | bool | Whether or not to throw an exception when no profile is found |
| $projectDirectory | string | The project directory to use to search |
| $searchParentDirectories | bool | Whether or not to search upper level direcotries |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile |

_loadProfileRequired() : \Zend_Tool_Project_ProfileLoad the project profile from the current working directory, if not throw exception
Inherited from: \Zend_Tool_Project_Provider_Abstract::_loadProfileRequired()| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile |

create(string $name, string $module = null) : voidCreate a new model
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $module | string |

createResource( $profile, $modelName, $moduleName = null) : void| Name | Type | Description |
|---|---|---|
| $profile | ||
| $modelName | ||
| $moduleName |

getContextClasses() : void
hasResource(\Zend_Tool_Project_Profile $profile, string $modelName, string $moduleName = null) : \Zend_Tool_Project_Profile_ResourcehasResource()
| Name | Type | Description |
|---|---|---|
| $profile | \Zend_Tool_Project_Profile | |
| $modelName | string | |
| $moduleName | string |
| Type | Description |
|---|---|
| \Zend_Tool_Project_Profile_Resource |

setRegistry(\Zend_Tool_Framework_Registry_Interface $registry) : \Zend_Tool_Framework_Provider_AbstractsetRegistry() - required by Zend_Tool_Framework_Registry_EnabledInterface
Inherited from: \Zend_Tool_Framework_Provider_Abstract::setRegistry()\Zend_Tool_Project_Provider_Abstract::setRegistry()| Name | Type | Description |
|---|---|---|
| $registry | \Zend_Tool_Framework_Registry_Interface |
| Type | Description |
|---|---|
| \Zend_Tool_Framework_Provider_Abstract |