PHP Class SfPropelBehaviorI18n, sfPropelORMPlugin

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

Protected Properties

Свойство Type Description
$parameters

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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 méthode

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

getForeignColumn() protected méthode

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

getI18nTable() public méthode

Returns the current table's i18n translation table.
public getI18nTable ( ) : Table
Résultat Table

getLocalColumn() protected méthode

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

hasPrimaryString() protected méthode

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

modifyDatabase() public méthode

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

modifyTable() public méthode

public modifyTable ( )

objectAttributes() public méthode

public objectAttributes ( )

objectFilter() public méthode

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 méthode

public objectMethods ( )

queryMethods() public méthode

public queryMethods ( QueryBuilder $builder )
$builder QueryBuilder

staticMethods() public méthode

public staticMethods ( )

Property Details

$parameters protected_oe property

protected $parameters