diff options
Diffstat (limited to 'classes/SchemaDb.php')
-rw-r--r-- | classes/SchemaDb.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/classes/SchemaDb.php b/classes/SchemaDb.php new file mode 100644 index 0000000..ac5a40e --- /dev/null +++ b/classes/SchemaDb.php @@ -0,0 +1,29 @@ +<?php + +class SchemaDb { + /** + * Schema format example. + */ + public function default_schema() { + $schema = array( + 'db' => array( + 'name' => 'dbname', + 'charset' => 'charset', + ), + 'fields' => array( + 1 => array( + 'name' => 'field_name', + 'size' => 1000, + 'format' => 'numeric', + 'repeat' => TRUE, + 'subfields' => array( + 'a' => 'test', + 'b' => 'test2', + ), + ), + ), + ); + + return $schema; + } +} |