change place for some properties in Config model

This commit is contained in:
Manuel Raynaud
2013-01-10 16:51:37 +01:00
parent dc8984b306
commit 2bbbd74ea4
2 changed files with 8 additions and 8 deletions

View File

@@ -87,7 +87,7 @@ abstract class Base
/** /**
* *
* @param \NotORM $NotORM * @param \NotORM $NotORM
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
*/ */
public function __construct(\NotORM $NotORM, ContainerInterface $container) public function __construct(\NotORM $NotORM, ContainerInterface $container)

View File

@@ -31,6 +31,13 @@ class Config extends Base
protected $secure; protected $secure;
protected $hidden; protected $hidden;
protected $properties = array(
"name",
"value",
"secure",
"hidden"
);
public function getName() public function getName()
{ {
return $this->name; return $this->name;
@@ -71,13 +78,6 @@ class Config extends Base
$this->hidden = $hidden; $this->hidden = $hidden;
} }
protected $properties = array(
"name",
"value",
"secure",
"hidden"
);
public function read($search, $default) public function read($search, $default)
{ {
$result = $this->findOneBy("name",$search); $result = $this->findOneBy("name",$search);