aboutsummaryrefslogtreecommitdiff
path: root/interface.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 /interface.php
parentf3af45962c3b26782479f3b8ab5fa09d62a0f483 (diff)
downloadcinisis-1d960150de785261da282e1505360e97ee144493.tar.gz
cinisis-1d960150de785261da282e1505360e97ee144493.tar.bz2
Adding PhpIsis implementation of IsisDb
Diffstat (limited to 'interface.php')
-rw-r--r--interface.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/interface.php b/interface.php
new file mode 100644
index 0000000..5ba5a55
--- /dev/null
+++ b/interface.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Database procedures.
+ */
+
+/**
+ * Generic interface for reading Isis databases.
+ */
+interface IsisDb {
+ // Constructor.
+ public function __construct($schema);
+
+ // Read an entry.
+ public function read($id);
+
+ // Return number of rows in the database.
+ public function rows();
+
+ // Return a default example schema.
+ public function default_schema();
+}