PHP Класс SfPropelBehaviorI18n, sfPropelORMPlugin

This behavior is intended to be applied at the database level.
Автор: Kris Wallsmith ([email protected])
Наследование: extends SfPropelBehaviorBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$parameters

Открытые методы

Метод Описание
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 ( )

Защищенные методы

Метод Описание
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.

Описание методов

getCultureColumn() защищенный Метод

Finds the supplied translation table's culture column.
protected getCultureColumn ( Table $table ) : Column
$table Table
Результат Column

getForeignColumn() защищенный Метод

Returns the column on the translation table the references the current model.
protected getForeignColumn ( ) : Column
Результат Column

getI18nTable() публичный Метод

Returns the current table's i18n translation table.
public getI18nTable ( ) : Table
Результат Table

getLocalColumn() защищенный Метод

Returns the column on the current model referenced by the translation model.
protected getLocalColumn ( ) : Column
Результат Column

hasPrimaryString() защищенный Метод

Checks whether the supplied table has a primary string defined.
protected hasPrimaryString ( Table $table ) : boolean
$table Table
Результат boolean

modifyDatabase() публичный Метод

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

modifyTable() публичный Метод

public modifyTable ( )

objectAttributes() публичный Метод

public objectAttributes ( )

objectFilter() публичный Метод

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

queryMethods() публичный Метод

public queryMethods ( QueryBuilder $builder )
$builder QueryBuilder

staticMethods() публичный Метод

public staticMethods ( )

Описание свойств

$parameters защищенное свойство

protected $parameters