/**
  * Method to get the field options.
  *
  * @return	array	The field option objects.
  * @since	1.6
  */
 protected function getOptions()
 {
     $options = array();
     $pts = JoomdleHelperProfiletypes::getProfiletypes('', 0, 1000, 'name', '', '');
     $option['value'] = 0;
     $option['text'] = JText::_('COM_JOOMDLE_NONE');
     $options[] = $option;
     if (is_array($pts)) {
         foreach ($pts as $pt) {
             $option['value'] = $pt->id;
             $option['text'] = $pt->name;
             $options[] = $option;
         }
     }
     return $options;
 }
 /**
  * Gets the list of users
  *
  * @return	mixed	An array of data items on success, false on failure.
  * @since	1.6
  */
 public function getItems()
 {
     $db = JFactory::getDBO();
     $search = $this->getState('filter.search');
     if ($search) {
         $searchEscaped = $db->Quote('%' . $db->getEscaped($search, true) . '%', false);
     } else {
         $searchEscaped = "";
     }
     $pagination = $this->getPagination();
     $limitstart = $pagination->limitstart;
     $limit = $pagination->limit;
     $listOrder = $this->state->get('list.ordering');
     $listDirn = $this->state->get('list.direction');
     $filter_order = $listOrder;
     $filter_order_Dir = $listDirn;
     $filter_type = $this->getState('filter.state');
     if ($filter_type == '*') {
         $filter_type = 0;
     }
     $items = JoomdleHelperProfiletypes::getProfiletypes($filter_type, $limitstart, $limit, $filter_order, $filter_order_Dir, $searchEscaped);
     return $items;
 }