/** * @deprecated */ function generateAll($f = array()) { rex_yform_manager_table_api::generateTablesAndFields(isset($f['delete_fields']) ? $f['delete_fields'] : false); }
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; }