Esempio n. 1
0
 public function indexAction()
 {
     $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuPrivacy'), array('action' => 'index'));
     $privacyMapper = new PrivacyMapper();
     $this->getView()->set('privacy', $privacyMapper->getPrivacy());
     $this->getView()->set('privacyShow', $privacyMapper->getPrivacy(array('show' => 1)));
 }
Esempio n. 2
0
 public function indexAction()
 {
     $this->getLayout()->getAdminHmenu()->add($this->getTranslator()->trans('menuPrivacy'), array('action' => 'index'));
     $privacyMapper = new PrivacyMapper();
     if ($this->getRequest()->getPost('check_privacys')) {
         if ($this->getRequest()->getPost('action') == 'delete') {
             foreach ($this->getRequest()->getPost('check_privacys') as $privacyId) {
                 $privacyMapper->delete($privacyId);
             }
         }
     }
     $privacys = $privacyMapper->getPrivacy();
     $this->getView()->set('privacys', $privacys);
 }