src/Action/Bulk/BaseAction.php
protected function _processIds()
    {
        $ids = $this->_controller()->request->getData('id');

        $all = false;
        if (is_array($ids)) {
            $all = Hash::get($ids, '_all', false);
            unset($ids['_all']);
        }

        if (!is_array($ids)) {
            throw new BadRequestException('Bad request data');
        }

        if ($all) {
            foreach ($ids as $key => $value) {
                $ids[$key] = 1;
            }
            $ids = array_keys($ids);
        }

        $ids = array_filter($ids);

        return array_values($ids);
    }
protected function _processIds()
    {
        $ids = $this->_controller()->request->getData('id');

        $all = false;
        if (is_array($ids)) {
            $all = Hash::get($ids, '_all', false);
            unset($ids['_all']);
        }

        if (!is_array($ids)) {
            throw new BadRequestException('Bad request data');
        }

        if ($all) {
            foreach ($ids as $key => $value) {
                $ids[$key] = 1;
            }
            $ids = array_keys($ids);
        }

        $ids = array_filter($ids);

        return array_values($ids);
    }
protected function _processIds ( ) { $ ids = $ this -> _controller ( ) -> request -> getData ( 'id' ) ; $ all = false ; if ( is_array ( $ ids ) ) { $ all = Hash :: get ( $ ids , '_all' , false ) ; unset ( $ ids [ '_all' ] ) ; } if ( ! is_array ( $ ids ) ) { throw new BadRequestException ( 'Bad request data' ) ; } if ( $ all ) { foreach ( $ ids as $ key => $ value ) { $ ids [ $ key ] = 1 ; } $ ids = array_keys ( $ ids ) ; } $ ids = array_filter ( $ ids ) ; return array_values ( $ ids ) ; }
Retrieves a list of ids to process

@return array
Retrieves a list of ids to process