Zeta Components Manual :: Docs For Class ezcDbSchemaXmlReader
DatabaseSchema::ezcDbSchemaXmlReader
Class ezcDbSchemaXmlReader
Handler that reads database definitions and database difference definitions from a file in an XML format.
Source for this file: /DatabaseSchema/src/handlers/xml/reader.php
Implements interfaces:
| Version: | //autogentag// | 
Method Summary
| public int | 
            
              getDiffReaderType(
               )
            
            Returns what type of schema difference reader this class implements.            | 
        
| public int | 
            
              getReaderType(
               )
            
            Returns what type of reader writer this class implements.            | 
        
| public ezcDbSchemaDiff | 
            
              loadDiffFromFile(
                                                                                    $file
                                                 )
            
            Returns the database differences stored in the XML file $file            | 
        
| public ezcDbSchema | 
            
              loadFromFile(
                                                                                    $file
                                                 )
            
            Returns the database schema stored in the XML file $file            | 
        
Methods
getDiffReaderType
      int
      getDiffReaderType(
      )
    
    Returns what type of schema difference reader this class implements.
This method always returns ezcDbSchema::FILE
Implementation of:
| Method | Description | 
|---|---|
ezcDbSchemaDiffReader::getDiffReaderType() | 
              Returns what type of schema difference reader this class implements. | 
getReaderType
      int
      getReaderType(
      )
    
    Returns what type of reader writer this class implements.
This method always returns ezcDbSchema::FILE
Implementation of:
| Method | Description | 
|---|---|
ezcDbSchemaReader::getReaderType() | 
              Returns what type of schema reader this class implements. | 
loadDiffFromFile
      ezcDbSchemaDiff
      loadDiffFromFile(
                                  string
          $file
                        )
    
    Returns the database differences stored in the XML file $file
Parameters:
| Name | Type | Description | 
|---|---|---|
$file | 
              string | 
Exceptions:
| Type | Description | 
|---|---|
ezcDbSchemaInvalidSchemaException | 
              if the XML in the $file is corrupt or when the file could not be opened. | 
ezcBaseFileNotFoundException | 
              if the file $file could not be found. | 
Implementation of:
| Method | Description | 
|---|---|
ezcDbSchemaDiffFileReader::loadDiffFromFile() | 
              Returns an ezcDbSchemaDiff object created from the differences stored in the file $file | 
loadFromFile
      ezcDbSchema
      loadFromFile(
                                  string
          $file
                        )
    
    Returns the database schema stored in the XML file $file
Parameters:
| Name | Type | Description | 
|---|---|---|
$file | 
              string | 
Exceptions:
| Type | Description | 
|---|---|
ezcDbSchemaInvalidSchemaException | 
              if the XML in the $file is corrupt or when the file could not be opened. | 
ezcBaseFileNotFoundException | 
              if the file $file could not be found. | 
Implementation of:
| Method | Description | 
|---|---|
ezcDbSchemaFileReader::loadFromFile() | 
              Returns an ezcDbSchema with the definition from $file | 
      Documentation generated by phpDocumentor 1.4.3