Ubiquity  2.0.0
php rapid development framework
UbiquityMyAdminData.php
Go to the documentation of this file.
1 <?php
5 
12 
16  public function getTableNames(){
17  return DAO::$db->getTablesName();
18  }
19 
24  public function getFieldNames($model){
25  return OrmUtils::getSerializableFields($model);
26  }
27 
32  public function getFormFieldNames($model){
33  return OrmUtils::getSerializableFields($model);
34  }
35 
43  public function getManyToManyDatas($fkClass,$instance,$member){
44  return DAO::getAll($fkClass);
45  }
46 
50  public function getUpdateOneToManyInForm() {
51  return false;
52  }
53 
57  public function getUpdateManyToManyInForm() {
58  return true;
59  }
60 
64  public function getUpdateManyToOneInForm() {
65  return true;
66  }
67 }
getManyToManyDatas($fkClass, $instance, $member)
Returns a list of $fkClass objects to select a value for $member.
The base class for displaying datas in UbiquityMyAdminController.
static $db
Definition: DAO.php:22
static getAll($className, $condition='', $loadManyToOne=true, $loadOneToMany=false, $useCache=NULL)
Returns an array of $className objects from the database.
Definition: DAO.php:193
getFieldNames($model)
Returns the fields to display in the showTable action for $model.
getTableNames()
Returns the table names to display in the left admin menu.
getFormFieldNames($model)
Returns the fields to update in the edit an new action for $model.
static getSerializableFields($class)
Definition: OrmUtils.php:216