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
|
||||
*/
|
||||
public function __construct(\NotORM $NotORM, ContainerInterface $container)
|
||||
|
||||
@@ -31,6 +31,13 @@ class Config extends Base
|
||||
protected $secure;
|
||||
protected $hidden;
|
||||
|
||||
protected $properties = array(
|
||||
"name",
|
||||
"value",
|
||||
"secure",
|
||||
"hidden"
|
||||
);
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
@@ -71,13 +78,6 @@ class Config extends Base
|
||||
$this->hidden = $hidden;
|
||||
}
|
||||
|
||||
protected $properties = array(
|
||||
"name",
|
||||
"value",
|
||||
"secure",
|
||||
"hidden"
|
||||
);
|
||||
|
||||
public function read($search, $default)
|
||||
{
|
||||
$result = $this->findOneBy("name",$search);
|
||||
|
||||
Reference in New Issue
Block a user