/**
  * Method to get the field options.
  *
  * @return  array   The field option objects.
  * @since   1.6
  */
 protected function getOptions()
 {
     $items = new Gamification\Rank\Ranks(JFactory::getDbo());
     $items->load();
     $options = $items->toOptions('id', 'title');
     // Merge any additional options in the XML definition.
     $options = array_merge(parent::getOptions(), $options);
     return $options;
 }
 /**
  * Method to get the field options.
  *
  * @return  array   The field option objects.
  * @since   1.6
  */
 protected function getOptions()
 {
     $groups = new Gamification\Rank\Ranks(JFactory::getDbo());
     $groups->load();
     $options = $groups->toOptions("id", "title");
     // Merge any additional options in the XML definition.
     $options = array_merge(parent::getOptions(), $options);
     return $options;
 }