22 lines
458 B
PHP
22 lines
458 B
PHP
<?php
|
|
|
|
class ADBStatus extends mfBaseModel {
|
|
|
|
public function init() {
|
|
$this->db = FronkDB::singleton(ADDRESSDB_DBHOST, ADDRESSDB_DBUSER, ADDRESSDB_DBPASS, ADDRESSDB_DBNAME);
|
|
$this->table = "Status";
|
|
}
|
|
|
|
public function getApiArray() {
|
|
if(!$this->id) {
|
|
return false;
|
|
}
|
|
|
|
$a = [];
|
|
$a['code'] = (int)$this->code;
|
|
$a['text'] = $this->name;
|
|
$a['flags'] = [];
|
|
|
|
return $a;
|
|
}
|
|
} |