Use doConfigPageInit BMO method
Increase compliance with BMO. Decreases calls and improves responsiveness
This commit is contained in:
parent
7e50dbf2d2
commit
c9839eadc5
|
@ -110,7 +110,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
if ($freepbx == null) {
|
||||
throw new Exception("Not given a FreePBX Object");
|
||||
}
|
||||
|
||||
dbug('__construct called', debug_backtrace(2));
|
||||
$this->class_error = array();
|
||||
$this->FreePBX = $freepbx;
|
||||
$this->db = $freepbx->Database;
|
||||
|
@ -208,6 +208,11 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
}
|
||||
}
|
||||
|
||||
public function showPage() {
|
||||
dbug('showPage called', $_REQUEST);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Show form information - General
|
||||
*/
|
||||
|
@ -306,6 +311,8 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
}
|
||||
|
||||
public function phoneShowPage() {
|
||||
dbug($_REQUEST);
|
||||
dbug(debug_backtrace(0));
|
||||
$request = $_REQUEST;
|
||||
$action = !empty($request['action']) ? $request['action'] : '';
|
||||
$inputform = !empty($request['tech_hardware']) ? $request['tech_hardware'] : '';
|
||||
|
|
|
@ -14,6 +14,7 @@ if (!defined('FREEPBX_IS_AUTH')) {
|
|||
// function is called. This is where you do any changes. The page.foo.php
|
||||
// is only for DISPLAYING things. MVC is a cool idea, ya know?
|
||||
//
|
||||
dbug(debug_backtrace());
|
||||
$spage = FreePBX::create()->Sccp_manager;
|
||||
if (empty($spage->class_error)) {
|
||||
$display_page = $spage->phoneShowPage();
|
||||
|
|
|
@ -45,6 +45,7 @@ trait ajaxHelper {
|
|||
$request = $_REQUEST;
|
||||
$msg = array();
|
||||
$cmd_id = $request['command'];
|
||||
dbug('ajax', $cmd_id);
|
||||
switch ($cmd_id) {
|
||||
case 'savesettings':
|
||||
// Consolidate this into a separate method to improve legibility
|
||||
|
|
|
@ -153,6 +153,8 @@ trait bmoFunctions {
|
|||
$final = $this->sccp_conf_init[$id];
|
||||
}
|
||||
}
|
||||
|
||||
$i++;
|
||||
}
|
||||
return $final;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue