ViewTask Class Reference

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().
| 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 | ( | ) |
Member Data Documentation
| ViewTask::$path = VIEWS |
| ViewTask::$scaffoldActions = array('index', 'view', 'add', 'edit') |
| ViewTask::$tasks = array('Project', 'Controller') |
| ViewTask::$template = null |
The documentation for this class was generated from the following file:
- 1.2.x.x/cake/console/libs/tasks/view.php