Esempio n. 1
0
 public function executeBatchToggle_status(sfWebRequest $request)
 {
     $ids = $request->getParameter('ids');
     $users = UserPeer::retrieveByPks($ids);
     foreach ($users as $user) {
         $user->ToggleStatus();
     }
     $this->getUser()->setFlash('notice', 'Status is changed successfully.');
     $this->redirect('@user');
 }