I'm learning Joomla Extension development and overriding getListQuery()
method of a model that extends JModelList
.
Now the problem is that we can retrieve a list of data from database using following which is working fine:
$db = $this->getDbo(); $query = $db->getQuery(true); $query->select('id,title,state,company')->from($db->quoteName('#__books'));
But my ebook use following statement
$query->select( $this->getState('list.select','a.id, a.title,' .'a.state, a.company'));
I understand the
getState()
method but why does the ebook author usegetState()
in select statement? What is the purpose of using this and where the 'list.select' property will be defined?