Example #1
0
 protected function addSubView()
 {
     if (array_key_exists("numbercleanup", $this->base->plugins)) {
         $this->subview->numberclean = json_encode($this->base->plugins['numbercleanup']);
     } else {
         $this->subview->numberclean = json_encode(array());
     }
     parent::addSubView();
 }
Example #2
0
 protected function addSubView()
 {
     if (array_key_exists("simpleroute", $this->base->plugins)) {
         $this->subview->routes = $this->base->plugins['simpleroute'];
     } else {
         $this->subview->routes = array();
     }
     $this->subview->outboundPatterns = Doctrine::getTable('SimpleRoute')->findAll(Doctrine::HYDRATE_ARRAY);
     $this->subview->trunks = array();
     $this->subview->trunkoptions = "";
     foreach (Doctrine::getTable('Trunk')->findAll(Doctrine::HYDRATE_ARRAY) as $trunk) {
         $this->subview->trunks[$trunk['trunk_id']] = $trunk;
         $this->subview->trunkoptions .= "<option value='" . $trunk["trunk_id"] . "'>" . $trunk["name"] . "</option>";
     }
     $this->subview->destinations = array();
     $this->subview->destinationoptions = "";
     foreach (Doctrine::getTable('SimpleRoute')->findAll(Doctrine::HYDRATE_ARRAY) as $dest) {
         $this->subview->destinations[$dest['simple_route_id']] = $dest;
         $this->subview->destinationoptions .= "<option value='" . $dest["simple_route_id"] . "'>" . $dest["name"] . "</option>";
     }
     parent::addSubView();
 }
Example #3
0
 protected function addSubView()
 {
     $this->subview->outboundPatterns = Doctrine::getTable('SimpleRoute')->findAll(Doctrine::HYDRATE_ARRAY);
     $this->subview->contexts = Doctrine::getTable('Context')->findAll(Doctrine::HYDRATE_ARRAY);
     parent::addSubView();
 }
Example #4
0
 protected function addSubView()
 {
     $this->subview->outboundPatterns = kohana::config('simpleroute.outbound_patterns');
     $this->subview->contexts = Doctrine::getTable('Context')->findAll(Doctrine::HYDRATE_ARRAY);
     parent::addSubView();
 }