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