public static function formatExportQuery($scope = '', $args = null)
    {
        $query = '';

        if ($scope === static::SCOPE_ALL) {
            $query = 'all';
        }

        if ($scope === static::SCOPE_CURRENT_PAGE) {
            $query = "page:$args";
        }

        if ($scope === static::SCOPE_SELECTED_ROWS) {
            $query = "selected:$args";
        }

        return [static::$queryName => $query];
    }
public static function formatExportQuery($scope = '', $args = null)
    {
        $query = '';

        if ($scope === static::SCOPE_ALL) {
            $query = 'all';
        }

        if ($scope === static::SCOPE_CURRENT_PAGE) {
            $query = "page:$args";
        }

        if ($scope === static::SCOPE_SELECTED_ROWS) {
            $query = "selected:$args";
        }

        return [static::$queryName => $query];
    }
public static function formatExportQuery ( $ scope = '' , $ args = null ) { $ query = '' ; if ( $ scope === static :: SCOPE_ALL ) { $ query = 'all' ; } if ( $ scope === static :: SCOPE_CURRENT_PAGE ) { $ query = "page:$args" ; } if ( $ scope === static :: SCOPE_SELECTED_ROWS ) { $ query = "selected:$args" ; } return [ static :: $ queryName => $ query ] ; }
Format query for export url.

@param int  $scope
@param null $args

@return array
Format query for export url .