back end call
This commit is contained in:
@@ -5,7 +5,7 @@ use CodeIgniter\Model;
|
|||||||
class BackendModel extends Model
|
class BackendModel extends Model
|
||||||
{
|
{
|
||||||
|
|
||||||
const DEBUG_API_CALLS = true;
|
const DEBUG_API_CALLS = false;
|
||||||
private $wrenchboard; // internal use only - no overriding
|
private $wrenchboard; // internal use only - no overriding
|
||||||
public $USER = 'root';
|
public $USER = 'root';
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@@ -23,8 +23,6 @@ class BackendModel extends Model
|
|||||||
|
|
||||||
public function wrenchboard_api($in, $out = array()) {
|
public function wrenchboard_api($in, $out = array()) {
|
||||||
log_message('critical', "wrenchboard_api-STARTING" );
|
log_message('critical', "wrenchboard_api-STARTING" );
|
||||||
//$out = $in;
|
|
||||||
//$ret =1;
|
|
||||||
$this->wrenchboard_load();
|
$this->wrenchboard_load();
|
||||||
if (!is_array($in)) {
|
if (!is_array($in)) {
|
||||||
$in = array();
|
$in = array();
|
||||||
@@ -45,11 +43,11 @@ class BackendModel extends Model
|
|||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function wrenchboard_api2($in, $out) {
|
// public function wrenchboard_api2($in, $out) {
|
||||||
$this->wrenchboard_load();
|
// $this->wrenchboard_load();
|
||||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
// $ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||||
return $ret;
|
// return $ret;
|
||||||
}
|
// }
|
||||||
|
|
||||||
public function logMessage($str) {
|
public function logMessage($str) {
|
||||||
$this->wrenchboard_load();
|
$this->wrenchboard_load();
|
||||||
|
|||||||
Reference in New Issue
Block a user