/**
  * @param string $valueField
  * @param string $labelField
  * @param array $additional
  * @return array
  */
 protected function _toOptionArray($valueField = 'post_id', $labelField = 'name', $additional = [])
 {
     return parent::_toOptionArray($valueField, $labelField, $additional);
 }
Example #2
0
 /**
  * Convert collection items to select options array
  *
  * @return array
  */
 public function toOptionArray()
 {
     return parent::_toOptionArray('attribute_set_id', 'attribute_set_name');
 }
Example #3
0
 /**
  * Return option array
  *
  * @return array
  */
 public function toOptionArray()
 {
     return parent::_toOptionArray('event_type_id', 'event_name');
 }
 protected function _toOptionArray($valueField = 'id', $labelField = 'title', $additional = array())
 {
     return parent::_toOptionArray($valueField, $labelField, $additional);
 }
 /**
  * Retrieve option array
  *
  * @return array
  */
 public function toOptionArray()
 {
     return parent::_toOptionArray('customer_group_id', 'customer_group_code');
 }
Example #6
0
 /**
  * Convert items array to array for select options
  *
  * @return array
  */
 public function toOptionArray()
 {
     return parent::_toOptionArray('status_id', 'status_code');
 }