Bläddra i källkod

begin settings

tags/0.1.2
Robin Thoni 8 år sedan
förälder
incheckning
d0149b1bed

+ 82
- 0
src/Auth/Business/LuticateSettingsBusiness.php Visa fil

@@ -0,0 +1,82 @@
1
+<?php
2
+
3
+namespace Luticate\Auth\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use Luticate\Auth\DataAccess\LuticateSettingsDataAccess;
7
+use Luticate\Auth\DBO\LuticateSettingsDbo;
8
+use Luticate\Utils\LuMultipleDbo;
9
+
10
+class LuticateSettingsBusiness extends LuBusiness {
11
+    protected static function getDataAccess()
12
+    {
13
+        return new LuticateSettingsDataAccess();
14
+    }
15
+
16
+    public static function checkSettingName($setting_name)
17
+    {
18
+        $perm = LuticateSettingsDataAccess::getByName($setting_name);
19
+        if (is_null($perm)) {
20
+            self::notFound("Setting not found");
21
+        }
22
+        return $perm;
23
+    }
24
+
25
+    public static function getEffectiveSetting($user_id, $setting_name)
26
+    {
27
+        self::checkSettingName($setting_name);
28
+        $val = LuticateSettingsDataAccess::getEffectiveSetting($user_id, $setting_name);
29
+        $json = json_decode($val->getSetting());
30
+        return $json;
31
+    }
32
+
33
+    public static function getAllEffectiveSetting($user_id)
34
+    {
35
+        return LuticateSettingsDataAccess::getAllEffectiveSetting($user_id)->map(function($value)
36
+        {
37
+            return $value["Settings"];
38
+        });
39
+    }
40
+
41
+    public static function get($setting_name)
42
+    {
43
+        $perm = LuticateSettingsDataAccess::getByName($setting_name);
44
+        if (is_null($perm)) {
45
+            self::notFound("Permission not found");
46
+        }
47
+        return $perm;
48
+    }
49
+
50
+    /**
51
+     * @param $setting LuticateSettingsDbo
52
+     * @return bool
53
+     */
54
+    public static function add($setting)
55
+    {
56
+        $perm = LuticateSettingsDataAccess::getByName($setting->getName());
57
+        if (is_null($perm)) {
58
+            LuticateSettingsDataAccess::add($setting);
59
+            return true;
60
+        }
61
+        self::badInput("Setting name already exists");
62
+        return false;
63
+    }
64
+
65
+    public static function del($setting_name)
66
+    {
67
+        LuticateSettingsDataAccess::delete($setting_name);
68
+        return true;
69
+    }
70
+
71
+    /**
72
+     * @param $setting_name string
73
+     * @param $setting LuticateSettingsDbo
74
+     * @return bool
75
+     */
76
+    public static function edit($setting_name, $setting)
77
+    {
78
+        self::checkSettingName($setting_name);
79
+        LuticateSettingsDataAccess::edit($setting_name, $setting);
80
+        return true;
81
+    }
82
+}

+ 14
- 0
src/Auth/Business/LuticateSettingsUsersBusiness.php Visa fil

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace Luticate\Auth\Business;
4
+
5
+use Luticate\Utils\LuBusiness;
6
+use Luticate\Auth\DataAccess\LuticateSettingsUsersDataAccess;
7
+use Luticate\Auth\DBO\LuticateSettingsUsersDbo;
8
+
9
+class LuticateSettingsUsersBusiness extends LuBusiness {
10
+    protected static function getDataAccess()
11
+    {
12
+        return new LuticateSettingsUsersDataAccess();
13
+    }
14
+}

+ 110
- 0
src/Auth/Controller/LuticateSettingsController.php Visa fil

