28 parent::__construct($name, $arguments, $controller,
$data,
$scope);
36 $id = $this->getIdList(
$data);
39 if(in_array(self::TO_WHITE_LIST, $this->format))
44 if(in_array(self::TO_CAMEL, $this->format))
49 if(in_array(self::SORTING_KEYS, $this->format))
54 return $r->setData([
'data'=>
$data]);
59 return $this->
process()->getData()[
'data'];
66 foreach (
$data as $k=>&$item)
80 private function externalize($fields)
86 if($name ==
'getfields'){}
87 elseif($name ==
'delete'){}
92 || $name ==
'tryupdate')
94 $fields = $entity->externalizeFields($fields);
96 elseif($name ==
'list')
98 $fields = $entity->externalizeListFields($fields);
100 elseif($name ==
'modify')
102 $fields = $entity->externalizeFieldsModify($fields);
104 elseif($name ==
'trymodify')
106 $fields = $entity->externalizeFieldsTryModify($fields);
110 $fields = $entity->externalizeResult($name, $fields);
121 private function getIdList(
$data)
131 return $entity->convertKeysToCamelCase($fields);