class ObjectBuilder extends AbstractObjectBuilder
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
boolean |
hasBehaviorModifier(string $hookName, string $modifier = null)
Checks whether any registered behavior on that table has a modifier for a hook |
from AbstractObjectBuilder |
applyBehaviorModifier(string $hookName, string $script, string $tab = ' ')
Checks whether any registered behavior on that table has a modifier for a hook |
from AbstractObjectBuilder | |
getBehaviorContent(string $contentName)
Checks whether any registered behavior content creator on that table exists a contentName |
from AbstractObjectBuilder | |
string |
getPackage()
Returns the package for the base object classes. |
|
string |
getNamespace()
Returns the namespace for the base class. |
|
string |
getDefaultKeyType()
Returns default key type. |
|
string |
getUnprefixedClassName()
Returns the name of the current class being built. |
|
addTemporalAccessorComment(string $script, Column $column)
Adds the comment for a temporal accessor. |
||
addTemporalAccessorOpen(string $script, Column $column)
Adds the function declaration for a temporal accessor. |
||
addDefaultAccessorComment(string $script, Column $column)
Add the comment for a default accessor method (a getter). |
||
addDefaultAccessorOpen(string $script, Column $column)
Adds the function declaration for a default accessor. |
||
addMutatorComment(string $script, Column $column)
Adds the comment for a mutator. |
||
addMutatorOpenOpen(string $script, Column $column)
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 AbstractObjectBuilder at line 171
public boolean
hasBehaviorModifier(string $hookName, string $modifier = null)
Checks whether any registered behavior on that table has a modifier for a hook
in AbstractObjectBuilder at line 182
public
applyBehaviorModifier(string $hookName, string $script, string $tab = ' ')
Checks whether any registered behavior on that table has a modifier for a hook
in AbstractObjectBuilder at line 191
public
getBehaviorContent(string $contentName)
Checks whether any registered behavior content creator on that table exists a contentName
at line 38
public string
getPackage()
Returns the package for the base object classes.
at line 49
public string
getNamespace()
Returns the namespace for the base class.
at line 65
public string
getDefaultKeyType()
Returns default key type.
If not presented in configuration default will be 'TYPE_PHPNAME'
at line 77
public string
getUnprefixedClassName()
Returns the name of the current class being built.
at line 762
public
addTemporalAccessorComment(string $script, Column $column)
Adds the comment for a temporal accessor.
at line 803
public
addTemporalAccessorOpen(string $script, Column $column)
Adds the function declaration for a temporal accessor.
at line 1085
public
addDefaultAccessorComment(string $script, Column $column)
Add the comment for a default accessor method (a getter).
at line 1108
public
addDefaultAccessorOpen(string $script, Column $column)
Adds the function declaration for a default accessor.
at line 1307
public
addMutatorComment(string $script, Column $column)
Adds the comment for a mutator.
at line 1325
public
addMutatorOpenOpen(string $script, Column $column)
Adds the mutator function declaration.
at line 1519
public
addTemporalMutatorComment($script, Column $col)
at line 1727
public
addBooleanMutatorComment($script, Column $col)
at line 2964
public string
getFKVarName(ForeignKey $fk)
Constructs variable name for fkey-related objects.
at line 2974
public string
getRefFKCollVarName(ForeignKey $fk)
Constructs variable name for objects which referencing current table by specified foreign key.
at line 2985
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).