Joomla get('Items') and how it works
Asked 07 September, 2021
Viewed 829 times
  • 60
Votes

I am looking at line 34 of /administrator/components/com_contact/views/contacts/view.html.php where is says $this->items = $this->get('Items'); What I don't understand is how that is actually calling the protected function getListQuery() on line 123 of /administrator/components/com_contact/models/contacts.php

There are also some other things I don't understand how are working... like

$this->pagination   = $this->get('Pagination');
$this->state        = $this->get('State');

What are these calling? I looked at the documentation for "get()" but it doesn't say what these are actually calling because I don't see any methods called getPagination, getState or getItems... It appears the get('Items') is somehow magically calling getListQuery().

1 Answer