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 /index.php | |
parent | f3af45962c3b26782479f3b8ab5fa09d62a0f483 (diff) | |
download | cinisis-1d960150de785261da282e1505360e97ee144493.tar.gz cinisis-1d960150de785261da282e1505360e97ee144493.tar.bz2 |
Adding PhpIsis implementation of IsisDb
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -1,20 +1,26 @@ <?php /** - * Database procedures. + * Isis db migration tool. */ -// Import Malete Library +// Import Malete Library. require 'contrib/malete/php/Isis.php'; -// Import Spyc +// Import Spyc. include('contrib/spyc/spyc.php'); -// Import database classes -require 'isis.php'; +// Import Isis interface. +require 'interface.php'; + +// Autoloader. +function __autoload($class) { + require_once 'classes/' .$class. '.php'; +} // Test database connection. $schema = Spyc::YAMLLoad('schemas/anu10.yaml'); -$db = new MaleteDb($schema); +//$db = new MaleteDb($schema); +$db = new PhpIsisDb($schema); if ($db) { $result = $db->read(4); echo '<pre>'; |