aboutsummaryrefslogtreecommitdiff
path: root/classes/SchemaDb.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-03-30 12:01:20 -0300
committerSilvio <silvio@devlet.com.br>2010-03-30 12:01:20 -0300
commit1d960150de785261da282e1505360e97ee144493 (patch)
tree349dd6782ba56be4f64ff31b7b587759cad2f154 /classes/SchemaDb.php
parentf3af45962c3b26782479f3b8ab5fa09d62a0f483 (diff)
downloadcinisis-1d960150de785261da282e1505360e97ee144493.tar.gz
cinisis-1d960150de785261da282e1505360e97ee144493.tar.bz2
Adding PhpIsis implementation of IsisDb
Diffstat (limited to 'classes/SchemaDb.php')
-rw-r--r--classes/SchemaDb.php29
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;
+ }
+}