Propel 2 API
Class

Propel\Generator\Builder\Om\MultiExtendObjectBuilder

class MultiExtendObjectBuilder extends AbstractObjectBuilder

Generates the empty PHP5 stub object class for use with inheritance in the user object model (OM).

This class produces the empty stub class that can be customized with
application business logic, custom behavior, etc.

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 getUnprefixedClassName()

Returns the name of the current class being built.

string getPackage()

Overrides method to return child package, if specified.

setChild(Inheritance $child)

Sets the child object that we're operating on currently.

Inheritance getChild()

Returns the child object we're operating on currently.

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

Parameters

string $hookName The name of the hook as called from one of this class methods, e.g. "preSave"
string $modifier The name of the modifier object providing the method in the behavior

Return Value

boolean

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

Parameters

string $hookName The name of the hook as called from one of this class methods, e.g. "preSave"
string $script &$script The script will be modified in this method.
string $tab

in AbstractObjectBuilder at line 191
public getBehaviorContent(string $contentName)

Checks whether any registered behavior content creator on that table exists a contentName

Parameters

string $contentName The name of the content as called from one of this class methods, e.g. "parentClassName"

at line 38
public string getUnprefixedClassName()

Returns the name of the current class being built.

Return Value

string

at line 48
public string getPackage()

Overrides method to return child package, if specified.

Return Value

string

at line 58
public setChild(Inheritance $child)

Sets the child object that we're operating on currently.

Parameters

Inheritance $child Inheritance

at line 69
public Inheritance getChild()

Returns the child object we're operating on currently.

Return Value

Inheritance

Exceptions

BuildException