public function __construct()
 {
     parent::__construct();
     if (array_key_exists('user', $this->request)) {
         $this->user = $this->request['user'];
     }
     $this->comment("User is " . $this->user);
 }
 public function __construct()
 {
     parent::__construct();
     $conf_file = $this->request['key_value'];
     $this->debug("RECEIVED REQUEST FOR {$conf_file}");
     $mod_name = sprintf('mod_%s', str_replace('.conf', '', $conf_file));
     $this->comment("module name is {$mod_name}");
     if (!$this->is_mod_enabled($mod_name) && !$this->is_modless_conf($this->request['key_value'])) {
         $this->comment('module not enabled and not modless config file');
         $this->file_not_found();
     }
     $this->xmlw->startElement('section');
     $this->xmlw->writeAttribute('name', 'configuration');
     $this->xmlw->writeAttribute('description', 'FreeSWITCH Configuration');
 }
 /**
  * This is where we instantiate our parent and set up our CDR object
  */
 public function __construct()
 {
     parent::__construct();
     $cdr = stripslashes($this->request['cdr']);
     $this->xml_cdr = new SimpleXMLElement($cdr);
 }