aboutsummaryrefslogtreecommitdiff
path: root/interface.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-04-06 16:16:50 -0300
committerSilvio <silvio@devlet.com.br>2010-04-06 16:16:50 -0300
commita80a88d99cb102fad4a23d5ea5732d489e70eddf (patch)
tree8d5a4bb15b3d6d38ed8bc132dc507c56d23a1711 /interface.php
parentf6f1d270419bbd9696974719b15b8c01b19b032b (diff)
downloadcinisis-a80a88d99cb102fad4a23d5ea5732d489e70eddf.tar.gz
cinisis-a80a88d99cb102fad4a23d5ea5732d489e70eddf.tar.bz2
Enhanced config check
Diffstat (limited to 'interface.php')
-rw-r--r--interface.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/interface.php b/interface.php
index 7a40cc2..1e63f38 100644
--- a/interface.php
+++ b/interface.php
@@ -37,7 +37,7 @@ interface IsisDb {
public function rows();
/**
- * Return a default example schema.
+ * Return an example database schema.
*
* The example schema should have all information the implementation
* needs to be able to open and read a database.
@@ -46,4 +46,18 @@ interface IsisDb {
* 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);
}