Class P3TranslationBehavior
Provides a translation for attributes in the specified relation
'Translation' => array( 'class' => 'P3TranslationBehavior', 'relation' => 'daContentTranslations', 'fallbackLanguage' => 'de_de' )
- CComponent
-
CBehavior
implements
IBehavior
-
CModelBehavior
-
CActiveRecordBehavior
-
P3TranslationBehavior
Copyright: Copyright © 2005-2011 diemeisterei GmbH
License: http://www.phundament.com/license/
Author: Tobias Munk <schmunk@usrbin.de>
Since: 3.0.3
Located at phundament/p3extensions/behaviors/P3TranslationBehavior.php
Methods summary
public
mixed
|
|
public
|
|
public
|
Methods inherited from CActiveRecordBehavior
afterDelete(),
afterFind(),
afterSave(),
beforeDelete(),
beforeFind(),
beforeSave(),
events()
Methods inherited from CModelBehavior
afterConstruct(),
afterValidate(),
beforeValidate()
Methods inherited from CBehavior
attach(),
detach(),
getEnabled(),
getOwner(),
setEnabled()
Methods inherited from CComponent
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
Magic methods summary
Properties summary
public
string
|
$relation |
#
Name of the relation identifier in the model which should contain extended translation attributes |
public
type
|
$fallbackLanguage |
#
Language to use if preferred language is not found |
public
type
|
$fallbackIndicator |
#
Value to use if fallback value from language is not found |
public
type
|
$fallbackValue |
#
Value to use if fallback value from language is not found |
public
type
|
$attributesBlacklist |
#
Attributes which should not be translated |
Magic properties inherited from CActiveRecordBehavior
$owner
Magic properties inherited from CBehavior
$enabled