2017 © Pedro Peláez
 

yii2-extension yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

image

rezident/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

  • Tuesday, March 8, 2016
  • by rezident
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Yii2 Serialized Attributes Behavior

This Yii2 model behavior allows you to store arrays in attributes. To attach the behavior put the following code in your model:, (*1)

    public function behaviors()
    {
        return [
            'serializedAttributes' => [
                'class' => SerializedAttributes::className(),

                // Define the attributes you want to be serialized
                'attributes' => ['serializedData', 'moreSerializedData'],

                // Enable this option if your DB is not in UTF-8
                // (more info at http://www.jackreichert.com/2014/02/02/handling-a-php-unserialize-offset-error/)
                // 'encode' => true,
            ],
        ];
    }

The Versions

08/03 2016

dev-master

9999999-dev http://github.com/rezident/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Yuri Nazarenko

yii2 array yii behavior serialize attributes attribute serialized

08/03 2016

v1.1.2

1.1.2.0 http://github.com/rezident/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Yuri Nazarenko

yii2 array yii behavior serialize attributes attribute serialized

21/10 2015

v1.1.1

1.1.1.0 http://github.com/baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky

yii2 array yii behavior serialize attributes attribute serialized

22/07 2015

v1.1.0

1.1.0.0 http://github.com/baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky

yii2 array yii behavior serialize attributes attribute serialized

23/06 2015

v1.0.0

1.0.0.0 http://github.com/baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky

yii2 array yii behavior serialize attributes attribute serialized