remove _get and _set magic method on Base model

This commit is contained in:
Manuel Raynaud
2013-01-10 16:49:47 +01:00
parent 673d8b13da
commit dc8984b306
4 changed files with 206 additions and 55 deletions

View File

@@ -1,5 +1,25 @@
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) OpenStudio */
/* email : info@thelia.net */
/* web : http://www.thelia.net */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 3 of the License */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* */
/*************************************************************************************/
namespace Thelia\Model;
use Thelia\Model\Base\Base;
@@ -11,6 +31,45 @@ class Config extends Base
protected $secure;
protected $hidden;
public function getName()
{
return $this->name;
}
public function setName($name)
{
$this->name = $name;
}
public function getValue()
{
return $this->value;
}
public function setValue($value)
{
$this->value = $value;
}
public function getSecure()
{
return $this->secure;
}
public function setSecure($secure)
{
$this->secure = $secure;
}
public function getHidden()
{
return $this->hidden;
}
public function setHidden($hidden)
{
$this->hidden = $hidden;
}
protected $properties = array(
"name",