Example #1
0
 /**
  * Optgroups
  *
  * @see $this->get()
  */
 public function optgroups($options = [])
 {
     $data = $this->get($options);
     $options_map = !empty($this->options_map) ? $this->options_map : [$this->column_prefix . 'name' => 'name'];
     if (!empty($this->optgroups_map)) {
         $optgroups_map = $this->optgroups_map;
         $optgroups_map['column'] = $optgroups_map['column'];
         return object_data_common::optgroups($data, $optgroups_map, $options_map);
     } else {
         return object_data_common::options($data, $options_map);
     }
 }