change place for some properties in Config model
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user