32 if(in_array(self::TO_SNAKE, $this->format))
37 if(in_array(self::CHECK_REQUIRED, $this->format))
40 if(!$check->isSuccess())
42 $r->addErrors($check->getErrors());
48 if(in_array(self::TO_WHITE_LIST, $this->format))
54 return $r->setData([
'data'=>$r->isSuccess()?
$arguments:
null]);
57 protected function convertToSnakeCase(
$arguments=[])
70 $arguments[
'select'] = $view->convertKeysToSnakeCaseSelect($fields);
77 $arguments[
'filter'] = $view->convertKeysToSnakeCaseFilter($fields);
84 $arguments[
'order'] = $view->convertKeysToSnakeCaseOrder($fields);
87 elseif (
$name ==
'getfields'){}
88 elseif (
$name ==
'get'){}
89 elseif (
$name ==
'delete'){}
90 elseif (
$name ==
'add'
97 $arguments[
'fields'] = $view->convertKeysToSnakeCaseFields($fields);
119 $arguments[
'fields'] = $view->internalizeFieldsAdd($fields);
121 elseif (
$name ==
'update')
125 $arguments[
'fields'] = $view->internalizeFieldsUpdate($fields);
127 elseif (
$name ==
'list')
129 $fields = $view->internalizeFieldsList([
139 elseif (
$name ==
'getfields'){}
140 elseif (
$name ==
'get'){}
141 elseif (
$name ==
'delete'){}
161 $arguments[
'fields'] = $view->canonicalizeFieldsAdd($fields);
163 elseif (
$name ==
'update')
167 $arguments[
'fields'] = $view->canonicalizeFieldsUpdate($fields);
169 elseif (
$name ==
'list')
171 $fields = $view->canonicalizeFieldsList([
181 elseif (
$name ==
'getfields'){}
182 elseif (
$name ==
'get'){}
183 elseif (
$name ==
'delete'){}
203 $r = $view->checkFieldsAdd(
$arguments[
'fields']);
205 elseif (
$name ==
'update')
207 $r = $view->checkFieldsUpdate(
$arguments[
'fields']);
209 elseif (
$name ==
'list')
213 elseif (
$name ==
'getfields'){}
214 elseif (
$name ==
'get'){}
215 elseif (
$name ==
'delete'){}