예제 #1
0
 public function httpPostForHtml()
 {
     $operation = $this->getRequest()->getParameter('operation');
     $response = NULL;
     switch ($operation) {
         case 'archive_selected':
             $response = $this->httpPostArchiveForHtml();
             break;
         default:
             $response = parent::httpPostForHtml();
     }
     return $response;
 }
예제 #2
0
 public function httpPostForHtml()
 {
     $operation = $this->getRequest()->getParameter('operation');
     $response = NULL;
     switch ($operation) {
         case 'enable_selected':
             $response = $this->httpPostEnableForHtml();
             break;
         case 'disable_selected':
             $response = $this->httpPostDisableForHtml();
             break;
         case 'promote_selected':
             $response = $this->httpPostPromoteForHtml();
             break;
         case 'demote_selected':
             $response = $this->httpPostDemoteForHtml();
             break;
         default:
             $response = parent::httpPostForHtml();
             $response->setData('groups', $this->getGroups());
     }
     return $response;
 }