Beispiel #1
0
 /**
  * Get priority form
  *
  * @return \Zend_Form
  */
 private function getForm()
 {
     $form = new Zend_Form();
     $resourceTypes = $this->auditService->getResourceTypes();
     $actionTypes = $this->auditService->getActionTypes();
     $form->addElement('select', 'resource_type', array('multioptions' => array('' => getGS('All')) + $resourceTypes, 'label' => getGS('Resource Type:'), 'onChange' => 'this.form.submit();'));
     $form->addElement('select', 'action_type', array('multioptions' => array('' => getGS('All')) + $actionTypes, 'label' => getGS('Action Type:'), 'onChange' => 'this.form.submit();'));
     return $form;
 }
 /**
  * Get priority form
  *
  * @return \Zend_Form
  */
 private function getForm()
 {
     $form = new Zend_Form();
     $translator = \Zend_Registry::get('container')->getService('translator');
     $resourceTypes = $this->auditService->getResourceTypes();
     $actionTypes = $this->auditService->getActionTypes();
     $form->addElement('select', 'resource_type', array('multioptions' => array('' => $translator->trans('All')) + $resourceTypes, 'label' => $translator->trans('Resource Type:', array(), 'logs'), 'onChange' => 'this.form.submit();'));
     $form->addElement('select', 'action_type', array('multioptions' => array('' => $translator->trans('All')) + $actionTypes, 'label' => $translator->trans('Action Type:', array(), 'logs'), 'onChange' => 'this.form.submit();'));
     return $form;
 }