Exemplo n.º 1
0
 /**
  * Browse all options.
  */
 public function browse()
 {
     $groupParams = array('name' => self::$_gName);
     $optionValue = CRM_Core_OptionValue::getRows($groupParams, $this->links(), 'weight');
     $gName = self::$_gName;
     $returnURL = CRM_Utils_System::url("civicrm/admin/report/options/{$gName}", "reset=1");
     $filter = "option_group_id = " . self::$_gId;
     $session = new CRM_Core_Session();
     $session->replaceUserContext($returnURL);
     CRM_Utils_Weight::addOrder($optionValue, 'CRM_Core_DAO_OptionValue', 'id', $returnURL, $filter);
     $this->assign('rows', $optionValue);
 }