From a80a88d99cb102fad4a23d5ea5732d489e70eddf Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 6 Apr 2010 16:16:50 -0300 Subject: Enhanced config check --- interface.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'interface.php') 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); } -- cgit v1.2.3