diff options
author | Silvio <silvio@devlet.com.br> | 2010-03-30 12:01:20 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-03-30 12:01:20 -0300 |
commit | 1d960150de785261da282e1505360e97ee144493 (patch) | |
tree | 349dd6782ba56be4f64ff31b7b587759cad2f154 /classes/SchemaDb.php | |
parent | f3af45962c3b26782479f3b8ab5fa09d62a0f483 (diff) | |
download | cinisis-1d960150de785261da282e1505360e97ee144493.tar.gz cinisis-1d960150de785261da282e1505360e97ee144493.tar.bz2 |
Adding PhpIsis implementation of IsisDb
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; + } +} |