Method | Description | |
---|---|---|
generate ( array $metadatas, string $outputDirectory ) : void | Generate and write xml-entity classes for the given array of ClassMetadataInfo instances | |
generateUpdatedXmlEntityClass ( |
Generate the updated code for the given ClassMetadataInfo and xml-entity at path | |
generateXmlEntityClass ( |
Generate a PHP5 Doctrine 2 xml-entity class from the given ClassMetadataInfo instance | |
setBackupExisting ( $bool ) | Should an existing xml-entity be backed up if it already exists? | |
setClassToExtend ( $classToExtend ) : void | Set the name of the class the generated classes should extend from | |
setExtension ( string $extension ) : void | Set the extension to use when writing php files to disk | |
setGenerateAnnotations ( boolean $bool ) : void | Set whether or not to generate annotations for the xml-entity | |
setGenerateStubMethods ( boolean $bool ) : void | Set whether or not to generate stub methods for the xml-entity | |
setNumSpaces ( integer $numSpaces ) : void | Set the number of spaces the exported class should have | |
setRegenerateXmlEntityIfExists ( boolean $bool ) : void | Set whether or not to regenerate the xml-entity if it exists | |
setUpdateXmlEntityIfExists ( boolean $bool ) : void | Set whether or not to try and update the xml-entity if it already exists | |
writeXmlEntityClass ( |
Generated and write xml-entity class to disk for the given ClassMetadataInfo instance |
Method | Description | |
---|---|---|
extendsClass ( ) | ||
generateChangeTrackingPolicyAnnotation ( |
||
generateFieldMappingPropertyDocBlock ( array $fieldMapping, |
||
generateLifecycleCallbackMethod ( $name, $methodName, $metadata ) | ||
generateXmlEntityBody ( |
||
generateXmlEntityClassName ( |
||
generateXmlEntityConstructor ( |
||
generateXmlEntityDocBlock ( |
||
generateXmlEntityFieldMappingProperties ( |
||
generateXmlEntityImports ( |
||
generateXmlEntityLifecycleCallbackMethods ( |
||
generateXmlEntityNamespace ( |
||
generateXmlEntityStubMethod ( |
||
generateXmlEntityStubMethods ( |
||
getChangeTrackingPolicyString ( $policy ) | ||
getClassName ( |
||
getClassToExtend ( ) | ||
getClassToExtendName ( ) | ||
getIdGeneratorTypeString ( $type ) | ||
getNamespace ( |
||
hasMethod ( $method, |
||
hasNamespace ( |
||
hasProperty ( $property, |
||
parseTokensInXmlEntityFile ( string $path ) | ||
prefixCodeWithSpaces ( $code, $num = 1 ) |
public generateUpdatedXmlEntityClass ( |
||
$metadata | ||
$path | string | |
return | string | $code; |
public generateXmlEntityClass ( |
||
$metadata | ||
return | string | $code |
public setBackupExisting ( $bool ) |
public setClassToExtend ( $classToExtend ) : void | ||
return | void |
public setExtension ( string $extension ) : void | ||
$extension | string | |
return | void |
public setGenerateAnnotations ( boolean $bool ) : void | ||
$bool | boolean | |
return | void |
public setGenerateStubMethods ( boolean $bool ) : void | ||
$bool | boolean | |
return | void |
public setNumSpaces ( integer $numSpaces ) : void | ||
$numSpaces | integer | |
return | void |
public setRegenerateXmlEntityIfExists ( boolean $bool ) : void | ||
$bool | boolean | |
return | void |
public setUpdateXmlEntityIfExists ( boolean $bool ) : void | ||
$bool | boolean | |
return | void |
public writeXmlEntityClass ( |
||
$metadata | ||
$outputDirectory | string | |
return | void |