Propel 2 API
Class

Propel\Generator\Builder\Om\InterfaceBuilder

class InterfaceBuilder extends AbstractObjectBuilder

Generates the empty PHP5 stub interface for user object model (OM).

This class produces the empty stub interface when the interface="" attribute is used
in the the schema xml.

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.

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 28
public string getUnprefixedClassName()

Returns the name of the current class being built.

Return Value

string