@@ -0,0 +1,110 @@
1
+<?php
2
+
3
+namespace Luticate\Auth\Controller;
4
+
5
+use Luticate\Auth\DBO\LuticateUsersDbo;
6
+use Luticate\Utils\LuController;
7
+use Luticate\Auth\Business\LuticateSettingsBusiness;
8
+use Luticate\Auth\DBO\LuticateSettingsDbo;
9
+
10
+class LuticateSettingsController extends LuController {
11
+    protected function getBusiness()
12
+    {
13
+        return new LuticateSettingsBusiness();
14
+    }
15
+
16
+    /**
17
+     * Get the effective setting for a user
18
+     * @param $user_id int The user id
19
+     * @param $setting_name string The setting name
20
+     * @return LuticateSettingsDbo
21
+     */
22
+    public function getEffectiveSetting($user_id, $setting_name)
23
+    {
24
+        return LuticateSettingsBusiness::getEffectiveSetting($user_id, $setting_name);
25
+    }
26
+
27
+    /**
28
+     * Get the effective setting for the logged user
29
+     * @param $_user LuticateUsersDbo Logged user
30
+     * @param $setting_name string The setting name
31
+     * @return LuticateSettingsDbo
32
+     */
33
+    public function getEffectiveSettingMe($_user, $setting_name)
34
+    {
35
+        return LuticateSettingsBusiness::getEffectiveSetting($_user->getId(), $setting_name);
36
+    }
37
+
38
+    /**
39
+     * Get all the effective setting for a user
40
+     * @param $user_id int The user id
41
+     * @return LuticateSettingsDbo[]
42
+     */
43
+    public function getAllEffectiveSetting($user_id)
44
+    {
45
+        return LuticateSettingsBusiness::getAllEffectiveSetting($user_id);
46
+    }
47
+
48
+    /**
49
+     * Get all the effective setting for the logged user
50
+     * @param $_user LuticateUsersDbo Logged user
51
+     * @return LuticateSettingsDbo[]
52
+     */
53
+    public function getAllEffectiveSettingMe($_user)
54
+    {
55
+        return LuticateSettingsBusiness::getAllEffectiveSetting($_user->getId());
56
+    }
57
+
58
+    /**
59
+     * Get a setting
60
+     * @param $setting_name string The setting name
61
+     * @return \Luticate\Utils\LuDbo
62
+     */
63
+    public function get($setting_name)
64
+    {
65
+        return LuticateSettingsBusiness::get($setting_name);
66
+    }
67
+
68
+    /**
69
+     * Get all settings
70
+     * @param int $page The page number, 0 based
71
+     * @param int $perPage The number of items per page
72
+     * @param string $query The filter query
73
+     * @return \Luticate\Utils\LuMultipleDbo
74
+     */
75
+    public function getAll($page = 0, $perPage = 2000000000, $query = "")
76
+    {
77
+        return LuticateSettingsBusiness::getAll($page, $perPage, $query);
78
+    }
79
+
80
+    /**
81
+     * Add a setting
82
+     * @param $setting LuticateSettingsDbo The setting
83
+     * @return bool
84
+     */
85
+    public function add(LuticateSettingsDbo $setting)
86
+    {
87
+        return LuticateSettingsBusiness::add($setting);
88
+    }
89
+
90
+    /**
91
+     * Remove a setting
92
+     * @param $setting_name string The setting name
93
+     * @return bool
94
+     */
95
+    public function del($setting_name)
96
+    {
97
+        return LuticateSettingsBusiness::del($setting_name);
98
+    }
99
+
100
+    /**
101
+     * Edit the default setting value
102
+     * @param $setting_name string The setting name
103
+     * @param $setting LuticateSettingsDbo The setting
104
+     * @return bool
105
+     */
106
+    public function edit($setting_name, $setting)
107
+    {
108
+        return LuticateSettingsBusiness::edit($setting_name, $setting);
109
+    }
110
+}

+ 14
- 0
src/Auth/Controller/LuticateSettingsUsersController.php Visa fil

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace Luticate\Auth\Controller;
4
+
5
+use Luticate\Utils\LuController;
6
+use Luticate\Auth\Business\LuticateSettingsUsersBusiness;
7
+use Luticate\Auth\DBO\LuticateSettingsUsersDbo;
8
+
9
+class LuticateSettingsUsersController extends LuController {
10
+    protected function getBusiness()
11
+    {
12
+        return new LuticateSettingsUsersBusiness();
13
+    }
14
+}

