Documentation

GenerateTask extends Task
in package

Task managing all basic generations

Table of Contents

$camelize  : Camelize
Object to camelize texts
$uncamelize  : Uncamelize
Object to uncamelize texts
__construct()  : mixed
Init class variables
appAction()  : void
Generate application
buildAction()  : void
Generate Js builds
controllerAction()  : void
Generate controller / actions / views
formAction()  : void
Generate forms classes
jsAction()  : void
Generate Js
mainAction()  : void
Main task action (not implemented)
modelAction()  : void
Generate model from table
projectAction()  : void
Generate project
sassAction()  : void
Generate Sass
scssAction()  : void
Generate Scss
setActions()  : void
Set task actions
taskAction()  : void
Generate task / actions

Properties

$camelize

Object to camelize texts

private Camelize $camelize

$uncamelize

Object to uncamelize texts

private Uncamelize $uncamelize

Methods

__construct()

Init class variables

public __construct() : mixed
Return values
mixed

appAction()

Generate application

public appAction(string $appName) : void
Parameters
$appName : string

Name of the app to create

Return values
void

buildAction()

Generate Js builds

public buildAction([null|string $controller = null ][, null|string $actions = null ]) : void
Parameters
$controller : null|string = null
$actions : null|string = null
Return values
void

controllerAction()

Generate controller / actions / views

public controllerAction(string $controller[, null|string $actions = null ]) : void
Parameters
$controller : string

Controller name

$actions : null|string = null
Return values
void

formAction()

Generate forms classes

public formAction(string $names) : void
Parameters
$names : string

Names list seperated by a comma, should correspond to a model

Return values
void

jsAction()

Generate Js

public jsAction(string $controller[, null|string $actions = '' ]) : void
Parameters
$controller : string

Controller name

$actions : null|string = ''
Return values
void

mainAction()

Main task action (not implemented)

public mainAction() : void
Return values
void

modelAction()

Generate model from table

public modelAction(string $table) : void
Parameters
$table : string

Name of the table, must exists in databasee

Return values
void

projectAction()

Generate project

public projectAction() : void
Return values
void

sassAction()

Generate Sass

public sassAction([null|string $controller = null ][, null|string $actions = null ]) : void
Parameters
$controller : null|string = null
$actions : null|string = null
Return values
void

scssAction()

Generate Scss

public scssAction(string $controller[, null|string $actions = null ]) : void
Parameters
$controller : string

Controller name

$actions : null|string = null
Return values
void

setActions()

Set task actions

public setActions(string $actions, string &$source) : void
Parameters
$actions : string
$source : string

Task content

Return values
void

taskAction()

Generate task / actions

public taskAction(string $task[, null|string $actions = '' ]) : void
Parameters
$task : string

Task name

$actions : null|string = ''
Return values
void

Search results