public function addBulkAction($handlerClassName, $action = null)
    {
        if (!class_exists($handlerClassName)) {
            user_error("Bulk action handler not found: $handlerClassName", E_USER_ERROR);
        }

        $handler = Injector::inst()->get($handlerClassName);
        $urlSegment = $handler->config()->get('url_segment');
        if (!$urlSegment)
        {
            $rc = new ReflectionClass($handlerClassName);
            $urlSegment = $rc->getShortName();
        }

        $this->config['actions'][$urlSegment] = $handlerClassName;

        return $this;
    }
public function addBulkAction($handlerClassName, $action = null)
    {
        if (!class_exists($handlerClassName)) {
            user_error("Bulk action handler not found: $handlerClassName", E_USER_ERROR);
        }

        $handler = Injector::inst()->get($handlerClassName);
        $urlSegment = $handler->config()->get('url_segment');
        if (!$urlSegment)
        {
            $rc = new ReflectionClass($handlerClassName);
            $urlSegment = $rc->getShortName();
        }

        $this->config['actions'][$urlSegment] = $handlerClassName;

        return $this;
    }
public function addBulkAction ( $ handlerClassName , $ action = null ) { if ( ! class_exists ( $ handlerClassName ) ) { user_error ( "Bulk action handler not found: $handlerClassName" , E_USER_ERROR ) ; } $ handler = Injector :: inst ( ) -> get ( $ handlerClassName ) ; $ urlSegment = $ handler -> config ( ) -> get ( 'url_segment' ) ; if ( ! $ urlSegment ) { $ rc = new ReflectionClass ( $ handlerClassName ) ; $ urlSegment = $ rc -> getShortName ( ) ; } $ this -> config [ 'actions' ] [ $ urlSegment ] = $ handlerClassName ; return $ this ; }
Lets you add custom bulk actions to the bulk manager interface.
Exisiting handler will be replaced

@param string $handlerClassName RequestHandler class name for this action.
@param string $action Specific RequestHandler action to be called.

@return $this Current BulkManager instance
Lets you add custom bulk actions to the bulk manager interface . Exisiting handler will be replaced