コード例 #1
0
ファイル: manager.php プロジェクト: VIEWSION/redaxo_yform
 /**
  * @deprecated
  */
 function generateAll($f = array())
 {
     rex_yform_manager_table_api::generateTablesAndFields(isset($f['delete_fields']) ? $f['delete_fields'] : false);
 }
コード例 #2
0
ファイル: table_api.php プロジェクト: xong/redaxo_yform
 public static function importTablesets($tableset_content)
 {
     $tableset_content = json_decode($tableset_content, true);
     foreach ($tableset_content as $table) {
         if (!isset($table["table"]) || !isset($table["fields"])) {
             throw new Exception('json format wrong');
         }
         $settable = $table["table"];
         $fields = $table["fields"];
         rex_yform_manager_table_api::setTable($settable, $fields);
     }
     rex_yform_manager_table_api::generateTablesAndFields();
     return true;
 }