ViewTask Class Reference

Inheritance diagram for ViewTask:

Shell Object

List of all members.


Public Member Functions

 bake ($action, $content= '')
 execute ()
 getContent ($template=null, $vars=null)
 help ()
 initialize ()

Public Attributes

 $controllerName = null
 $controllerPath = null
 $path = VIEWS
 $plugin = null
 $scaffoldActions = array('index', 'view', 'add', 'edit')
 $tasks = array('Project', 'Controller')
 $template = null

Detailed Description

Definition at line 36 of file view.php.


Member Function Documentation

ViewTask::bake ( action,
content = '' 
)

Assembles and writes bakes the view file.

Parameters:
string $action Action to bake
string $content Content to write
Returns:
boolean Success public

Definition at line 289 of file view.php.

References $filename, $path, Shell::createFile(), Shell::err(), getContent(), and Inflector::underscore().

Referenced by execute().

ViewTask::execute (  ) 

Execution method always used for tasks

public

Definition at line 98 of file view.php.

References bake(), Inflector::camelize(), getContent(), low(), Configure::read(), and Inflector::underscore().

ViewTask::getContent ( template = null,
vars = null 
)

Builds content from template and variables

Parameters:
string $template file to use
array $vars passed for use in templates
Returns:
string content from template public

Definition at line 314 of file view.php.

References $path, $template, Shell::err(), Shell::hr(), and Configure::read().

Referenced by bake(), and execute().

ViewTask::help (  ) 

Displays help contents

public

Reimplemented from Shell.

Definition at line 356 of file view.php.

References Object::_stop(), Shell::hr(), and Shell::out().

ViewTask::initialize (  ) 

Override initialize

public

Reimplemented from Shell.

Definition at line 91 of file view.php.


Member Data Documentation

ViewTask::$controllerName = null

Definition at line 64 of file view.php.

ViewTask::$controllerPath = null

Definition at line 71 of file view.php.

ViewTask::$path = VIEWS

Definition at line 57 of file view.php.

Referenced by bake(), and getContent().

ViewTask::$plugin = null

Definition at line 43 of file view.php.

ViewTask::$scaffoldActions = array('index', 'view', 'add', 'edit')

Definition at line 85 of file view.php.

ViewTask::$tasks = array('Project', 'Controller')

Reimplemented from Shell.

Definition at line 50 of file view.php.

ViewTask::$template = null

Definition at line 78 of file view.php.

Referenced by getContent().


The documentation for this class was generated from the following file: