protected function loadOrCreateBaseModel($tableName, $options = [])
 {
     $model = new DatabaseTableModel();
     if (!$tableName) {
         $model->name = $this->getPluginCode()->toDatabasePrefix() . '_';
         return $model;
     }
     $model->load($tableName);
     return $model;
 }
 protected function getTableList($pluginCode)
 {
     $result = DatabaseTableModel::listPluginTables($pluginCode);
     return $result;
 }
Exemplo n.º 3
0
 public function getDatabaseTableOptions()
 {
     $pluginCode = $this->getPluginCodeObj()->toCode();
     $tables = DatabaseTableModel::listPluginTables($pluginCode);
     return array_combine($tables, $tables);
 }