class PropelSchemaReverseTask extends PDOTask
This class generates an XML schema of an existing database from the database metadata.
Constants
VALIDATORS_NONE |
Zero bit for no validators
|
VALIDATORS_MAXLENGTH |
Bit for maxLength validator
|
VALIDATORS_MAXVALUE |
Bit for maxValue validator
|
VALIDATORS_TYPE |
Bit for type validator
|
VALIDATORS_REQUIRED |
Bit for required validator
|
VALIDATORS_UNIQUE |
Bit for unique validator
|
VALIDATORS_ALL |
Bit for all validators
|
Methods
string |
getDbSchema()
Gets the (optional) schema name to use. |
|
setDbSchema(string $dbSchema)
Sets the name of a database schema to use (optional). |
||
string |
getDbEncoding($v)
Gets the database encoding. |
|
setDbEncoding(string $v)
Sets the database encoding. |
||
string |
getDatabaseName()
Gets the datasource name. |
|
setDatabaseName(string $v)
Sets the datasource name. |
||
setOutputFile(PhingFile $v)
Sets the output name for the XML file. |
||
setSamePhpName(boolean $v)
Set whether to use the column name as phpName without any translation. |
||
setAddVendorInfo(boolean $v)
Set whether to add vendor info to the schema. |
||
void |
setAddValidators(string $v)
Sets set validator bitfield from a comma-separated list of "validator bit" names. |
|
boolean |
isSamePhpName()
Whether to use the column name as phpName without any translation. |
|
main()
|
Details
at line 196
public string
getDbSchema()
Gets the (optional) schema name to use.
at line 206
public
setDbSchema(string $dbSchema)
Sets the name of a database schema to use (optional).
at line 216
public string
getDbEncoding($v)
Gets the database encoding.
at line 226
public
setDbEncoding(string $v)
Sets the database encoding.
at line 236
public string
getDatabaseName()
Gets the datasource name.
at line 248
public
setDatabaseName(string $v)
Sets the datasource name.
This will be used as the
at line 258
public
setOutputFile(PhingFile $v)
Sets the output name for the XML file.
at line 268
public
setSamePhpName(boolean $v)
Set whether to use the column name as phpName without any translation.
at line 278
public
setAddVendorInfo(boolean $v)
Set whether to add vendor info to the schema.
at line 291
public void
setAddValidators(string $v)
Sets set validator bitfield from a comma-separated list of "validator bit" names.
at line 331
public boolean
isSamePhpName()
Whether to use the column name as phpName without any translation.
at line 339
public
main()