Writer to generate PersistentObject class/definition files.
This class is used in ezcPersistentObjectSchemaGenerator to generate PersistentObject class and definition files based on templates.
Source for this file: /PersistentObjectDatabaseSchemaTiein/src/template_writer.php
Version: | //autogentag// |
protected array(string=>mixed) |
$properties
= array()
Properties. |
public ezcPersistentObjectTemplateSchemaWriter |
__construct(
[ $options
= null] )
Creates a new writer instance. |
public void |
write(
$schema
, $template
, $dir
)
Writes the given $schema to $dir using $template. |
Creates a new writer instance.
Name | Type | Description |
---|---|---|
$options |
ezcPersistentObjectTemplateSchemaWriterOptions |
Writes the given $schema to $dir using $template.
Iterates through all tables in $schema, sends each of them to a ezcTemplate with $template and writes the result to $dir with the file name returned by the template.
Name | Type | Description |
---|---|---|
$schema |
ezcDbSchema | |
$template |
string | |
$dir |
mixed |