Subversion Repositories Applications.papyrus

Rev

Rev 848 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 848 Rev 1713
Line 73... Line 73...
73
        }
73
        }
74
        $this->build();
74
        $this->build();
75
    }
75
    }
Line 76... Line 76...
76
 
76
 
77
    // }}}
-
 
78
    // {{{ build()
-
 
79
 
-
 
80
    /**
-
 
81
     * Generate or refresh the links and paged data after a call to setOptions()
-
 
82
     *
-
 
83
     * @access public
-
 
84
     */
-
 
85
    function build()
-
 
86
    {
-
 
87
        //reset
-
 
88
        $this->_pageData = array();
-
 
89
        $this->links = '';
-
 
90
 
-
 
91
        $this->_generatePageData();
-
 
92
        $this->_setFirstLastText();
-
 
93
 
-
 
94
        $this->links .= $this->_getBackLink();
-
 
95
        $this->links .= $this->_getPageLinks();
-
 
96
        $this->links .= $this->_getNextLink();
-
 
97
 
-
 
98
        $this->linkTags .= $this->_getFirstLinkTag();
-
 
99
        $this->linkTags .= $this->_getPrevLinkTag();
-
 
100
        $this->linkTags .= $this->_getNextLinkTag();
-
 
101
        $this->linkTags .= $this->_getLastLinkTag();
-
 
102
    }
-
 
103
 
-
 
104
    // }}}
77
    // }}}
Line 105... Line 78...
105
    // {{{ getPageIdByOffset()
78
    // {{{ getPageIdByOffset()
106
 
79
 
107
    /**
80
    /**
Line 186... Line 159...
186
        } else {
159
        } else {
187
            $back_html = '';
160
            $back_html = '';
188
        }
161
        }
Line 189... Line 162...
189
 
162
 
190
        if (!is_null($pageID)) {
-
 
191
            $_sav = $this->_currentPage;
-
 
192
            $this->_currentPage = $pageID;
-
 
193
 
163
        if (!is_null($pageID)) {
194
            $this->links = '';
164
            $this->links = '';
195
            if ($this->_totalPages > $this->_delta) {
165
            if ($this->_totalPages > $this->_delta) {
196
                $this->links .= $this->_printFirstPage();
166
                $this->links .= $this->_printFirstPage();
-
 
167
            }
-
 
168
 
-
 
169
            $_sav = $this->_currentPage;
-
 
170
            $this->_currentPage = $pageID;
197
            }
171
 
198
            $this->links .= $this->_getBackLink('', $back_html);
172
            $this->links .= $this->_getBackLink('', $back_html);
199
            $this->links .= $this->_getPageLinks();
173
            $this->links .= $this->_getPageLinks();
200
            $this->links .= $this->_getNextLink('', $next_html);
174
            $this->links .= $this->_getNextLink('', $next_html);
201
            if ($this->_totalPages > $this->_delta) {
175
            if ($this->_totalPages > $this->_delta) {