Tool/Project/Provider/Controller.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_Project_Provider_Controller

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_Project_Provider_Abstract < \Zend_Tool_Framework_Provider_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodprotected_getControllersDirectoryResource(\Zend_Tool_Project_Profile $profile, string $moduleName = null) : \Zend_Tool_Project_Profile_Resource
static

_getControllersDirectoryResource()

Parameters
NameTypeDescription
$profile\Zend_Tool_Project_Profile
$moduleNamestring
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource
methodpubliccreate(string $name, bool $indexActionIncluded = true,  $module = null) : void

Create a new controller

Parameters
NameTypeDescription
$namestring

The name of the controller to create, in camelCase.

$indexActionIncludedbool

Whether or not to create the index action.

$module
methodpubliccreateResource(\Zend_Tool_Project_Profile $profile, string $controllerName, string $moduleName = null) : \Zend_Tool_Project_Profile_Resource
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
NameTypeDescription
$profile\Zend_Tool_Project_Profile
$controllerNamestring
$moduleNamestring
Returns
TypeDescription
\Zend_Tool_Project_Profile_Resource
methodpublichasResource(\Zend_Tool_Project_Profile $profile, string $controllerName, string $moduleName = null) : boolean
static

hasResource()

Parameters
NameTypeDescription
$profile\Zend_Tool_Project_Profile
$controllerNamestring
$moduleNamestring
Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.2.0 .