back end call

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-16 17:34:43 -04:00
parent 5bcfeac3c4
commit 69327d8e04
+6 -8
View File
@@ -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();