TStandardFormList
extends TPage
in package
Uses
AdiantiStandardFormListTrait
Standard page controller for form/listings
Tags
Table of Contents
Properties
- $afterSaveAction : mixed
- $criteria : mixed
- $datagrid : mixed
- $direction : mixed
- $filterField : mixed
- $form : mixed
- $limit : mixed
- $loaded : mixed
- $order : mixed
- $pageNavigation : mixed
- $transformCallback : mixed
- $useMessages : mixed
- $body : mixed
- $constructed : mixed
- $loadedcss : mixed
- $loadedjs : mixed
- $registeredcss : mixed
Methods
- __construct() : mixed
- Class Constructor
- __set() : mixed
- Intercepts whenever someones assign a new property's value
- Delete() : mixed
- method Delete() Delete a record
- getClassName() : mixed
- Return the Page name
- getLoadedCSS() : mixed
- Return the loaded Cascade Stylesheet files
- getLoadedJS() : mixed
- Return the loaded JavaScript files
- getTargetContainer() : mixed
- Return target container
- include_css() : mixed
- Include a specific Cascading Stylesheet to this page
- include_js() : mixed
- Include a specific JavaScript function to this page
- isMobile() : mixed
- Discover if the browser is mobile device
- onClear() : mixed
- Clear form
- onDelete() : mixed
- method onDelete() executed whenever the user clicks at the delete button Ask if the user really wants to delete the record
- onEdit() : mixed
- method onEdit() Executed whenever the user clicks at the edit button da datagrid
- onReload() : mixed
- method onReload() Load the datagrid with the database objects
- onSave() : mixed
- method onSave() Executed whenever the user clicks at the save button
- openFile() : mixed
- Open a File Dialog
- openPage() : mixed
- Open a page in new tab
- register_css() : mixed
- Register a specific Cascading Stylesheet to this page
- run() : mixed
- Interprets an action based at the URL parameters
- setAfterSaveAction() : mixed
- method setAfterSaveAction() Define after save action
- setCriteria() : mixed
- method setCriteria() Define the criteria
- setDefaultOrder() : mixed
- Define the default order
- setLimit() : mixed
- method setLimit() Define the record limit
- setPageName() : mixed
- Set page name
- setPageTitle() : mixed
- Change page title
- setTargetContainer() : mixed
- Set target container for page content
- setTransformer() : mixed
- Define a callback method to transform objects before load them into datagrid
- setUseMessages() : mixed
- Define if will use messages after operations
- show() : mixed
- Decide wich action to take and show the page
Properties
$afterSaveAction
protected
mixed
$afterSaveAction
$criteria
protected
mixed
$criteria
$datagrid
protected
mixed
$datagrid
$direction
protected
mixed
$direction
$filterField
protected
mixed
$filterField
$form
protected
mixed
$form
$limit
protected
mixed
$limit
$loaded
protected
mixed
$loaded
$order
protected
mixed
$order
$pageNavigation
protected
mixed
$pageNavigation
$transformCallback
protected
mixed
$transformCallback
$useMessages
protected
mixed
$useMessages
$body
private
mixed
$body
$constructed
private
mixed
$constructed
$loadedcss
private
static mixed
$loadedcss
$loadedjs
private
static mixed
$loadedjs
$registeredcss
private
static mixed
$registeredcss
Methods
__construct()
Class Constructor
public
__construct() : mixed
__set()
Intercepts whenever someones assign a new property's value
public
__set( $name, $value) : mixed
Parameters
Delete()
method Delete() Delete a record
public
Delete(mixed $param) : mixed
Parameters
- $param : mixed
getClassName()
Return the Page name
public
getClassName() : mixed
getLoadedCSS()
Return the loaded Cascade Stylesheet files
public
static getLoadedCSS() : mixed
Tags
getLoadedJS()
Return the loaded JavaScript files
public
static getLoadedJS() : mixed
Tags
getTargetContainer()
Return target container
public
getTargetContainer() : mixed
include_css()
Include a specific Cascading Stylesheet to this page
public
static include_css( $css) : mixed
Parameters
include_js()
Include a specific JavaScript function to this page
public
static include_js( $js) : mixed
Parameters
isMobile()
Discover if the browser is mobile device
public
static isMobile() : mixed
onClear()
Clear form
public
onClear(mixed $param) : mixed
Parameters
- $param : mixed
onDelete()
method onDelete() executed whenever the user clicks at the delete button Ask if the user really wants to delete the record
public
onDelete(mixed $param) : mixed
Parameters
- $param : mixed
onEdit()
method onEdit() Executed whenever the user clicks at the edit button da datagrid
public
onEdit(mixed $param) : mixed
Parameters
- $param : mixed
onReload()
method onReload() Load the datagrid with the database objects
public
onReload([mixed $param = NULL ]) : mixed
Parameters
- $param : mixed = NULL
onSave()
method onSave() Executed whenever the user clicks at the save button
public
onSave() : mixed
openFile()
Open a File Dialog
public
static openFile( $file[, mixed $basename = null ]) : mixed
Parameters
openPage()
Open a page in new tab
public
static openPage(mixed $page) : mixed
Parameters
- $page : mixed
register_css()
Register a specific Cascading Stylesheet to this page
public
static register_css( $cssname, $csscode) : mixed
Parameters
run()
Interprets an action based at the URL parameters
public
run() : mixed
setAfterSaveAction()
method setAfterSaveAction() Define after save action
public
setAfterSaveAction(mixed $action) : mixed
Parameters
- $action : mixed
setCriteria()
method setCriteria() Define the criteria
public
setCriteria(mixed $criteria) : mixed
Parameters
- $criteria : mixed
setDefaultOrder()
Define the default order
public
setDefaultOrder( $order[, mixed $direction = 'asc' ]) : mixed
Parameters
setLimit()
method setLimit() Define the record limit
public
setLimit(mixed $limit) : mixed
Parameters
- $limit : mixed
setPageName()
Set page name
public
setPageName(mixed $name) : mixed
Parameters
- $name : mixed
setPageTitle()
Change page title
public
static setPageTitle(mixed $title) : mixed
Parameters
- $title : mixed
setTargetContainer()
Set target container for page content
public
setTargetContainer(mixed $container) : mixed
Parameters
- $container : mixed
setTransformer()
Define a callback method to transform objects before load them into datagrid
public
setTransformer(mixed $callback) : mixed
Parameters
- $callback : mixed
setUseMessages()
Define if will use messages after operations
public
setUseMessages(mixed $bool) : mixed
Parameters
- $bool : mixed
show()
Decide wich action to take and show the page
public
show() : mixed