public function __construct($filter = null)
 {
     if (null === $filter) {
         $filter = new Model_TestPlanFilter();
     }
     $this->setFilter($filter);
     $this->setMapper(Model_DBMapper_TestPlanMapper::get_instance());
 }
 public function showbrowserslistAction()
 {
     try {
         $id = $this->getRequest_ID();
         /** @var $m Model_DBMapper_TestPlanMapper */
         $m = Model_DBMapper_TestPlanMapper::get_instance();
         /** @var $o Model_DBObject_TestPlan */
         $o = $m->find($id);
         if (!isset($o)) {
             throw new Exception('There is no such Test Plan');
         }
         $this->getAcl()->checkAvailable(Model_ACL::TASK_QA_TEST_PLAN_VIEW, $o->getIdApplication());
         $this->view->assign("browsers", $m->findDependentBrowsers($id));
     } catch (Exception $ex) {
         echo $ex->getMessage();
     }
 }
Ejemplo n.º 3
0
 protected function getTestPlanMapper()
 {
     if (null === $this->_test_plan_mapper) {
         $this->setTestPlanMapper(Model_DBMapper_TestPlanMapper::get_instance());
     }
     return $this->_test_plan_mapper;
 }