23 $fieldsInfo = parent::prepareFieldInfos($fields);
25 foreach($fields as $name => $info)
27 if($name ==
'SETTINGS')
29 $fieldsInfo[$name][
'FIELDS'] = parent::prepareFieldInfos($info[
'FIELDS']);
40 'TYPE'=>self::TYPE_INT,
44 'TYPE'=>self::TYPE_INT,
51 'TYPE'=>self::TYPE_INT,
58 'TYPE'=>self::TYPE_STRING,
62 'TYPE'=>self::TYPE_STRING
65 'TYPE'=>self::TYPE_CHAR
68 'TYPE'=>self::TYPE_CHAR
71 'TYPE'=>self::TYPE_CHAR
74 'TYPE'=>self::TYPE_CHAR
77 'TYPE'=>self::TYPE_INT
80 'TYPE'=>self::TYPE_STRING
83 'TYPE'=>self::TYPE_STRING
86 'TYPE'=>self::TYPE_STRING,
93 'TYPE'=>self::TYPE_CHAR
96 'TYPE'=>self::TYPE_CHAR
99 'TYPE'=>self::TYPE_STRING
102 'TYPE'=>self::TYPE_DATATYPE,
115 self::PROPERTY_TYPE_STRING =>
function ($k)
122 self::PROPERTY_TYPE_LOCATION =>
function ($k)
129 self::PROPERTY_TYPE_ADDRESS =>
function ($k)
136 'DEFAULT' =>
function ($k)
146 $filter = isset($filterMap[$type]) ? $filterMap[$type] : $filterMap[
'DEFAULT'];
148 $r = array_filter($this->
getFields(), $filter, ARRAY_FILTER_USE_KEY);
159 if($type == self::PROPERTY_TYPE_STRING)
163 elseif($type == self::PROPERTY_TYPE_YN)
167 elseif($type == self::PROPERTY_TYPE_NUMBER)
171 elseif($type == self::PROPERTY_TYPE_ENUM)
175 elseif($type == self::PROPERTY_TYPE_FILE)
179 elseif($type == self::PROPERTY_TYPE_DATE)
183 elseif($type == self::PROPERTY_TYPE_LOCATION)
233 'INPUT_FIELD_LOCATION'=>[
234 'TYPE'=>self::TYPE_STRING
330 if($name ==
'getfieldssettingsbytype'
331 || $name ==
'getfieldsbytype'
333 if(isset($arguments[
'type']))
335 $fields = $arguments[
'type'];
338 $converter =
new Converter(Converter::VALUES | Converter::TO_UPPER);
339 $arguments[
'type'] = $converter->process($fields);
349 if($name ==
'getfieldssettingsbytype'
350 || $name ==
'getfieldsbytype'
354 parent::internalizeArguments($name, $arguments);
362 if($name ==
'getfieldssettingsbytype'
363 || $name ==
'getfieldsbytype'
367 parent::externalizeResult($name, $fields);
getFieldsSettingsByDateType()
getFieldsByTypeLocation()
getFieldsSettingsByEnumType()
getFieldsSettingsByLocation()
getFieldsSettingsByNumberType()
internalizeArguments($name, $arguments)
getFieldsSettingsByType($type)
convertKeysToSnakeCaseArguments($name, $arguments)
prepareFieldInfos($fields)
getFieldsSettingsByEitherYNType()
const PROPERTY_TYPE_NUMBER
const PROPERTY_TYPE_STRING
getFieldsSettingsByTypeString()
const PROPERTY_TYPE_ADDRESS
externalizeResult($name, $fields)
getFieldsSettingsByFileType()
const PROPERTY_TYPE_LOCATION