PHP Class SfPropelBehaviorI18n, sfPropelORMPlugin

This behavior is intended to be applied at the database level.
Author: Kris Wallsmith ([email protected])
Inheritance: extends SfPropelBehaviorBase
Show file Open project: propelorm/sfPropelORMPlugin

Protected Properties

Property Type Description
$parameters

Public Methods

Method Description
getI18nTable ( ) : Table Returns the current table's i18n translation table.
modifyDatabase ( ) Looks for tables marked as I18N and adds behaviors.
modifyTable ( )
objectAttributes ( )
objectFilter ( &$script ) The object builder adds a first __toString() method, and this behavior adds a second one in objectMethods(), so the first one must be removed.
objectMethods ( )
queryMethods ( QueryBuilder $builder )
staticMethods ( )

Protected Methods

Method Description
getCultureColumn ( Table $table ) : Column Finds the supplied translation table's culture column.
getForeignColumn ( ) : Column Returns the column on the translation table the references the current model.
getLocalColumn ( ) : Column Returns the column on the current model referenced by the translation model.
hasPrimaryString ( Table $table ) : boolean Checks whether the supplied table has a primary string defined.

Method Details

getCultureColumn() protected method

Finds the supplied translation table's culture column.
protected getCultureColumn ( Table $table ) : Column
$table Table
return Column

getForeignColumn() protected method

Returns the column on the translation table the references the current model.
protected getForeignColumn ( ) : Column
return Column

getI18nTable() public method

Returns the current table's i18n translation table.
public getI18nTable ( ) : Table
return Table

getLocalColumn() protected method

Returns the column on the current model referenced by the translation model.
protected getLocalColumn ( ) : Column
return Column

hasPrimaryString() protected method

Checks whether the supplied table has a primary string defined.
protected hasPrimaryString ( Table $table ) : boolean
$table Table
return boolean

modifyDatabase() public method

Looks for tables marked as I18N and adds behaviors.
public modifyDatabase ( )

modifyTable() public method

public modifyTable ( )

objectAttributes() public method

public objectAttributes ( )

objectFilter() public method

The object builder adds a first __toString() method, and this behavior adds a second one in objectMethods(), so the first one must be removed.
public objectFilter ( &$script )

objectMethods() public method

public objectMethods ( )

queryMethods() public method

public queryMethods ( QueryBuilder $builder )
$builder QueryBuilder

staticMethods() public method

public staticMethods ( )

Property Details

$parameters protected property

protected $parameters