Ubiquity
2.0.3
php rapid development framework
CRUDController.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\controllers
;
4
5
use
Ubiquity\orm\DAO
;
6
7
abstract
class
CRUDController
extends
ControllerBase
{
8
protected
$model
;
9
protected
$gui
;
10
11
abstract
protected
function
getGui
();
12
16
public
function
index
() {
17
$objects =
DAO::getAll
( $this->model );
18
return
$this->gui->renderObjects ( $objects );
19
}
20
}
21
Ubiquity\controllers\CRUDController\getGui
getGui()
Ubiquity\controllers\ControllerBase
Definition:
ControllerBase.php:7
Ubiquity\orm\DAO\getAll
static getAll($className, $condition='', $loadManyToOne=true, $loadOneToMany=false, $useCache=NULL)
Returns an array of $className objects from the database.
Definition:
DAO.php:193
Ubiquity\controllers\CRUDController\index
index()
Default page : list all objects.
Definition:
CRUDController.php:16
DAO
Ubiquity\controllers\CRUDController
Definition:
CRUDController.php:7
Ubiquity\controllers\CRUDController\$gui
$gui
Definition:
CRUDController.php:9
Ubiquity\controllers
This file is part of Ubiquity framework.
Ubiquity\controllers\CRUDController\$model
$model
Definition:
CRUDController.php:8
Ubiquity
controllers
CRUDController.php
Generated on Thu May 31 2018 02:05:13 for
Ubiquity
by
doxygen
1.8.13