class PropelConvertConfTask extends AbstractPropelDataModelTask
This Task converts the XML runtime configuration file into a PHP array for faster performance.
Methods
List |
getDataModels()
Return the data models that have been processed. |
from AbstractPropelDataModelTask |
Hashtable |
getDataModelDbMap()
Return the data model to database name map. |
from AbstractPropelDataModelTask |
addSchemaFileset(Fileset $set)
Adds a set of xml schema files (nested fileset attribute). |
from AbstractPropelDataModelTask | |
String |
getTargetDatabase()
Get the current target database. |
from AbstractPropelDataModelTask |
setTargetDatabase(v $v)
Set the current target database. |
from AbstractPropelDataModelTask | |
string |
getTargetPackage()
Get the current target package. |
from AbstractPropelDataModelTask |
setTargetPackage(string $v)
Set the current target package. |
from AbstractPropelDataModelTask | |
setPackageObjectModel(boolean $v)
Set the packageObjectModel switch on/off |
from AbstractPropelDataModelTask | |
setValidate(boolean $v)
Set whether to perform validation on the datamodel schema.xml file(s). |
from AbstractPropelDataModelTask | |
setXsd(PhingFile $v)
Set the XSD schema to use for validation of any datamodel schema.xml file(s). |
from AbstractPropelDataModelTask | |
setXsl(PhingFile $v)
Set the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing. |
from AbstractPropelDataModelTask | |
void |
setOutputDirectory(PhingFile $outputDirectory)
[REQUIRED] Set the output directory. |
from AbstractPropelDataModelTask |
setDbEncoding(v $v)
Set the current target database encoding. |
from AbstractPropelDataModelTask | |
setUrl(string $url)
Set the DB connection url. |
from AbstractPropelDataModelTask | |
setUserid(string $userId)
Set the user name for the DB connection. |
from AbstractPropelDataModelTask | |
setPassword(string $password)
Set the password for the DB connection. |
from AbstractPropelDataModelTask | |
string |
getOutputDirectory()
Get the output directory. |
from AbstractPropelDataModelTask |
Mapper |
createMapper()
Nested creator, creates one Mapper for this task. |
from AbstractPropelDataModelTask |
PDO |
getConnection()
Gets the PDO connection, if URL specified. |
from AbstractPropelDataModelTask |
setXmlConfFile(PhingFile $v)
[REQUIRED] Set the input XML runtime conf file. |
||
setOutputFile(string $outputFile)
[REQUIRED] Set the output filename for the converted runtime conf. |
||
setOutputClassmapFile(string $outputFile)
[REQUIRED] Set the output filename for the autoload classmap. |
||
main()
The main method does the work of the task. |
Details
in AbstractPropelDataModelTask at line 146
public List
getDataModels()
Return the data models that have been processed.
in AbstractPropelDataModelTask at line 159
public Hashtable
getDataModelDbMap()
Return the data model to database name map.
in AbstractPropelDataModelTask at line 172
public
addSchemaFileset(Fileset $set)
Adds a set of xml schema files (nested fileset attribute).
in AbstractPropelDataModelTask at line 182
public String
getTargetDatabase()
Get the current target database.
in AbstractPropelDataModelTask at line 192
public
setTargetDatabase(v $v)
Set the current target database.
(e.g. mysql, oracle, ..)
in AbstractPropelDataModelTask at line 202
public string
getTargetPackage()
Get the current target package.
in AbstractPropelDataModelTask at line 213
public
setTargetPackage(string $v)
Set the current target package.
This is where generated PHP classes will
live.
in AbstractPropelDataModelTask at line 223
public
setPackageObjectModel(boolean $v)
Set the packageObjectModel switch on/off
in AbstractPropelDataModelTask at line 232
public
setValidate(boolean $v)
Set whether to perform validation on the datamodel schema.xml file(s).
in AbstractPropelDataModelTask at line 241
public
setXsd(PhingFile $v)
Set the XSD schema to use for validation of any datamodel schema.xml file(s).
in AbstractPropelDataModelTask at line 250
public
setXsl(PhingFile $v)
Set the normalization XSLT to use to transform datamodel schema.xml file(s) before validation and parsing.
in AbstractPropelDataModelTask at line 262
public void
setOutputDirectory(PhingFile $outputDirectory)
[REQUIRED] Set the output directory.
It will be
created if it doesn't exist.
in AbstractPropelDataModelTask at line 281
public
setDbEncoding(v $v)
Set the current target database encoding.
in AbstractPropelDataModelTask at line 291
public
setUrl(string $url)
Set the DB connection url.
in AbstractPropelDataModelTask at line 301
public
setUserid(string $userId)
Set the user name for the DB connection.
in AbstractPropelDataModelTask at line 311
public
setPassword(string $password)
Set the password for the DB connection.
in AbstractPropelDataModelTask at line 320
public string
getOutputDirectory()
Get the output directory.
in AbstractPropelDataModelTask at line 330
public Mapper
createMapper()
Nested creator, creates one Mapper for this task.
in AbstractPropelDataModelTask at line 366
public PDO
getConnection()
Gets the PDO connection, if URL specified.
at line 44
public
setXmlConfFile(PhingFile $v)
[REQUIRED] Set the input XML runtime conf file.
at line 55
public
setOutputFile(string $outputFile)
[REQUIRED] Set the output filename for the converted runtime conf.
The directory is specified using AbstractPropelDataModelTask#setOutputDirectory().
at line 67
public
setOutputClassmapFile(string $outputFile)
[REQUIRED] Set the output filename for the autoload classmap.
The directory is specified using AbstractPropelDataModelTask#setOutputDirectory().
at line 76
public
main()
The main method does the work of the task.