Public Member Functions | Protected Member Functions | Protected Attributes

module_scaffold_controller Class Reference

Inheritance diagram for module_scaffold_controller:
module_abstract object

Public Member Functions

 exec (array $prm=array())
 callbackTpl (array $prm)
 getReponse ()
 publish (array $prm=array())
 getName ()
 getAttr ($name)
 setAttr ($name, $value)
 getCfg ()

Protected Member Functions

 afterInit ()
 execIndex ($prm=null)
 execShow ($prm=null)
 execScaffoldIndex ($prm=null)
 isScaffolded ()
 execScaffoldList ($prm=null)
 execScaffoldMultiple ()
 multipleDelete (array $ids)
 hook ($action)
 execScaffoldShow ($prm=null)
 execScaffoldAdd ($prm=null)
 execScaffoldEdit ($prm=null)
 addEditForm ($action, $id=null)
 execScaffoldDelete ($prm=null)
 getFields ($action)
 beforeExec ($realExec)
 middleExec ($realExec)
 afterExec ($realExec)
 getViewAction ()
 setViewAction ($action)
 getViewVar ($name)
 setViewVar ($name, $value)
 setViewVars (array $values)
 preFetch ()
 isCacheEnabled ()
 addCacheTag ($val)
 beforeInit ()

Protected Attributes

 $table = null
 $row = null
 $filterTable
 $dataTable
 $form = null
 $cols
 $related
 $fields
 $indexPage
 $ids
 $prmExec
 $tpl
 $cfg

Detailed Description

Scaffold controller to dynamically create administration

Definition at line 10 of file nyro/module/scaffold/controller.class.php.


Member Function Documentation

addCacheTag ( val  )  [protected, inherited]

Add a cache tag

Parameters:
mixed $val The tag to add

Definition at line 228 of file module/abstract.class.php.

addEditForm ( action,
id = null 
) [protected]

Definition at line 283 of file nyro/module/scaffold/controller.class.php.

afterExec ( realExec  )  [protected, inherited]

Definition at line 135 of file module/abstract.class.php.

afterInit (  )  [protected]

Call just after the configuration initialisation

Reimplemented from module_abstract.

Definition at line 83 of file nyro/module/scaffold/controller.class.php.

beforeExec ( realExec  )  [protected, inherited]

Definition at line 125 of file module/abstract.class.php.

beforeInit (  )  [protected, inherited]

Call just before the configuration initialisation

Reimplemented in form_file.

Definition at line 35 of file object.class.php.

callbackTpl ( array $  prm  )  [inherited]

Definition at line 112 of file module/abstract.class.php.

exec ( array $  prm = array()  )  [final, inherited]

Every called action must pass by this function

Parameters:
null|string $prm Actopn Parameters
Exceptions:
nException if wrong parameter or other errors

Definition at line 40 of file module/abstract.class.php.

execIndex ( prm = null  )  [protected]

Definition at line 111 of file nyro/module/scaffold/controller.class.php.

execScaffoldAdd ( prm = null  )  [protected]

Definition at line 272 of file nyro/module/scaffold/controller.class.php.

execScaffoldDelete ( prm = null  )  [protected]

Definition at line 319 of file nyro/module/scaffold/controller.class.php.

execScaffoldEdit ( prm = null  )  [protected]

Definition at line 279 of file nyro/module/scaffold/controller.class.php.

execScaffoldIndex ( prm = null  )  [protected]

Definition at line 120 of file nyro/module/scaffold/controller.class.php.

execScaffoldList ( prm = null  )  [protected]

Definition at line 142 of file nyro/module/scaffold/controller.class.php.

execScaffoldMultiple (  )  [protected]

Definition at line 203 of file nyro/module/scaffold/controller.class.php.

execScaffoldShow ( prm = null  )  [protected]

Definition at line 252 of file nyro/module/scaffold/controller.class.php.

execShow ( prm = null  )  [protected]

Definition at line 116 of file nyro/module/scaffold/controller.class.php.

getAttr ( name  )  [inherited]

Get an attribute

Parameters:
string $name Attribute name
Returns:
mixed|null The attribute or null if not set

Reimplemented in response_proxy.

Definition at line 48 of file object.class.php.

getCfg (  )  [inherited]

Get the configuration object

Returns:
config

Definition at line 67 of file object.class.php.

