Post::behaviors PHP Method

behaviors() public method

public behaviors ( ) : array
return array
    public function behaviors()
    {
        $module = Yii::app()->getModule('blog');
        return ['CTimestampBehavior' => ['class' => 'zii.behaviors.CTimestampBehavior', 'setUpdateOnCreate' => true], 'tags' => ['class' => 'vendor.yiiext.taggable-behavior.EARTaggableBehavior', 'tagTable' => Yii::app()->getDb()->tablePrefix . 'blog_tag', 'tagBindingTable' => Yii::app()->getDb()->tablePrefix . 'blog_post_to_tag', 'tagModel' => 'Tag', 'modelTableFk' => 'post_id', 'tagBindingTableTagId' => 'tag_id', 'cacheID' => 'cache'], 'imageUpload' => ['class' => 'yupe\\components\\behaviors\\ImageUploadBehavior', 'attributeName' => 'image', 'minSize' => $module->minSize, 'maxSize' => $module->maxSize, 'types' => $module->allowedExtensions, 'uploadPath' => $module->uploadPath]];
    }