class PHP5ObjectBuilder extends ObjectBuilder
Generates a PHP5 base Object class for user object model (OM).
This class produces the base object class (e.g. BaseMyTable) which contains all
the custom-built accessor and setter methods.
Methods
__construct(Table $table)
Constructs a new PeerBuilder subclass. |
from ObjectBuilder | |
boolean |
hasBehaviorModifier($hookName, $modifier = null)
Checks whether any registered behavior on that table has a modifier for a hook |
from ObjectBuilder |
applyBehaviorModifier($hookName, $script, $tab = ' ')
Checks whether any registered behavior on that table has a modifier for a hook |
from ObjectBuilder | |
getBehaviorContent(string $contentName)
Checks whether any registered behavior content creator on that table exists a contentName |
from ObjectBuilder | |
string |
getPackage()
Gets the package for the [base] object classes. |
|
getNamespace() | ||
string |
getUnprefixedClassname()
Returns the name of the current class being built. |
|
addTemporalAccessorComment(string $script, Column $col)
Adds the comment for a temporal accessor |
||
addTemporalAccessorOpen(string $script, Column $col)
Adds the function declaration for a temporal accessor |
||
addDefaultAccessorComment(string $script, Column $col)
Add the comment for a default accessor method (a getter) |
||
addDefaultAccessorOpen(string $script, Column $col)
Adds the function declaration for a default accessor |
||
addMutatorComment(string $script, Column $col)
Adds the comment for a mutator |
||
addMutatorOpenOpen(string $script, Column $col)
Adds the mutator function declaration |
||
addTemporalMutatorComment($script, Column $col) | ||
addBooleanMutatorComment($script, Column $col) | ||
string |
getFKVarName(ForeignKey $fk)
Constructs variable name for fkey-related objects. |
|
string |
getRefFKCollVarName(ForeignKey $fk)
Constructs variable name for objects which referencing current table by specified foreign key. |
|
string |
getPKRefFKVarName(ForeignKey $fk)
Constructs variable name for single object which references current table by specified foreign key which is ALSO a primary key (hence one-to-one relationship). |
Details
in ObjectBuilder at line 30
public
__construct(Table $table)
Constructs a new PeerBuilder subclass.
in ObjectBuilder at line 182
public boolean
hasBehaviorModifier($hookName, $modifier = null)
Checks whether any registered behavior on that table has a modifier for a hook
in ObjectBuilder at line 192
public
applyBehaviorModifier($hookName, $script, $tab = ' ')
Checks whether any registered behavior on that table has a modifier for a hook
in ObjectBuilder at line 201
public
getBehaviorContent(string $contentName)
Checks whether any registered behavior content creator on that table exists a contentName
at line 29
public string
getPackage()
Gets the package for the [base] object classes.
at line 34
public
getNamespace()
at line 49
public string
getUnprefixedClassname()
Returns the name of the current class being built.
at line 716
public
addTemporalAccessorComment(string $script, Column $col)
Adds the comment for a temporal accessor
at line 769
public
addTemporalAccessorOpen(string $script, Column $col)
Adds the function declaration for a temporal accessor
at line 1085
public
addDefaultAccessorComment(string $script, Column $col)
Add the comment for a default accessor method (a getter)
at line 1107
public
addDefaultAccessorOpen(string $script, Column $col)
Adds the function declaration for a default accessor
at line 1294
public
addMutatorComment(string $script, Column $col)
Adds the comment for a mutator
at line 1311
public
addMutatorOpenOpen(string $script, Column $col)
Adds the mutator function declaration
at line 1508
public
addTemporalMutatorComment($script, Column $col)
at line 1709
public
addBooleanMutatorComment($script, Column $col)
at line 2909
public string
getFKVarName(ForeignKey $fk)
Constructs variable name for fkey-related objects.
at line 2919
public string
getRefFKCollVarName(ForeignKey $fk)
Constructs variable name for objects which referencing current table by specified foreign key.
at line 2930
public string
getPKRefFKVarName(ForeignKey $fk)
Constructs variable name for single object which references current table by specified foreign key which is ALSO a primary key (hence one-to-one relationship).