Created
April 13, 2011 05:54
-
-
Save bshaffer/917036 to your computer and use it in GitHub Desktop.
Hadori: from actions.class.php...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class autoSf_guard_user_oldActions extends sfActions | |
{ | |
// .... | |
public function executeBatch(sfWebRequest $request) | |
{ | |
if (!$ids = $request->getParameter('ids')) | |
{ | |
$this->getUser()->setFlash('error', 'You must at least select one item.'); | |
} | |
elseif (!$action = $request->getParameter('batch_action')) | |
{ | |
$this->getUser()->setFlash('error', 'You must select an action to execute on the selected items.'); | |
} | |
$method = sprintf('execute%s', ucfirst($action)); | |
$this->$method($request); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment