code/libraries/joomlatools/library/controller/toolbar/actionbar.php
protected function _commandExport(KControllerToolbarCommand $command)
    {
        //Get the states
        $states = $this->getController()->getModel()->getState()->getValues();

        unset($states['limit']);
        unset($states['offset']);

        $states['format'] = 'csv';

        //Get the query options
        $query  = http_build_query($states, '', '&');
        $option = $this->getIdentifier()->package;
        $view   = $this->getController()->getView()->getName();

        $command->href = 'option=com_'.$option.'&view='.$view.'&'.$query;
    }
protected function _commandExport(KControllerToolbarCommand $command)
    {
        //Get the states
        $states = $this->getController()->getModel()->getState()->getValues();

        unset($states['limit']);
        unset($states['offset']);

        $states['format'] = 'csv';

        //Get the query options
        $query  = http_build_query($states, '', '&');
        $option = $this->getIdentifier()->package;
        $view   = $this->getController()->getView()->getName();

        $command->href = 'option=com_'.$option.'&view='.$view.'&'.$query;
    }
protected function _commandExport ( KControllerToolbarCommand $ command ) { //Get the states $ states = $ this -> getController ( ) -> getModel ( ) -> getState ( ) -> getValues ( ) ; unset ( $ states [ 'limit' ] ) ; unset ( $ states [ 'offset' ] ) ; $ states [ 'format' ] = 'csv' ; //Get the query options $ query = http_build_query ( $ states , '' , '&' ) ; $ option = $ this -> getIdentifier ( ) -> package ; $ view = $ this -> getController ( ) -> getView ( ) -> getName ( ) ; $ command -> href = 'option=com_' . $ option . '&view=' . $ view . '&' . $ query ; }
Export Toolbar Command

@param   KControllerToolbarCommand $command  A KControllerToolbarCommand object
@return  void
Export Toolbar Command