getFields ( action  )  [protected]

Get the Fields for a specific actions

Parameters:
string $action Action name (list, add, edit or show)
Returns:
array

Definition at line 336 of file nyro/module/scaffold/controller.class.php.

getName (  )  [inherited]

Get the module name

Returns:
string

Definition at line 240 of file module/abstract.class.php.

getReponse (  )  [inherited]

Definition at line 118 of file module/abstract.class.php.

getViewAction (  )  [protected, inherited]

Get the current view action

Returns:
string

Definition at line 142 of file module/abstract.class.php.

getViewVar ( name  )  [protected, inherited]

Get a variable for the view

Parameters:
string $name Variable name
Returns:
mixed|null The value or null if not existing

Definition at line 165 of file module/abstract.class.php.

hook ( action  )  [protected]

Function to be rewritten in eventual child to change the way the scaffold works Available actions:

  • list, listFilter
  • show, formShow
  • formInit, formInitAdd, formInitEdit
  • add, formPostAdd, beforeAdd, afterAdd, formAdd
  • edit, formPostEdit, beforeEdit, afterEdit, formEdit
  • delete, beforeDelete, afterDelete
  • beforeMultipleDelete, afterMultipleDelete, beforeMultiple*, afterMultiple*
Parameters:
string $action

Definition at line 250 of file nyro/module/scaffold/controller.class.php.

isCacheEnabled (  )  [protected, inherited]

Check against the configuration if the current request should be cached

Returns:
bool True if enabled

Definition at line 214 of file module/abstract.class.php.

isScaffolded (  )  [protected]

Definition at line 138 of file nyro/module/scaffold/controller.class.php.

middleExec ( realExec  )  [protected, inherited]

Definition at line 130 of file module/abstract.class.php.

multipleDelete ( array $  ids  )  [protected]

Multiple delete action

Parameters:
array $ids

Definition at line 228 of file nyro/module/scaffold/controller.class.php.

preFetch (  )  [protected, inherited]

Function called just before fetching the TPL. This is useful to add cacheTag or change tpl properties

Definition at line 207 of file module/abstract.class.php.

publish ( array $  prm = array()  )  [inherited]

Publish the module to shown

Returns:
string The fetched view

Definition at line 193 of file module/abstract.class.php.

setAttr ( name,
value 
) [inherited]

Set an attribute

Parameters:
string $name Attribute name
mixed $value Attribute value

Reimplemented in response_proxy.

Definition at line 58 of file object.class.php.

setViewAction ( action  )  [protected, inherited]

Set the action which will use for the view

Parameters:
string $action

Definition at line 151 of file module/abstract.class.php.

setViewVar ( name,
value 
) [protected, inherited]

Add a variable to the view

Parameters:
string $name Variable name
mixed $value

Definition at line 175 of file module/abstract.class.php.

setViewVars ( array $  values  )  [protected, inherited]

Add variables to the view with an array

Parameters:
array $values

Definition at line 184 of file module/abstract.class.php.


Field Documentation

$cfg [protected, inherited]

Definition at line 17 of file object.class.php.

$cols [protected]

Definition at line 52 of file nyro/module/scaffold/controller.class.php.

$dataTable [protected]

Definition at line 38 of file nyro/module/scaffold/controller.class.php.

$fields [protected]

Definition at line 67 of file nyro/module/scaffold/controller.class.php.

$filterTable [protected]

Definition at line 31 of file nyro/module/scaffold/controller.class.php.

$form = null [protected]

Definition at line 45 of file nyro/module/scaffold/controller.class.php.

$ids [protected]

Definition at line 81 of file nyro/module/scaffold/controller.class.php.

$indexPage [protected]

Definition at line 74 of file nyro/module/scaffold/controller.class.php.

$prmExec [protected, inherited]

Definition at line 17 of file module/abstract.class.php.

$related [protected]

Definition at line 59 of file nyro/module/scaffold/controller.class.php.

$row = null [protected]

Definition at line 24 of file nyro/module/scaffold/controller.class.php.

$table = null [protected]

Definition at line 17 of file nyro/module/scaffold/controller.class.php.

$tpl [protected, inherited]

Definition at line 24 of file module/abstract.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations
Generated on Tue May 8 2012 16:02:25 for nyroFwk by doxygen 1.7.1