From b54d56a9a21431f50177ee52b901604e0fd64465 Mon Sep 17 00:00:00 2001 From: nicobn Date: Wed, 15 Aug 2007 16:57:16 +0000 Subject: [PATCH] Jaws_Schema is now abstract --- lib/Doctrine/Import/Schema.php | 19 ++++++++++++++----- lib/Doctrine/Import/Schema/Xml.php | 4 ++-- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/lib/Doctrine/Import/Schema.php b/lib/Doctrine/Import/Schema.php index 7d17b2a2c..e59760662 100644 --- a/lib/Doctrine/Import/Schema.php +++ b/lib/Doctrine/Import/Schema.php @@ -37,16 +37,25 @@ * @author Nicolas BĂ©rard-Nault * @author Jonathan H. Wage */ -class Doctrine_Import_Schema +abstract class Doctrine_Import_Schema { + /** + * Import the schema and return it in an array + * + * @param string $schema + * @access public + */ + abstract function importSchema($schema); + /** * import * * A method to import a Schema and translate it into a Doctrine_Record object * - * @param string $schema The file containing the XML schema - * @param string $directory The directory where the Doctrine_Record classes will - * be written + * @param string $schema The file containing the XML schema + * @param string $directory The directory where the Doctrine_Record class will + * be written + * @access public */ public function imprt($schema, $directory) { @@ -61,5 +70,5 @@ class Doctrine_Import_Schema $builder->buildRecord($options, $columns, array()); } - } + } } diff --git a/lib/Doctrine/Import/Schema/Xml.php b/lib/Doctrine/Import/Schema/Xml.php index 39395571b..155fe7399 100644 --- a/lib/Doctrine/Import/Schema/Xml.php +++ b/lib/Doctrine/Import/Schema/Xml.php @@ -40,7 +40,7 @@ class Doctrine_Import_Schema_Xml extends Doctrine_Import_Schema { /** - * importArr + * importSchema * * A method to import a XML Schema and translate it into a property array. * The function returns that property array. @@ -85,4 +85,4 @@ class Doctrine_Import_Schema_Xml extends Doctrine_Import_Schema return $tables; } -} \ No newline at end of file +}