2017 © Pedro Peláez
 

cakephp-plugin cakephp-db-configure

Use it if you want to save and read serialized data into DB.

image

samokspv/cakephp-db-configure

Use it if you want to save and read serialized data into DB.

  • Monday, January 11, 2016
  • by imsamurai
  • Repository
  • 2 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

CakePHP DBConfigure Plugin

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

DBConfigure plugin for CakePHP 2.2+, (*2)

Use it if you want to save and read serialized data into/from DB (DBConfigure::read = (Configure::write + DBConfigure::write))., (*3)

Installation

cd my_cake_app/app
git clone git://github.com/samokspv/cakephp-DBConfigure.git Plugin/DBConfigure

or if you use git add as submodule:, (*4)

cd my_cake_app
git submodule add "git://github.com/samokspv/cakephp-DBConfigure.git" "app/Plugin/DBConfigure"

then add plugin loading in Config/bootstrap.php, (*5)

CakePlugin::load('DBConfigure');

Usage

In any place of your code:, (*6)

App::uses('DBConfigure', 'DBConfigure.Utility');

For example:
// save to DB
DBConfigure::write('TestSetting', array(
    'key_1' => array(
        'key_1_1' => 'value_1_1',
        'key_1_2' => array(
            'key_1_2_1' => 'value_1_2_1'
        )
    )
));
// read from DB
DBConfigure::read('TestSetting'); 
    /*return: array(
        'key_1' => array(
            'key_1_1' => 'value_1_1',
            'key_1_2' => array(
                'key_1_2_1' => 'value_1_2_1'
            )
        )
    )*/
DBConfigure::read('TestSetting.key_1');
    /*return: array(
        'key_1_1' => 'value_1_1',
        'key_1_2' => array(
            'key_1_2_1' => 'value_1_2_1'
        )
    )*/
DBConfigure::read('TestSetting.key_1.key_1_2');
    /*return: array(
        'key_1_2_1' => 'value_1_2_1'
    )*/
DBConfigure::read('TestSetting.key_1_3', 'defaultValue_1_3'); 
    /*return: defaultValue_1_3*/

// save to DB
DBConfigure::write('TestSetting.key_1.key_1_2', 'value_1_2_1_update');
// read from DB
DBConfigure::read('TestSetting.key_1.key_1_2');
    /*return: array(
        'key_1_2_1' => 'value_1_2_1_update'
    )*/

// save to session
Configure::write('TestSetting.key_1', 'value_1');
Configure::write('TestSetting.key_2', 'value_2');
// save to DB
DBConfigure::write('TestSetting.key_2', 'value_2_update');
DBConfigure::write('TestSetting.key_3', 'value_3');
// read from DB
DBConfigure::read('TestSetting');
    /*return: array(
        'key_1' => 'value_1',
        'key_2' => 'value_2_update',
        'key_3' => 'value_3'
    )*/

The Versions

11/01 2016

1.0.13

1.0.13.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

11/01 2016

1.0.12

1.0.12.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

11/01 2016

1.0.11

1.0.11.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

11/01 2016

dev-master

9999999-dev https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

11/01 2016

1.0.10

1.0.10.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

09/10 2014

1.0.9

1.0.9.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

02/09 2014

1.0.8

1.0.8.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

26/08 2014

1.0.7

1.0.7.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

25/08 2014

1.0.6

1.0.6.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

27/02 2014

1.0.5

1.0.5.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

20/02 2014

1.0.4

1.0.4.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

13/02 2014

1.0.3

1.0.3.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

13/02 2014

1.0.2

1.0.2.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

13/02 2014

1.0.1

1.0.1.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure

07/02 2014

1.0.0

1.0.0.0 https://github.com/samokspv/CakePHP-DBConfigure

Use it if you want to save and read serialized data into DB.

  Sources   Download

MIT

The Requires

 

by Pavel Samokish

plugin database cakephp configure