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 82... Line 82...
82
        }
82
        }
83
        $this->build();
83
        $this->build();
84
    }
84
    }
Line 85... Line 85...
85
 
85
 
86
    // }}}
-
 
87
    // {{{ build()
-
 
88
 
-
 
89
    /**
-
 
90
     * Generate or refresh the links and paged data after a call to setOptions()
-
 
91
     *
-
 
92
     * @access public
-
 
93
     */
-
 
94
    function build()
-
 
95
    {
-
 
96
        //reset
-
 
97
        $this->_pageData = array();
-
 
98
        $this->links = '';
-
 
99
 
-
 
100
        $this->_generatePageData();
-
 
101
        $this->_setFirstLastText();
-
 
102
 
-
 
103
        if ($this->_totalPages > (2 * $this->_delta + 1)) {
-
 
104
            $this->links .= $this->_printFirstPage();
-
 
105
        }
-
 
106
 
-
 
107
        $this->links .= $this->_getBackLink();
-
 
108
        $this->links .= $this->_getPageLinks();
-
 
109
        $this->links .= $this->_getNextLink();
-
 
110
 
-
 
111
        $this->linkTags .= $this->_getFirstLinkTag();
-
 
112
        $this->linkTags .= $this->_getPrevLinkTag();
-
 
113
        $this->linkTags .= $this->_getNextLinkTag();
-
 
114
        $this->linkTags .= $this->_getLastLinkTag();
-
 
115
 
-
 
116
        if ($this->_totalPages > (2 * $this->_delta + 1)) {
-
 
117
            $this->links .= $this->_printLastPage();
-
 
118
        }
-
 
119
    }
-
 
120
 
-
 
121
    // }}}
86
    // }}}
Line 122... Line 87...
122
    // {{{ getPageIdByOffset()
87
    // {{{ getPageIdByOffset()
123
 
88
 
124
    /**
89
    /**