src/php/main/Eix/Services/Data/Responders/CollectionManager.php
protected function getBatchActionConfirmationResponse($actionId, array $selectedIds)
    {
        $response = null;

        if (empty($selectedIds)) {
            // No IDs, so redirect to the index page.
            $response = $this->getIndexRedirectionResponse();
        } else {
            // There are IDs, so display the confirmation page.
            $response = $this->getHtmlResponse();
            $collectionName = $this->getCollectionName();
            $response->setTemplateId(sprintf('%s/%s',
                $collectionName,
                $actionId
            ));
            $response->setData($collectionName, $selectedIds);
        }

        return $response;
    }
protected function getBatchActionConfirmationResponse($actionId, array $selectedIds)
    {
        $response = null;

        if (empty($selectedIds)) {
            // No IDs, so redirect to the index page.
            $response = $this->getIndexRedirectionResponse();
        } else {
            // There are IDs, so display the confirmation page.
            $response = $this->getHtmlResponse();
            $collectionName = $this->getCollectionName();
            $response->setTemplateId(sprintf('%s/%s',
                $collectionName,
                $actionId
            ));
            $response->setData($collectionName, $selectedIds);
        }

        return $response;
    }
protected function getBatchActionConfirmationResponse ( $ actionId , array $ selectedIds ) { $ response = null ; if ( empty ( $ selectedIds ) ) { // No IDs, so redirect to the index page. $ response = $ this -> getIndexRedirectionResponse ( ) ; } else { // There are IDs, so display the confirmation page. $ response = $ this -> getHtmlResponse ( ) ; $ collectionName = $ this -> getCollectionName ( ) ; $ response -> setTemplateId ( sprintf ( '%s/%s' , $ collectionName , $ actionId ) ) ; $ response -> setData ( $ collectionName , $ selectedIds ) ; } return $ response ; }
Returns a response which displays a confirmation page for a batch
process.
@param string $actionId the ID of the action to perform. This will be
part of the URL.
@param array $selectedIds the IDs onto which the action would be
performed.
@return Http
Returns a response which displays a confirmation page for a batch process .