Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
Zend_Tool_Project_Provider_Controller Class Reference

Public Member Functions

 create ($name, $indexActionIncluded=true, $module=null)
 Create a new controller.
 
- Public Member Functions inherited from Zend_Tool_Project_Provider_Abstract
 initialize ()
 
 getContextClasses ()
 
- Public Member Functions inherited from Zend_Tool_Framework_Provider_Abstract
 setRegistry (Zend_Tool_Framework_Registry_Interface $registry)
 setRegistry() - required by Zend_Tool_Framework_Registry_EnabledInterface
 

Static Public Member Functions

static createResource (Zend_Tool_Project_Profile $profile, $controllerName, $moduleName=null)
 createResource will create the controllerFile resource at the appropriate location in the profile.
 
static hasResource (Zend_Tool_Project_Profile $profile, $controllerName, $moduleName=null)
 hasResource()
 

Static Protected Member Functions

static _getControllersDirectoryResource (Zend_Tool_Project_Profile $profile, $moduleName=null)
 _getControllersDirectoryResource()
 

Additional Inherited Members

- Public Attributes inherited from Zend_Tool_Project_Provider_Abstract
const NO_PROFILE_THROW_EXCEPTION = true
 
const NO_PROFILE_RETURN_FALSE = false
 
- Protected Member Functions inherited from Zend_Tool_Project_Provider_Abstract
 _loadProfile ($loadProfileFlag=self::NO_PROFILE_THROW_EXCEPTION, $projectDirectory=null, $searchParentDirectories=true)
 _getProject is designed to find if there is project file in the context of where the client has been called from.
 
 _findProfileDirectory ($projectDirectory=null, $searchParentDirectories=true)
 
 _loadProfileRequired ()
 Load the project profile from the current working directory, if not throw exception.
 
 _getProfile ($loadProfileFlag=self::NO_PROFILE_THROW_EXCEPTION)
 Return the currently loaded profile.
 
 _storeProfile ()
 _storeProfile()
 
 _getContentForContext (Zend_Tool_Project_Context_Interface $context, $methodName, $parameters)
 
 _hasProjectProviderDirectory ($pathToProfileFile)
 
- Protected Attributes inherited from Zend_Tool_Project_Provider_Abstract
 $_projectPath = null
 
 $_loadedProfile = null
 
- Static Protected Attributes inherited from Zend_Tool_Project_Provider_Abstract
static $_isInitialized = false
 

Member Function Documentation

static _getControllersDirectoryResource ( Zend_Tool_Project_Profile  $profile,
  $moduleName = null 
)
staticprotected
create (   $name,
  $indexActionIncluded = true,
  $module = null 
)

Create a new controller.

Parameters
string$nameThe name of the controller to create, in camelCase.
bool$indexActionIncludedWhether or not to create the index action.
static createResource ( Zend_Tool_Project_Profile  $profile,
  $controllerName,
  $moduleName = null 
)
static

createResource will create the controllerFile resource at the appropriate location in the profile.

NOTE: it is your job to execute the create() method on the resource, as well as store the profile when done.

Parameters
Zend_Tool_Project_Profile$profile
string$controllerName
string$moduleName
Returns
Zend_Tool_Project_Profile_Resource
static hasResource ( Zend_Tool_Project_Profile  $profile,
  $controllerName,
  $moduleName = null 
)
static

hasResource()

Parameters
Zend_Tool_Project_Profile$profile
string$controllerName
string$moduleName
Returns
boolean