Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
CRUDFiles.php
Go to the documentation of this file.
1<?php
2
4
6
12class CRUDFiles extends UrlsTrait {
13 protected $viewBase;
14
18 public function __construct(string $viewBase='@framework/crud') {
19 $this->viewBase = $viewBase;
20 }
21
28 public function getViewIndex():string {
29 return $this->viewBase . '/index.html';
30 }
31
38 public function getViewHome(): string {
39 return $this->viewBase . '/home.html';
40 }
41
48 public function getViewItemHome(): string {
49 return $this->viewBase . '/itemHome.html';
50 }
51
58 public function getViewNav(): string {
59 return $this->viewBase . '/nav.html';
60 }
61
68 public function getViewForm(): string {
69 return $this->viewBase . '/form.html';
70 }
71
78 public function getViewDisplay(): string {
79 return $this->viewBase . '/display.html';
80 }
81
87 public function getViewBaseTemplate(): string {
88 return $this->viewBase . '/baseTemplate.html';
89 }
90
96 public function getBaseTemplate() {
97 return;
98 }
99}
100
getViewIndex()
To override Returns the template for the index route (default : @framework/crud/index....
Definition CRUDFiles.php:28
__construct(string $viewBase=' @framework/crud')
To override for defining viewBase (default : @framework/crud)
Definition CRUDFiles.php:18
getViewDisplay()
To override Returns the template for the display route (default : @framework/crud/display....
Definition CRUDFiles.php:78
getViewNav()
To override with MultiResourceCRUDController only Returns the template for displaying models in a dro...
Definition CRUDFiles.php:58
getViewHome()
To override with MultiResourceCRUDController only Returns the template for the home route (default : ...
Definition CRUDFiles.php:38
getViewForm()
To override Returns the template for the edit and new instance routes (default : @framework/crud/form...
Definition CRUDFiles.php:68
getViewBaseTemplate()
Returns the base template for all Crud actions if getBaseTemplate return a base template filename.
Definition CRUDFiles.php:87
getBaseTemplate()
To override Returns the base template filename, default : null.
Definition CRUDFiles.php:96
getViewItemHome()
To override with MultiResourceCRUDController only Returns the template for an item in home route (def...
Definition CRUDFiles.php:48
Contains all methods returning the urls for CRUDControllers.
Definition UrlsTrait.php:11