Pular para o conteúdo
PHP Ecosystem
Explore

yii\behaviors

Este conteúdo não está disponível em sua língua ainda.

API reference › yii › behaviors

ClassSummary
AttributeBehaviorAttributeBehavior automatically assigns a specified value to one or multiple attributes of an ActiveRecord object when certain events happen.
AttributesBehaviorAttributesBehavior automatically assigns values specified to one or multiple attributes of an ActiveRecord object when certain events happen.
AttributeTypecastBehaviorAttributeTypecastBehavior provides an ability of automatic model attribute typecasting.
BlameableBehaviorBlameableBehavior automatically fills the specified attributes with the current user ID.
CacheableWidgetBehaviorCacheable widget behavior automatically caches widget contents according to duration and dependencies specified.
OptimisticLockBehaviorOptimisticLockBehavior automatically upgrades a model’s lock version using the column name returned by optimisticLock().
SluggableBehaviorSluggableBehavior automatically fills the specified attribute with a value that can be used a slug in a URL.
TimestampBehaviorTimestampBehavior automatically fills the specified attributes with the current timestamp.