class PHP5TableMapBuilder extends OMBuilder
Generates the PHP5 table map class for user object model (OM).
Methods
string |
build()
Builds the PHP source for current class and returns it as a string. |
from OMBuilder |
string |
buildObjectInstanceCreationCode($objName, $clsName)
Creates a $obj = new Book(); code snippet. |
from OMBuilder |
string |
getUnprefixedClassname()
Returns the name of the current class being built. |
|
string |
getClassname()
Returns the prefixed classname that is being built by the current class. |
from OMBuilder |
string |
getFullyQualifiedClassname()
Returns the namespaced classname if there is a namespace, and the raw classname otherwise |
from OMBuilder |
string |
getClasspath()
Gets the dot-path representation of current class being built. |
from OMBuilder |
string |
getClassFilePath()
Gets the full path to the file for the current class. |
from OMBuilder |
string |
getPackage()
Gets the package for the map builder classes. |
|
string |
getPackagePath()
Returns filesystem path for current package. |
from OMBuilder |
getNamespace() | ||
declareClassNamespace($class, $namespace = '') | from OMBuilder | |
declareClass($fullyQualifiedClassName) | from OMBuilder | |
declareClassFromBuilder($builder) | from OMBuilder | |
declareClasses() | from OMBuilder | |
getDeclaredClasses($namespace = null) | from OMBuilder | |
getNamespaceStatement() | from OMBuilder | |
getUseStatements($ignoredNamespace = null) | from OMBuilder | |
string |
getPeerClassname()
Shortcut method to return the [stub] peer classname for current table. |
from OMBuilder |
string |
getQueryClassname()
Shortcut method to return the [stub] query classname for current table. |
from OMBuilder |
string |
getObjectClassname()
Returns the object classname for current table. |
from OMBuilder |
string |
getColumnConstant(Column $col, string $classname = null)
Get the column constant name (e.g. |
from OMBuilder |
string |
getBasePeer(Table $table)
Gets the basePeer path if specified for table/db. |
from OMBuilder |
string |
getFKPhpNameAffix(ForeignKey $fk, boolean $plural = false)
Gets the PHP method name affix to be used for fkeys for the current table (not referrers to this table). |
from OMBuilder |
string |
getRefFKPhpNameAffix(ForeignKey $fk, boolean $plural = false)
Gets the PHP method name affix to be used for referencing foreign key methods and variable names (e.g. |
from OMBuilder |
boolean |
hasBehaviorModifier($hookName, $modifier = null)
Checks whether any registered behavior on that table has a modifier for a hook |
|
applyBehaviorModifierBase($hookName, $modifier, $script, $tab = ' ')
Checks whether any registered behavior on that table has a modifier for a hook |
from OMBuilder | |
getBehaviorContentBase(string $contentName, string $modifier)
Checks whether any registered behavior content creator on that table exists a contentName |
from OMBuilder | |
applyBehaviorModifier($hookName, $script, $tab = ' ')
Checks whether any registered behavior on that table has a modifier for a hook |
Details
in OMBuilder at line 42
public string
build()
Builds the PHP source for current class and returns it as a string.
This is the main entry point and defines a basic structure that classes should follow.
In most cases this method will not need to be overridden by subclasses. This method
does assume that the output language is PHP code, so it will need to be overridden if
this is not the case.
in OMBuilder at line 86
public string
buildObjectInstanceCreationCode($objName, $clsName)
Creates a $obj = new Book(); code snippet.
Can be used by frameworks, for instance, to
extend this behavior, e.g. initialize the object after creating the instance or so.
at line 46
public string
getUnprefixedClassname()
Returns the name of the current class being built.
in OMBuilder at line 103
public string
getClassname()
Returns the prefixed classname that is being built by the current class.
in OMBuilder at line 112
public string
getFullyQualifiedClassname()
Returns the namespaced classname if there is a namespace, and the raw classname otherwise
in OMBuilder at line 125
public string
getClasspath()
Gets the dot-path representation of current class being built.
in OMBuilder at line 139
public string
getClassFilePath()
Gets the full path to the file for the current class.
at line 26
public string
getPackage()
Gets the package for the map builder classes.
in OMBuilder at line 162
public string
getPackagePath()
Returns filesystem path for current package.
at line 31
public
getNamespace()
in OMBuilder at line 178
public
declareClassNamespace($class, $namespace = '')
in OMBuilder at line 187
public
declareClass($fullyQualifiedClassName)
in OMBuilder at line 198
public
declareClassFromBuilder($builder)
in OMBuilder at line 203
public
declareClasses()
in OMBuilder at line 211
public
getDeclaredClasses($namespace = null)
in OMBuilder at line 220
public
getNamespaceStatement()
in OMBuilder at line 230
public
getUseStatements($ignoredNamespace = null)
in OMBuilder at line 253
public string
getPeerClassname()
Shortcut method to return the [stub] peer classname for current table.
This is the classname that is used whenever object or peer classes want
to invoke methods of the peer classes.
in OMBuilder at line 264
public string
getQueryClassname()
Shortcut method to return the [stub] query classname for current table.
This is the classname that is used whenever object or peer classes want
to invoke methods of the query classes.
in OMBuilder at line 275
public string
getObjectClassname()
Returns the object classname for current table.
This is the classname that is used whenever object or peer classes want
to invoke methods of the object classes.
in OMBuilder at line 287
public string
getColumnConstant(Column $col, string $classname = null)
Get the column constant name (e.g.
PeerName::COLUMN_NAME).
in OMBuilder at line 311
public string
getBasePeer(Table $table)
Gets the basePeer path if specified for table/db.
If not, will return 'propel.util.BasePeer'
in OMBuilder at line 358
public string
getFKPhpNameAffix(ForeignKey $fk, boolean $plural = false)
Gets the PHP method name affix to be used for fkeys for the current table (not referrers to this table).
The difference between this method and the getRefFKPhpNameAffix() method is that in this method the
classname in the affix is the foreign table classname.
in OMBuilder at line 418
public string
getRefFKPhpNameAffix(ForeignKey $fk, boolean $plural = false)
Gets the PHP method name affix to be used for referencing foreign key methods and variable names (e.g.
set????(), $coll???).
The difference between this method and the getFKPhpNameAffix() method is that in this method the
classname in the affix is the classname of the local fkey table.
at line 347
public boolean
hasBehaviorModifier($hookName, $modifier = null)
Checks whether any registered behavior on that table has a modifier for a hook
in OMBuilder at line 497
public
applyBehaviorModifierBase($hookName, $modifier, $script, $tab = ' ')
Checks whether any registered behavior on that table has a modifier for a hook
in OMBuilder at line 520
public
getBehaviorContentBase(string $contentName, string $modifier)
Checks whether any registered behavior content creator on that table exists a contentName
at line 357
public
applyBehaviorModifier($hookName, $script, $tab = ' ')
Checks whether any registered behavior on that table has a modifier for a hook