WIP Address BMD Export
This commit is contained in:
@@ -43,6 +43,10 @@ class Layout extends mfLayout {
|
||||
return date("d.m.Y", $int);
|
||||
}
|
||||
|
||||
public function nl2ws($string) {
|
||||
return str_replace(["\n","\r","\t","\v"], " ", $string);
|
||||
}
|
||||
|
||||
/*
|
||||
* Gets mfBaseModel object from Cache or gets in from DB and saves it to Cache
|
||||
*/
|
||||
|
||||
@@ -7,6 +7,10 @@ class mfConfig {
|
||||
private $value;
|
||||
private $active;
|
||||
private $type;
|
||||
public $create_by;
|
||||
public $edit_by;
|
||||
public $create;
|
||||
public $edit;
|
||||
private $me;
|
||||
|
||||
public function __construct($name) {
|
||||
@@ -14,22 +18,27 @@ class mfConfig {
|
||||
|
||||
$name = $this->db->escape($name);
|
||||
$this->name = $name;
|
||||
|
||||
$me = new User();
|
||||
|
||||
|
||||
if(defined("INTERNAL_USER_ID")) {
|
||||
$me->id = INTERNAL_USER_ID;
|
||||
$me = new User(INTERNAL_USER_ID);
|
||||
} else {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
}
|
||||
$this->me = $me;
|
||||
|
||||
$res = $this->db->select("System", "*", "name='$name'");
|
||||
$res = $this->db->select("System", "*", "name='$name' LIMIT 1");
|
||||
if($this->db->num_rows($res)) {
|
||||
$data = $this->db->fetch_object($res);
|
||||
$this->id = $data->id;
|
||||
$this->value = $data->value;
|
||||
$this->active = $data->active;
|
||||
$this->type = $data->type;
|
||||
$this->create_by = $data->create_by;
|
||||
$this->edit_by = $data->edit_by;
|
||||
$this->create = $data->create;
|
||||
$this->edit = $data->edit;
|
||||
} else {
|
||||
$this->active = 1;
|
||||
$this->type = "string";
|
||||
@@ -54,7 +63,6 @@ class mfConfig {
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
|
||||
public function save() {
|
||||
$id = $this->id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user