+ 103
- 0
src/Auth/DBO/LuticateSettingsDbo.php Visa fil

@@ -0,0 +1,103 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace Luticate\Auth\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class LuticateSettingsDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Name" => $this->_name,
18
+            "Type" => $this->_type,
19
+            "Value" => $this->_value,
20
+            "IsBlocked" => $this->_isBlocked
21
+        );
22
+    }
23
+
24
+    public static function jsonDeserialize($json)
25
+    {
26
+        $dbo = new LuticateSettingsDbo();
27
+        if (isset($json["Name"])) {
28
+            $dbo->setName($json["Name"]);
29
+        }
30
+        if (isset($json["Type"])) {
31
+            $dbo->setType($json["Type"]);
32
+        }
33
+        if (isset($json["Value"])) {
34
+            $dbo->setValue($json["Value"]);
35
+        }
36
+        if (isset($json["IsBlocked"])) {
37
+            $dbo->setIsBlocked($json["IsBlocked"]);
38
+        }
39
+        return $dbo;
40
+    }
41
+
42
+    public static function generateSample()
43
+    {
44
+        $dbo = new LuticateSettingsDbo();
45
+        $dbo->setName("sample string");
46
+        $dbo->setType("sample string");
47
+        $dbo->setValue("sample string");
48
+        $dbo->setIsBlocked(true);
49
+        return $dbo;
50
+    }
51
+
52
+    /**
53
+     * @var string
54
+     */
55
+    protected $_name;
56
+    public function getName()
57
+    {
58
+        return $this->_name;
59
+    }
60
+    public function setName($value)
61
+    {
62
+        $this->_name = $value;
63
+    }
64
+
65
+    /**
66
+     * @var string
67
+     */
68
+    protected $_type;
69
+    public function getType()
70
+    {
71
+        return $this->_type;
72
+    }
73
+    public function setType($value)
74
+    {
75
+        $this->_type = $value;
76
+    }
77
+
78
+    /**
79
+     * @var text
80
+     */
81
+    protected $_value;
82
+    public function getValue()
83
+    {
84
+        return $this->_value;
85
+    }
86
+    public function setValue($value)
87
+    {
88
+        $this->_value = $value;
89
+    }
90
+
91
+    /**
92
+     * @var boolean
93
+     */
94
+    protected $_isBlocked;
95
+    public function getIsBlocked()
96
+    {
97
+        return $this->_isBlocked;
98
+    }
99
+    public function setIsBlocked($value)
100
+    {
101
+        $this->_isBlocked = $value;
102
+    }
103
+}

+ 85
- 0
src/Auth/DBO/LuticateSettingsUsersDbo.php Visa fil

@@ -0,0 +1,85 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace Luticate\Auth\DBO;
9
+
10
+use Luticate\Utils\LuDbo;
11
+
12
+class LuticateSettingsUsersDbo extends LuDbo {
13
+
14
+    public function jsonSerialize()
15
+    {
16
+        return array(
17
+            "Name" => $this->_name,
18
+            "Value" => $this->_value,
19
+            "UserId" => $this->_userId
20
+        );
21
+    }
22
+
23
+    public static function jsonDeserialize($json)
24
+    {
25
+        $dbo = new LuticateSettingsUsersDbo();
26
+        if (isset($json["Name"])) {
27
+            $dbo->setName($json["Name"]);
28
+        }
29
+        if (isset($json["Value"])) {
30
+            $dbo->setValue($json["Value"]);
31
+        }
32
+        if (isset($json["UserId"])) {
33
+            $dbo->setUserId($json["UserId"]);
34
+        }
35
+        return $dbo;
36
+    }
37
+
38
+    public static function generateSample()
39
+    {
40
+        $dbo = new LuticateSettingsUsersDbo();
41
+        $dbo->setName("sample string");
42
+        $dbo->setValue("sample string");
43
+        $dbo->setUserId(42);
44
+        return $dbo;
45
+    }
46
+
47
+    /**
48
+     * @var string
49
+     */
50
+    protected $_name;
51
+    public function getName()
52
+    {
53
+        return $this->_name;
54
+    }
55
+    public function setName($value)
56
+    {
57
+        $this->_name = $value;
58
+    }
59
+
60
+    /**
61
+     * @var text
62
+     */
63
+    protected $_value;
64
+    public function getValue()
65
+    {
66
+        return $this->_value;
67
+    }
68
+    public function setValue($value)
69
+    {
70
+        $this->_value = $value;
71
+    }
72
+
73
+    /**
74
+     * @var integer
75
+     */
76
+    protected $_userId;
77
+    public function getUserId()
78
+    {
79
+        return $this->_userId;
80
+    }
81
+    public function setUserId($value)
82
+    {
83
+        $this->_userId = $value;
84
+    }
85
+}

