code/CMSBatchActionHandler.php
protected function actionByName($name)
    {
        // Find the action handler
        $actions = $this->batchActions();
        if (!isset($actions[$name]['class'])) {
            throw new InvalidArgumentException("Invalid batch action: {$name}");
        }
        return $this->buildAction($actions[$name]['class']);
    }
protected function actionByName($name)
    {
        // Find the action handler
        $actions = $this->batchActions();
        if (!isset($actions[$name]['class'])) {
            throw new InvalidArgumentException("Invalid batch action: {$name}");
        }
        return $this->buildAction($actions[$name]['class']);
    }
protected function actionByName ( $ name ) { // Find the action handler $ actions = $ this -> batchActions ( ) ; if ( ! isset ( $ actions [ $ name ] [ 'class' ] ) ) { throw new InvalidArgumentException ( "Invalid batch action: {$name}" ) ; } return $ this -> buildAction ( $ actions [ $ name ] [ 'class' ] ) ; }
Get an action for a given name

@param string $name Name of the action
@return CMSBatchAction An instance of the given batch action
@throws InvalidArgumentException if invalid action name is passed.
Get an action for a given name