Yii2-useful
, (*1)
Collection helpful classes for Yii2, (*2)
Installation
composer require nullref/yii2-useful --prefer-dist
Structure
Actions
-
EditAction
Action for AJAX model update., (*3)
-
MultipleDeleteAction
Allows to delete multiple models., (*4)
-
MultipleUpdateAction
Allows to update multiple models., (*5)
Behaviors
-
BinaryBehavior
Allows encode and decode model fields as integer number., (*6)
-
DateBehavior
Allows encode and decode model fields as Unix timestamp., (*7)
-
JsonBehavior
Allows encode and decode model fields as JSON., (*8)
-
Allows to load related data for model., (*9)
-
SerializeBehavior
Allows encode and decode model fields as serialize php string., (*10)
-
TranslationBehavior
Allows to implement multilingual features., (*11)
-
CacheTagDependencyBehavior
Allows to invalidate TagDependency when modify ActiveRecord, (*12)
Traits
-
GetDefinition
Allows to get defined in DI container class or default., (*13)
-
HasPassword
Allows to set and validate password for model., (*14)
-
Mappable
Allows to get map from ActiveRecord., (*15)
-
MappableQuery
Same as Mappable trait but for ActiveQuery., (*16)
-
SessionModel
Save and get object from session, (*17)
Filters
- #### RedirectFilter
Redirect after action by url param.
Helpers
Old version
(Will be remove from version 1.0.0), (*19)
JSONBehavior
Allows save in text field customs data structure., (*20)
ArrayBehavior
Allows save in text field array structure., (*21)
BitBehavior
Allows save in integer field bit array., (*22)
DropDownTrait
Allows get lists from ActiveRecord., (*23)
PasswordTrait
Easy work with password., (*24)
EditAction
Action for AJAX record update., (*25)
MultipleUpdateAction
Action multiple update by list of IDs., (*26)
TranslationBehavior
Allows implement translations for models, (*27)