Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
CRUDFiles Class Reference
+ Inheritance diagram for CRUDFiles:

Public Member Functions

 __construct (string $viewBase=' @framework/crud')
 To override for defining viewBase (default : @framework/crud)
 
 getViewIndex ()
 To override Returns the template for the index route (default : @framework/crud/index.html)
 
 getViewHome ()
 To override with MultiResourceCRUDController only Returns the template for the home route (default : @framework/crud/home.html)
 
 getViewItemHome ()
 To override with MultiResourceCRUDController only Returns the template for an item in home route (default : @framework/crud/itemHome.html)
 
 getViewNav ()
 To override with MultiResourceCRUDController only Returns the template for displaying models in a dropdown (default : @framework/crud/itemHome.html)
 
 getViewForm ()
 To override Returns the template for the edit and new instance routes (default : @framework/crud/form.html)
 
 getViewDisplay ()
 To override Returns the template for the display route (default : @framework/crud/display.html)
 
 getViewBaseTemplate ()
 Returns the base template for all Crud actions if getBaseTemplate return a base template filename.
 
 getBaseTemplate ()
 To override Returns the base template filename, default : null.
 
- Public Member Functions inherited from UrlsTrait
 getRouteRefresh ()
 To override Returns the route for refreshing the index route (default : /refresh_)
 
 getRouteDetails ()
 To override Returns the route for the detail route, when the user click on a dataTable row (default : /showDetail)
 
 getRouteDelete ()
 To override Returns the route for deleting an instance (default : /delete)
 
 getRouteEdit ()
 To override Returns the route for editing an instance (default : /edit)
 
 getRouteDisplay ()
 To override Returns the route for displaying an instance (default : /display)
 
 getRouteRefreshTable ()
 To override Returns the route for refreshing the dataTable (default : /refreshTable)
 
 getDetailClickURL ($model)
 To override Returns the url associated with a foreign key instance in list.
 

Protected Attributes

 $viewBase
 

Detailed Description

Author
jc

Definition at line 12 of file CRUDFiles.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $viewBase = '@framework/crud')

To override for defining viewBase (default : @framework/crud)

Definition at line 18 of file CRUDFiles.php.

Member Function Documentation

◆ getBaseTemplate()

getBaseTemplate ( )

To override Returns the base template filename, default : null.

Returns
string|null

Definition at line 96 of file CRUDFiles.php.

◆ getViewBaseTemplate()

getViewBaseTemplate ( )

Returns the base template for all Crud actions if getBaseTemplate return a base template filename.

Returns
string

Definition at line 87 of file CRUDFiles.php.

◆ getViewDisplay()

getViewDisplay ( )

To override Returns the template for the display route (default : @framework/crud/display.html)

Returns
string

Definition at line 78 of file CRUDFiles.php.

◆ getViewForm()

getViewForm ( )

To override Returns the template for the edit and new instance routes (default : @framework/crud/form.html)

Returns
string

Definition at line 68 of file CRUDFiles.php.

◆ getViewHome()

getViewHome ( )

To override with MultiResourceCRUDController only Returns the template for the home route (default : @framework/crud/home.html)

Returns
string

Definition at line 38 of file CRUDFiles.php.

◆ getViewIndex()

getViewIndex ( )

To override Returns the template for the index route (default : @framework/crud/index.html)

Returns
string

Definition at line 28 of file CRUDFiles.php.

◆ getViewItemHome()

getViewItemHome ( )

To override with MultiResourceCRUDController only Returns the template for an item in home route (default : @framework/crud/itemHome.html)

Returns
string

Definition at line 48 of file CRUDFiles.php.

◆ getViewNav()

getViewNav ( )

To override with MultiResourceCRUDController only Returns the template for displaying models in a dropdown (default : @framework/crud/itemHome.html)

Returns
string

Definition at line 58 of file CRUDFiles.php.

Field Documentation

◆ $viewBase

$viewBase
protected

Definition at line 13 of file CRUDFiles.php.


The documentation for this class was generated from the following file: