Ejemplo n.º 1
0
 public function classificationAction()
 {
     $class = new table_Classification();
     $this->view->sectors = $class->getSector($this->_selectedSector);
     $this->view->subsectors = $class->getSubsector($this->_selectedSector, $this->_selectedSubsector);
     $this->view->segments = $class->getSegment($this->_selectedSector, $this->_selectedSubsector, $this->_selectedSegment);
     $companies = new table_Companies();
     $this->view->companies = $companies->getCompanies();
     if ($this->_selectedSubsector == null && $this->_selectedSegment == null) {
         $this->view->showCompanies = false;
     } else {
         $this->view->showCompanies = true;
     }
 }
Ejemplo n.º 2
0
 public function researchAction()
 {
     $this->view->navigation = null;
     $sector = $this->view->selectedSector = $this->_request->getPost('sector');
     $subsector = $this->view->selectedSubsector = $this->_request->getPost('subsector');
     $segment = $this->view->selectedSegment = $this->_request->getPost('segment');
     //$companies = new table_Companies();
     //$this->view->companies = $companies->fetchAll();
     $class = new table_Classification();
     //$this->view->class = $class->fetchAll();
     $this->view->sector = $class->getSector($sector);
     $this->view->subsector = $class->getSubsector($sector, $subsector);
     $this->view->segment = $class->getSegment($sector, $subsector, $segment);
     $this->view->companies = $class->getClassification();
 }