3 class ORMTableManifestGenerator
extends class_generator
{
5 private $full_structure;
7 public function __construct( $full_structure ) {
8 $this->full_structure
= $full_structure;
9 $this->classname
= "orm_table_classes";
10 $this->set_manifest();
13 public function generate($skip_generated_note = false) {
14 parent
::generate($skip_generated_note);
16 foreach( $this->full_structure
as $name => $structure ) {
17 $this->write('$manifest[%s] = %s;', $name, array(
18 'object' => $structure['class'].self
::$model_suffix,
19 'set' => $structure['class'].'Set'.self
::$model_suffix,
20 'pool' => $structure['class'].'Pool'.self
::$model_suffix,