Class DbController
All database requests are handled by this controller, even the DbApiController ones, although DbApiController is leaner on the response i.e. json.
- Controller
- DbController
protected
|
|
public
type
|
|
public
|
|
public
type
|
|
public
type
|
|
public
type
|
|
public
|
|
protected
|
|
protected
|
|
protected
type
|
#
__getTableActionView( type $tableName, type $viewId, type $action )
Get a record from _db_pages as an stdClass object |
protected
|
|
public
type
|
|
protected
|
#
__indexByPk( mixed $array, mixed $pkFieldName )
Index an array of records (of type StdClass) according to the pk value |
protected
|
#
__indexByValue( mixed $array, mixed $fieldName )
Index an array of records according to the value of $fieldName |
protected
|
|
protected
array
|
|
public
type
|
|
protected
|
#
__makeParams( type $status, type $message, type $data, mixed $tableName, mixed $action )
Create a standard params object that will be passed to the view. The params object (instance of Laravella\Crud\Params is at the heart of every view and contains all the variables that will be passed to the view, from the DbController. |
public
type
|
|
public
type
|
|
public
type
|
|
public
type
|
|
public
|
|
protected
|
#
__getPkSelects( type $meta )
Loop through foreign keys and generate an array of select boxes for each related primary key |
protected
|
#
__getSelect( mixed $table, mixed $valueField, mixed $textField )
Get a select array(object(value, text)) |
protected
type
|
#
_customAction( type $parameters )
This is for custom front-end actions that simply needs the Params object and defines it's own view via the table_action_view table |
public
|
|
public
string
|
string |
SUCCESS
|
"success" |
|
string |
INFO
|
"info" |
|
string |
IMPORTANT
|
"important" |
|
string |
HTML
|
"text/html" |
|
string |
XML
|
"text/xml" |
|
string |
JSON
|
"text/json" |
public
string
|
$displayType |
|