~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Entity/Setting.php

  • Committer: Dan Garner
  • Date: 2015-08-11 09:29:02 UTC
  • mto: This revision was merged to the branch mainline in revision 453.
  • Revision ID: git-v1:a86fb4369b7395c13367577d23b14c0ab4528c1a
Transitions fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
namespace Xibo\Entity;
10
10
 
11
11
 
 
12
use Xibo\Storage\PDOConnect;
 
13
 
12
14
/**
13
15
 * Class Setting
14
16
 * @package Xibo\Entity
18
20
    use EntityTrait;
19
21
    public $setting;
20
22
    public $value;
 
23
 
 
24
    public function save()
 
25
    {
 
26
        PDOConnect::update('UPDATE `setting` SET `value` = :value WHERE `setting` = :setting', ['setting' => $this->setting, 'value' => $this->value]);
 
27
    }
21
28
}
 
 
b'\\ No newline at end of file'