- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
public function get($module, $fields, $options=null) {
$results = $this->get_with_related($module, array($module => $fields), $options);
$records = array();
if ($records) {
foreach ($results['entry_list'] as $entry) {
$record = array();
foreach ($entry['name_value_list'] as $field) {
$record[$field['name']] = $field['value'];
}
$records[] = $record;
}
}
return $records;
}
SugarCRM REST API Class https://github.com/asakusuma/SugarCRM-REST-API-Wrapper-Class/blob/master/sugar_rest.php