Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
d3d992d4
Commit
d3d992d4
authored
Nov 23, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding paginator comments.
parent
dfb3d35f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
paginator.php
laravel/paginator.php
+7
-0
No files found.
laravel/paginator.php
View file @
d3d992d4
...
@@ -330,6 +330,10 @@ class Paginator {
...
@@ -330,6 +330,10 @@ class Paginator {
{
{
$pages
=
array
();
$pages
=
array
();
// To generate the range of page links, we will iterate through each page
// and, if the current page matches the page, we will generate a span,
// otherwise we will generate a link for the page. The span elements
// will be assigned the "current" CSS class for convenient styling.
for
(
$page
=
$start
;
$page
<=
$end
;
$page
++
)
for
(
$page
=
$start
;
$page
<=
$end
;
$page
++
)
{
{
if
(
$this
->
page
==
$page
)
if
(
$this
->
page
==
$page
)
...
@@ -355,6 +359,9 @@ class Paginator {
...
@@ -355,6 +359,9 @@ class Paginator {
*/
*/
protected
function
link
(
$page
,
$text
,
$class
)
protected
function
link
(
$page
,
$text
,
$class
)
{
{
// First we need to construct the link's query string. This consists
// of the page number and any developer specified items that should
// be appended to the query string.
$query
=
'?page='
.
$page
.
$this
->
appendage
(
$this
->
appends
);
$query
=
'?page='
.
$page
.
$this
->
appendage
(
$this
->
appends
);
return
HTML
::
link
(
URI
::
current
()
.
$query
,
$text
,
compact
(
'class'
),
Request
::
secure
());
return
HTML
::
link
(
URI
::
current
()
.
$query
,
$text
,
compact
(
'class'
),
Request
::
secure
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment