1
0
Fork 0
mirror of synced 2025-03-30 11:40:15 +03:00

Jaws_Schema is now abstract

This commit is contained in:
nicobn 2007-08-15 16:57:16 +00:00
parent a062835e43
commit b54d56a9a2
2 changed files with 16 additions and 7 deletions

View file

@ -37,16 +37,25 @@
* @author Nicolas Bérard-Nault <nicobn@gmail.com> * @author Nicolas Bérard-Nault <nicobn@gmail.com>
* @author Jonathan H. Wage <jonwage@gmail.com> * @author Jonathan H. Wage <jonwage@gmail.com>
*/ */
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 * import
* *
* A method to import a Schema and translate it into a Doctrine_Record object * 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 $schema The file containing the XML schema
* @param string $directory The directory where the Doctrine_Record classes will * @param string $directory The directory where the Doctrine_Record class will
* be written * be written
* @access public
*/ */
public function imprt($schema, $directory) public function imprt($schema, $directory)
{ {
@ -61,5 +70,5 @@ class Doctrine_Import_Schema
$builder->buildRecord($options, $columns, array()); $builder->buildRecord($options, $columns, array());
} }
} }
} }

View file

@ -40,7 +40,7 @@
class Doctrine_Import_Schema_Xml extends Doctrine_Import_Schema 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. * A method to import a XML Schema and translate it into a property array.
* The function returns that property array. * The function returns that property array.
@ -85,4 +85,4 @@ class Doctrine_Import_Schema_Xml extends Doctrine_Import_Schema
return $tables; return $tables;
} }
} }