Beispiel #1
0
 static function import($name = NULL, $set_owner = NULL)
 {
     if (!$name) {
         $name = data_db_name();
     }
     $export_filename = static::$config_prefix . $name;
     return parent::import($export_filename, $set_owner);
 }
Beispiel #2
0
 function __construct($init = [], $db_name = NULL, $db = NULL)
 {
     if (is_array($init)) {
         return parent::__construct($init);
     } else {
         $this->name = $init;
     }
     if ($db_name) {
         $this->db_name = $db_name;
     }
     if ($db) {
         $this->db = ref($db);
     }
     if ($this->db_name && !$this->db) {
         $this->db = ref(Database::by_name($db_name));
     }
     $this->__owner = ref($this->db);
 }