a base class for crud controllers, for DAO which have a primary key based on
two fields, a "static" field (a field that we know the value and which is a criteria to to select all viewed record), and a "dynamic" field (the value of the field is created by the user or autoincremented)
Located in /controllers/jControllerDaoCrudDfk.class.php (line 25)
jController | --jControllerDaoCrudDfk
selector of the dao to use for the crud.
It should be filled by child controller.
the jDb profile to use with the dao
name of the request parameter and of the field in the dao, for the dynamic primary key
template to display the form
selector of the form to use to edit and display a record It should be filled by child controller.
number of record to display in the list page
template to display the list of records
name of the parameter which contains the page offset, for the index action
list of properties to show in the list page if empty list (default), it shows all properties.
this property is only usefull when you use the default "list" template
list of properties which serve to order the record list.
if empty list (default), the list is in a natural order. keys are properties name, and values are "asc" or "desc".
id for the "pseudo" form used to show a record. You can change it if the default one corresponds to a possible id in your dao.
name of the request parameter and of the field in the dao, for the static primary key
the template variable name to display a CRUD content in the main template
of the html response
full path to the directory where uploaded files will be stored automatically by jForms.
Set it to false if you want to handle yourself the uploaded files. Set it with an empty string if you want to stored files in the default var/uploads directory.
template to display a record
Inherited from jController
jController::$pluginParams
jController::$request
displays a forms to edit an existing record. The form should be
prepared with the preupdate before, so a refresh of the page won't cause a reset of the form
prepare a form in order to edit an existing record, and redirect to the editupdate action
overload this method if you wan to do additionnal things after the creation of a record. For example, you can handle here the uploaded files. If you do such handling, set the uploadsDirectory property to false, to prevent the default behavior on uploaded files in the controller.
overload this method if you wan to do additionnal things after the update of a record. For example, you can handle here the uploaded files. If you do such handling, set the uploadsDirectory property to false, to prevent the default behavior on uploaded files in the controller.
overload this method if you wan to do additionnal things on the dao generated by the
jFormsBase::prepareDaoFromControls method
overload this method if you wan to do additionnal things on the dao generated by the
jFormsBase::prepareDaoFromControls method
you can do your own data check of a form by overloading this method.
You can also do some other things. It is called only if the $form->check() is ok. and before the save of the data.
overload this method if you wan to do additionnal things on the response and on the edit template during the create action.
overload this method if you want to do additionnal things before the deletion of a record
overload this method if you wan to do additionnal things on the response and on the edit template during the editupdate action.
returned the selector of the action corresponding of the given method of the current controller.
Returned a simple html response to display CRUD contents. You can override this
method to return a personnalized response
overload this method if you wan to do additionnal things on the response and on the list template during the index action.
overload this method if you wan to do additionnal conditions to the index's select during the index action.
overload this method if you want to do additionnal during the precreate action
overload this method if you want to do additionnal things during preupdate action
overload this method if you want to do additionnal things on the response and on the view template during the view action.
Inherited From jController
jController::__construct()
jController::boolParam()
jController::floatParam()
jController::getResponse()
jController::intParam()
jController::param()
jController::params()
Documentation generated on Thu, 19 Sep 2013 00:02:56 +0200 by phpDocumentor 1.4.3