diff options
Diffstat (limited to 'interface.php')
-rw-r--r-- | interface.php | 21 |
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(); +} |