+ 74
- 0
src/Auth/DataAccess/LuticateSettingsDataAccess.php Visa fil

@@ -0,0 +1,74 @@
1
+<?php
2
+
3
+namespace Luticate\Auth\DataAccess;
4
+
5
+use Luticate\Auth\DataAccess\SP\SpLuGetAllUserSettings;
6
+use Luticate\Auth\DataAccess\SP\SpLuGetUserSetting;
7
+use Luticate\Utils\LuDataAccess;
8
+use Luticate\Auth\DataAccess\Models\LuticateSettings;
9
+use Luticate\Auth\DBO\LuticateSettingsDbo;
10
+
11
+class LuticateSettingsDataAccess extends LuDataAccess {
12
+    protected static function getModel()
13
+    {
14
+        return new LuticateSettings();
15
+    }
16
+
17
+    protected static function getOrderBy()
18
+    {
19
+        return array(array("name", "ASC"));
20
+    }
21
+
22
+    protected static function getQueryPredicate($query)
23
+    {
24
+        return array(array("name", "ilike", "%" . $query . "%", "or"));
25
+    }
26
+
27
+    public static function getEffectiveSetting($user_id, $setting_name)
28
+    {
29
+        return SpLuGetUserSetting::execute($user_id, $setting_name);
30
+    }
31
+
32
+    public static function getAllEffectiveSetting($user_id)
33
+    {
34
+        return SpLuGetAllUserSettings::getMultipleJson($user_id, 0, 2000000);
35
+    }
36
+
37
+    public static function getModelByName($setting_name)
38
+    {
39
+        return LuticateSettings::where("name", "=", $setting_name)->first();
40
+    }
41
+
42
+    public static function getByName($setting_name)
43
+    {
44
+        $perm = self::getModelByName($setting_name);
45
+        if (is_null($perm)) {
46
+            return null;
47
+        }
48
+        return $perm->toDbo();
49
+    }
50
+
51
+    public static function delete($setting_name)
52
+    {
53
+        $perm = self::getModelByName($setting_name);
54
+        if (is_null($perm))
55
+            return;
56
+        $perm->delete();
57
+    }
58
+
59
+    /**
60
+     * @param $setting_name string
61
+     * @param $setting LuticateSettingsDbo
62
+     */
63
+    public static function edit($setting_name, $setting)
64
+    {
65
+        $perm = self::getModelByName($setting_name);
66
+        if (is_null($perm))
67
+            return;
68
+        $perm->is_blocked = $setting->getIsBlocked();
69
+        $perm->name = $setting->getName();
70
+        $perm->type = $setting->getType();
71
+        $perm->value = $setting->getValue();
72
+        $perm->save();
73
+    }
74
+}

+ 14
- 0
src/Auth/DataAccess/LuticateSettingsUsersDataAccess.php Visa fil

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace Luticate\Auth\DataAccess;
4
+
5
+use Luticate\Utils\LuDataAccess;
6
+use Luticate\Auth\DataAccess\Models\LuticateSettingsUsers;
7
+use Luticate\Auth\DBO\LuticateSettingsUsersDbo;
8
+
9
+class LuticateSettingsUsersDataAccess extends LuDataAccess {
10
+    protected static function getModel()
11
+    {
12
+        return new LuticateSettingsUsers();
13
+    }
14
+}

