abstract class AbstractPropelDataModelTask extends Task
An abstract base Propel task to perform work related to the XML schema file.
The subclasses invoke templates to do the actual writing of the resulting files.
Methods
| List | getDataModels() Return the data models that have been processed. | |
| Hashtable | getDataModelDbMap() Return the data model to database name map. | |
| addSchemaFileset(Fileset $set) Adds a set of xml schema files (nested fileset attribute). | ||
| String | getTargetDatabase() Get the current target database. | |
| setTargetDatabase(v $v) Set the current target database. | ||
| string | getTargetPackage() Get the current target package. | |
| setTargetPackage(string $v) Set the current target package. | ||
| setPackageObjectModel(boolean $v) Set the packageObjectModel switch on/off | ||
| setValidate(boolean $v) Set whether to perform validation on the datamodel schema.xml file(s). | ||
| setXsd(PhingFile $v) Set the XSD schema to use for validation of any datamodel schema.xml file(s). | ||
| setXsl(PhingFile $v) Set the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing. | ||
| void | setOutputDirectory(PhingFile $outputDirectory) [REQUIRED] Set the output directory. | |
| setDbEncoding(v $v) Set the current target database encoding. | ||
| setUrl(string $url) Set the DB connection url. | ||
| setUserid(string $userId) Set the user name for the DB connection. | ||
| setPassword(string $password) Set the password for the DB connection. | ||
| string | getOutputDirectory() Get the output directory. | |
| Mapper | createMapper() Nested creator, creates one Mapper for this task. | |
| PDO | getConnection() Gets the PDO connection, if URL specified. | 
Details
        at line 146
                    public            List
    getDataModels()
    
    Return the data models that have been processed.
        at line 159
                    public            Hashtable
    getDataModelDbMap()
    
    Return the data model to database name map.
        at line 172
                    public            
    addSchemaFileset(Fileset $set)
    
    Adds a set of xml schema files (nested fileset attribute).
        at line 182
                    public            String
    getTargetDatabase()
    
    Get the current target database.
        at line 192
                    public            
    setTargetDatabase(v $v)
    
    Set the current target database.
(e.g. mysql, oracle, ..)
        at line 202
                    public            string
    getTargetPackage()
    
    Get the current target package.
        at line 213
                    public            
    setTargetPackage(string $v)
    
    Set the current target package.
This is where generated PHP classes will
 live.
        at line 223
                    public            
    setPackageObjectModel(boolean $v)
    
    Set the packageObjectModel switch on/off
        at line 232
                    public            
    setValidate(boolean $v)
    
    Set whether to perform validation on the datamodel schema.xml file(s).
        at line 241
                    public            
    setXsd(PhingFile $v)
    
    Set the XSD schema to use for validation of any datamodel schema.xml file(s).
        at line 250
                    public            
    setXsl(PhingFile $v)
    
    Set the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing.
        at line 262
                    public            void
    setOutputDirectory(PhingFile $outputDirectory)
    
    [REQUIRED] Set the output directory.
It will be
 created if it doesn't exist.
        at line 281
                    public            
    setDbEncoding(v $v)
    
    Set the current target database encoding.
        at line 291
                    public            
    setUrl(string $url)
    
    Set the DB connection url.
        at line 301
                    public            
    setUserid(string $userId)
    
    Set the user name for the DB connection.
        at line 311
                    public            
    setPassword(string $password)
    
    Set the password for the DB connection.
        at line 320
                    public            string
    getOutputDirectory()
    
    Get the output directory.
        at line 330
                    public            Mapper
    createMapper()
    
    Nested creator, creates one Mapper for this task.
        at line 366
                    public            PDO
    getConnection()
    
    Gets the PDO connection, if URL specified.