modules/archi/includes/archiAdresse.class.php
private function generatePaginationLinks($options = array())
    {
        //Pagination display
        $nbResult = 0;
        $nbPages = 0;
        $currentPage = 0;
        $nextPage = 0;
        $previousPage = 0;
        $nbResultPerPage = 10;
        $offset=4;
        $url = array();

        // Checking if all the parameters are set
        if (isset($options['nbResult'])) {
            $nbResult = $options['nbResult'];
        }
        if (isset($options['nbPages'])) {
            $nbPages= $options['nbPages'];
        }
        if (isset($options['currentPage'])) {
            $currentPage= $options['nbResult'];
        }
        if (isset($options['nextPage'])) {
            $nextPage = $options['nextPage'];
        }
        if (isset($options['previousPage'])) {
            $previousPage = $options['previousPage'];
        }
        if (isset($options['nbResultPerPage'])) {
            $nbResultPerPage= $options['nbResultPerPage'];
        }
        if (isset($options['offset'])) {
            $offset= $options['offset'];
        }

        //Link creation
        for ($i=0; $i<$nbPages; $i++) {
            $paramCreerUrl = $this->variablesGet;
            $paramCreerUrl['debut'] = $i*$nbResultPerPage;
            $url[]=$this->creerUrl(
                '',
                '',
                $paramCreerUrl
            );
        }
        return $url;
    }
private function generatePaginationLinks($options = array())
    {
        //Pagination display
        $nbResult = 0;
        $nbPages = 0;
        $currentPage = 0;
        $nextPage = 0;
        $previousPage = 0;
        $nbResultPerPage = 10;
        $offset=4;
        $url = array();

        // Checking if all the parameters are set
        if (isset($options['nbResult'])) {
            $nbResult = $options['nbResult'];
        }
        if (isset($options['nbPages'])) {
            $nbPages= $options['nbPages'];
        }
        if (isset($options['currentPage'])) {
            $currentPage= $options['nbResult'];
        }
        if (isset($options['nextPage'])) {
            $nextPage = $options['nextPage'];
        }
        if (isset($options['previousPage'])) {
            $previousPage = $options['previousPage'];
        }
        if (isset($options['nbResultPerPage'])) {
            $nbResultPerPage= $options['nbResultPerPage'];
        }
        if (isset($options['offset'])) {
            $offset= $options['offset'];
        }

        //Link creation
        for ($i=0; $i<$nbPages; $i++) {
            $paramCreerUrl = $this->variablesGet;
            $paramCreerUrl['debut'] = $i*$nbResultPerPage;
            $url[]=$this->creerUrl(
                '',
                '',
                $paramCreerUrl
            );
        }
        return $url;
    }
private function generatePaginationLinks ( $ options = array ( ) ) { //Pagination display $ nbResult = 0 ; $ nbPages = 0 ; $ currentPage = 0 ; $ nextPage = 0 ; $ previousPage = 0 ; $ nbResultPerPage = 10 ; $ offset = 4 ; $ url = array ( ) ; // Checking if all the parameters are set if ( isset ( $ options [ 'nbResult' ] ) ) { $ nbResult = $ options [ 'nbResult' ] ; } if ( isset ( $ options [ 'nbPages' ] ) ) { $ nbPages = $ options [ 'nbPages' ] ; } if ( isset ( $ options [ 'currentPage' ] ) ) { $ currentPage = $ options [ 'nbResult' ] ; } if ( isset ( $ options [ 'nextPage' ] ) ) { $ nextPage = $ options [ 'nextPage' ] ; } if ( isset ( $ options [ 'previousPage' ] ) ) { $ previousPage = $ options [ 'previousPage' ] ; } if ( isset ( $ options [ 'nbResultPerPage' ] ) ) { $ nbResultPerPage = $ options [ 'nbResultPerPage' ] ; } if ( isset ( $ options [ 'offset' ] ) ) { $ offset = $ options [ 'offset' ] ; } //Link creation for ( $ i = 0 ; $ i < $ nbPages ; $ i ++ ) { $ paramCreerUrl = $ this -> variablesGet ; $ paramCreerUrl [ 'debut' ] = $ i * $ nbResultPerPage ; $ url [ ] = $ this -> creerUrl ( '' , '' , $ paramCreerUrl ) ; } return $ url ; }
Generate pagination links

@param unknown $options
@return multitype:string
Generate pagination links