Beispiel #1
0
 /**
  * List all Music on Hold sounds
  */
 public function indexAction()
 {
     $objInspector = new Snep_Inspector('Sounds');
     $this->view->error = array_pop($objInspector->getInspects());
     $this->view->breadcrumb = Snep_Breadcrumb::renderPath(array($this->view->translate("Configure"), $this->view->translate("Music on Hold Sessions")));
     $this->view->url = $this->getFrontController()->getBaseUrl() . "/" . $this->getRequest()->getControllerName();
     $this->view->modes = array('files' => $this->view->translate('Directory'), 'mp3' => $this->view->translate('MP3'), 'quietmp3' => $this->view->translate('Normal'), 'mp3nb' => $this->view->translate('Without buffer'), 'quietmp3nb' => $this->view->translate('Without buffer quiet'), 'custom' => $this->view->translate('Custom application'));
     Snep_SoundFiles_Manager::syncFiles();
     $this->view->sections = Snep_SoundFiles_Manager::getClasses();
     $this->view->filter = array(array("url" => "{$this->getFrontController()->getBaseUrl()}/{$this->getRequest()->getControllerName()}/add/", "display" => $this->view->translate("Add Session"), "css" => "include"));
 }