aboutsummaryrefslogtreecommitdiff
path: root/interface.php
diff options
context:
space:
mode:
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();
+}