Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
24 May 2013 at 17:49 UTC
Updated:
29 Jul 2014 at 22:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
markie commentedmultiple files affected
Comment #2
markie commented8 files affected by patch
Comment #3
oenie commentedAdd public access modifier in front of the functions to adhere to the new OOP standards.
You've also missed some occurrences of the function (be sure to replace them in messages as well !):
core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php, line 90:
function get_offset() {
core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php, line 364:
'#default_value' => $this->get_offset(),
core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php, line 282:
$this->assertEqual($view->getOffset(), $rand_number, 'Make sure get_offset uses the settings of setOffset.');
core/modules/views/lib/Drupal/views/Tests/Plugin/PagerTest.php, line 308:
$this->assertEqual($view->getOffset(), $rand_number, 'Make sure get_offset uses the settings of setOffset.');
core/modules/views/lib/Drupal/views/ViewExecutable.php, line 503:
return $this->pager->get_offset();
Comment #4
oenie commentedComment #5
markie commentedmissed items replaced. Public access added to functions.
Something to note, that I feel is outside of the scope of this task, is in the Counter class (Drupal\views\Plugin\views\field\Counter), line 53 has:
$count += ($pager->get_items_per_page() * $pager->get_current_page() + $pager->setOffset());Shouldn't this actually be
$count += ($pager->get_items_per_page() * $pager->get_current_page() + $pager->getOffset());?
(see line 9 of the patch)
Comment #7
markie commentedrerolled..
question from #5 still applies.
Comment #8
markie commentedreset status for patch testing goodness.
Comment #10
markie commentedrerolled
Comment #12
markie commented#10: views_rename_setOffset-2003276-10.patch queued for re-testing.
Comment #13
oenie commentedLooks good to me now !
Comment #14
alexpottNeeds a reroll
Comment #15
jibranreroll
Comment #16
aspilicious commentedComment #17
alexpottCommitted 99c2b59 and pushed to 8.x. Thanks!