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 /interface.php | |
parent | f3af45962c3b26782479f3b8ab5fa09d62a0f483 (diff) | |
download | cinisis-1d960150de785261da282e1505360e97ee144493.tar.gz cinisis-1d960150de785261da282e1505360e97ee144493.tar.bz2 |
Adding PhpIsis implementation of IsisDb
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(); +} |