+ 9
- 0
src/Auth/DataAccess/Models/LuticateSettings.php Visa fil

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Luticate\Auth\DataAccess\Models;
4
+
5
+use Luticate\Auth\DBO\LuticateSettingsDbo;
6
+
7
+class LuticateSettings extends LuticateSettingsModel
8
+{
9
+}

+ 53
- 0
src/Auth/DataAccess/Models/LuticateSettingsModel.php Visa fil

@@ -0,0 +1,53 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE LuticateSettings.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace Luticate\Auth\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use Luticate\Auth\DBO\LuticateSettingsDbo;
15
+
16
+class LuticateSettingsModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new LuticateSettingsDbo();
27
+
28
+        $dbo->setName($this->name);
29
+        $dbo->setType($this->type);
30
+        $dbo->setValue($this->value);
31
+        $dbo->setIsBlocked($this->is_blocked);
32
+
33
+        return $dbo;
34
+    }
35
+
36
+    /**
37
+     * @param $dbo LuticateSettingsDbo
38
+     * @param $model LuModel|null
39
+     * @return LuticateSettings
40
+     */
41
+    public function fromDbo($dbo, $model = null)
42
+    {
43
+        if (is_null($model))
44
+            $model = new LuticateSettings();
45
+
46
+        $model->name = $dbo->getName();
47
+        $model->type = $dbo->getType();
48
+        $model->value = $dbo->getValue();
49
+        $model->is_blocked = $dbo->getIsBlocked();
50
+
51
+        return $model;
52
+    }
53
+}

+ 9
- 0
src/Auth/DataAccess/Models/LuticateSettingsUsers.php Visa fil

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+namespace Luticate\Auth\DataAccess\Models;
4
+
5
+use Luticate\Auth\DBO\LuticateSettingsUsersDbo;
6
+
7
+class LuticateSettingsUsers extends LuticateSettingsUsersModel
8
+{
9
+}

+ 51
- 0
src/Auth/DataAccess/Models/LuticateSettingsUsersModel.php Visa fil

@@ -0,0 +1,51 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ * DO NOT DIRECTLY USE THIS FILE
7
+ * USE LuticateSettingsUsers.php
8
+ * TO MAKE YOUR CHANGES AND DATABASE ACCESS
9
+*/
10
+
11
+namespace Luticate\Auth\DataAccess\Models;
12
+
13
+use Luticate\Utils\LuModel;
14
+use Luticate\Auth\DBO\LuticateSettingsUsersDbo;
15
+
16
+class LuticateSettingsUsersModel extends LuModel
17
+{
18
+    function __construct()
19
+    {
20
+        parent::__construct();
21
+        $this->timestamps = false;
22
+    }
23
+
24
+    public function toDbo()
25
+    {
26
+        $dbo = new LuticateSettingsUsersDbo();
27
+
28
+        $dbo->setName($this->name);
29
+        $dbo->setValue($this->value);
30
+        $dbo->setUserId($this->user_id);
31
+
32
+        return $dbo;
33
+    }
34
+
35
+    /**
36
+     * @param $dbo LuticateSettingsUsersDbo
37
+     * @param $model LuModel|null
38
+     * @return LuticateSettingsUsers
39
+     */
40
+    public function fromDbo($dbo, $model = null)
41
+    {
42
+        if (is_null($model))
43
+            $model = new LuticateSettingsUsers();
44
+
45
+        $model->name = $dbo->getName();
46
+        $model->value = $dbo->getValue();
47
+        $model->user_id = $dbo->getUserId();
48
+
49
+        return $model;
50
+    }
51
+}

+ 64
- 0
src/Auth/DataAccess/SP/SpLuGetAllUserSettings.php Visa fil

