コード例 #1
0
ファイル: actions.class.php プロジェクト: laiello/infoteknia
 public function executeDeleteSelected($request)
 {
     $this->selectedItems = $this->getRequestParameter('sf_admin_batch_selection', array());
     try {
         foreach (InfoPeer::retrieveByPks($this->selectedItems) as $object) {
             $object->delete();
         }
     } catch (PropelException $e) {
         $request->setError('delete', 'Could not delete the selected Infos. Make sure they do not have any associated items.');
         return $this->forward('info', 'list');
     }
     return $this->redirect('info/list');
 }