function getListCount($query)
 {
     if ($this->skipjf) {
         return parent::_getListCount($query);
     }
     if ($this->translate === false) {
         return parent::_getListCount($query);
     }
     $this->skipSetRefTables = true;
     $this->db->setQuery($query);
     $this->db->query();
     $this->skipSetRefTables = false;
     return $this->db->getNumRows();
 }
 /**
  * Override query in order to extract ref tables data
  *
  * @return n/a
  */
 function query()
 {
     parent::query();
     if (!$this->_skipSetRefTables) {
         $this->setRefTables();
     }
     return $this->_cursor;
 }
 /**
  * Override query in order to extract ref tables data
  *
  * @return n/a
  */
 function query()
 {
     $success = parent::query();
     if ($success && !$this->_skipSetRefTables) {
         $this->setRefTables();
     }
     return $this->_cursor;
 }