@@ -0,0 +1,64 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace Luticate\Auth\DataAccess\SP;
9
+
10
+use Luticate\Utils\LuSpModel;
11
+use Luticate\Utils\LuMultipleDbo;
12
+use Luticate\Utils\LuStringUtils;
13
+use Illuminate\Support\Facades\DB;
14
+
15
+class SpLuGetAllUserSettings extends LuSpModel {
16
+
17
+    protected static function damToDbo($dam)
18
+    {
19
+        if (is_null($dam))
20
+            return null;
21
+        $dbo = new SpLuGetAllUserSettings();
22
+
23
+        $dbo->setSettings($dam->_settings);
24
+
25
+        return $dbo;
26
+    }
27
+
28
+
29
+    public static function execute($_user_id)
30
+    {
31
+        $values = DB::select('SELECT * FROM sp_lu_get_all_user_settings(:_user_id)', array(":_user_id" => $_user_id));
32
+        $dboValues = array();
33
+        foreach ($values as $value)
34
+            $dboValues[] = self::damToDbo($value);
35
+        return $dboValues;
36
+    }
37
+
38
+    public static function getMultipleJson($_user_id, $page, $perPage)
39
+    {
40
+        $values = DB::select('SELECT (SELECT count(*) FROM sp_lu_get_all_user_settings(:_user_id)) as count, (SELECT json_agg(q) FROM (SELECT * FROM sp_lu_get_all_user_settings(:_user_id) OFFSET (:page::int * :perPage::int) LIMIT :perPage) q) as data',
41
+            array(":_user_id" => $_user_id, ":page" => $page, ":perPage" => $perPage));
42
+        $value = $values[0];
43
+        if (is_null($value->data))
44
+        {
45
+            $value->data = '[]';
46
+        }
47
+        $data = LuStringUtils::convertJsonString($value->data);
48
+        return new LuMultipleDbo($value->count, $data);
49
+    }
50
+
51
+
52
+    /**
53
+    * @var json
54
+    */
55
+    protected $_Settings;
56
+    public function getSettings()
57
+    {
58
+        return $this->_Settings;
59
+    }
60
+    public function setSettings($value)
61
+    {
62
+        $this->_Settings = $value;
63
+    }
64
+}

+ 49
- 0
src/Auth/DataAccess/SP/SpLuGetUserSetting.php Visa fil

@@ -0,0 +1,49 @@
1
+<?php
2
+
3
+/**
4
+ * AUTO GENERATED BY LUTICATE GENERATOR
5
+ * ANY CHANGES WILL BE OVERWRITTEN
6
+ */
7
+
8
+namespace Luticate\Auth\DataAccess\SP;
9
+
10
+use Luticate\Utils\LuSpModel;
11
+use Luticate\Utils\LuMultipleDbo;
12
+use Luticate\Utils\LuStringUtils;
13
+use Illuminate\Support\Facades\DB;
14
+
15
+class SpLuGetUserSetting extends LuSpModel {
16
+
17
+    protected static function damToDbo($dam)
18
+    {
19
+        if (is_null($dam))
20
+            return null;
21
+        $dbo = new SpLuGetUserSetting();
22
+
23
+        $dbo->setSetting($dam->setting);
24
+
25
+        return $dbo;
26
+    }
27
+
28
+
29
+    public static function execute($_user_id, $_setting_name)
30
+    {
31
+        $values = DB::select('SELECT * FROM sp_lu_get_user_setting(:_user_id, :_setting_name)', array(":_user_id" => $_user_id, ":_setting_name" => $_setting_name));
32
+        return self::damToDbo($values[0]);
33
+    }
34
+
35
+
36
+
37
+    /**
38
+    * @var json
39
+    */
40
+    protected $_setting;
41
+    public function getSetting()
42
+    {
43
+        return $this->_setting;
44
+    }
45
+    public function setSetting($value)
46
+    {
47
+        $this->_setting = $value;
48
+    }
49
+}

Laddar…
Avbryt
Spara