diff options
author | Silvio <silvio@devlet.com.br> | 2010-06-07 17:31:58 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-06-07 17:31:58 -0300 |
commit | b30bac3f31c602fd2cb3a9b2a03501a68a9c7800 (patch) | |
tree | a952ee8f8bf59fb2e854e2e25e2c707be60257af /interface.php | |
parent | 7571cef86ee48c928e615bc0822c8ab7e4eb2fd3 (diff) | |
download | cinisis-b30bac3f31c602fd2cb3a9b2a03501a68a9c7800.tar.gz cinisis-b30bac3f31c602fd2cb3a9b2a03501a68a9c7800.tar.bz2 |
Sorting code
Diffstat (limited to 'interface.php')
-rw-r--r-- | interface.php | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/interface.php b/interface.php deleted file mode 100644 index 1e63f38..0000000 --- a/interface.php +++ /dev/null @@ -1,63 +0,0 @@ -<?php - -/** - * Generic interface for reading Isis databases. - */ -interface IsisDb { - /** - * Constructor. - * - * The implementation constructor should accept a database - * schema definition and setup the appropriate db resource. - * - * @param $schema - * High level database schema description. - * - * @return - * Database resource or FALSE in case of error. - * - * @see default_schema() - */ - public function __construct($schema); - - /** - * Read an entry from the database. - * - * @param $id - * Database row id. - */ - public function read($id); - - /** - * Return number of rows in the database. - * - * @return - * Number of rows in the database. - */ - public function rows(); - - /** - * Return an example database schema. - * - * The example schema should have all information the implementation - * needs to be able to open and read a database. - * - * @return - * Array with a sample database schema. - */ - public function example(); - - /** - * Configuration check. - * - * @param $schema - * Database schema to check. - * - * @param $section - * Configuration section. - * - * @return - * Database schema or FALSE if error. - */ - function check($schema, $section = NULL); -} |