Function get
has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring. Open
public function get(): array
{
$this->loadResponseParams();
$moduleName = $this->controller->request->get('module');
$module = \Vtiger_Module_Model::getInstance($moduleName);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method get
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
public function get(): array
{
$this->loadResponseParams();
$moduleName = $this->controller->request->get('module');
$module = \Vtiger_Module_Model::getInstance($moduleName);
The method get() has an NPath complexity of 11530. The configured NPath complexity threshold is 200. Open
public function get(): array
{
$this->loadResponseParams();
$moduleName = $this->controller->request->get('module');
$module = \Vtiger_Module_Model::getInstance($moduleName);
- Read upRead up
- Exclude checks
NPathComplexity
Since: 0.1
The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.
Example
class Foo {
function bar() {
// lots of complicated code
}
}
Source https://phpmd.org/rules/codesize.html#npathcomplexity
The method get() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10. Open
public function get(): array
{
$this->loadResponseParams();
$moduleName = $this->controller->request->get('module');
$module = \Vtiger_Module_Model::getInstance($moduleName);
- Read upRead up
- Exclude checks
CyclomaticComplexity
Since: 0.1
Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.
Example
// Cyclomatic Complexity = 11
class Foo {
1 public function example() {
2 if ($a == $b) {
3 if ($a1 == $b1) {
fiddle();
4 } elseif ($a2 == $b2) {
fiddle();
} else {
fiddle();
}
5 } elseif ($c == $d) {
6 while ($c == $d) {
fiddle();
}
7 } elseif ($e == $f) {
8 for ($n = 0; $n < $h; $n++) {
fiddle();
}
} else {
switch ($z) {
9 case 1:
fiddle();
break;
10 case 2:
fiddle();
break;
11 case 3:
fiddle();
break;
default:
fiddle();
break;
}
}
}
}
Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity
Missing class import via use statement (line '267', column '14'). Open
throw new \Api\Core\Exception('Incorrect json syntax: x-response-params', 400);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Avoid using static access to class '\App\Language' in method 'get'. Open
$blocks[$block->id]['name'] = \App\Language::translate($block->label, $moduleName);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'get'. Open
$fieldInfo['helpInfo'] = \App\Language::getTranslateHelpInfo($fieldModel, 'all');
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Json' in method 'loadResponseParams'. Open
if (!\App\Json::isJson($responseParams)) {
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'get'. Open
'label' => \App\Language::translate($fieldModel->get('label'), $moduleName),
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Fields\Tree' in method 'get'. Open
$fieldInfo['treeValues'] = \App\Fields\Tree::getTreeValues((int) $fieldModel->getFieldParams(), $moduleName);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Vtiger_Module_Model' in method 'get'. Open
$module = \Vtiger_Module_Model::getInstance($moduleName);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Language' in method 'get'. Open
$fieldInfo['queryOperators'] = array_map(fn ($value) => \App\Language::translate($value, $moduleName), $fieldModel->getQueryOperators());
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\App\Json' in method 'loadResponseParams'. Open
$this->responseParams = array_flip(\App\Json::decode($responseParams));
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Vtiger_Inventory_Model' in method 'get'. Open
$inventoryInstance = \Vtiger_Inventory_Model::getInstance($moduleName);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
Avoid using static access to class '\Api\WebserviceStandard\Fields' in method 'get'. Open
\Api\WebserviceStandard\Fields::loadWebserviceByField($fieldModel, $this);
- Read upRead up
- Exclude checks
StaticAccess
Since: 1.4.0
Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.
Example
class Foo
{
public function bar()
{
Bar::baz();
}
}
Source https://phpmd.org/rules/cleancode.html#staticaccess
syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')'
Open
$blocks[$block->id] = array_filter($blockProperties, fn ($v) => !\is_object($v));
- Exclude checks
Avoid variables with short names like $v. Configured minimum length is 3. Open
$blocks[$block->id] = array_filter($blockProperties, fn ($v) => !\is_object($v));
- Read upRead up
- Exclude checks
ShortVariable
Since: 0.2
Detects when a field, local, or parameter has a very short name.
Example
class Something {
private $q = 15; // VIOLATION - Field
public static function main( array $as ) { // VIOLATION - Formal
$r = 20 + $this->q; // VIOLATION - Local
for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
$r += $this->q;
}
}
}
Source https://phpmd.org/rules/naming.html#shortvariable
Spaces must be used for alignment; tabs are not allowed Open
* description="Returns information about fields, blocks and inventory based on the selected module",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* type="object",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* required={"status", "result"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\JsonContent(ref="#/components/schemas/BaseModule_Get_Fields_Response"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Schema(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\JsonContent(type="array", @OA\Items(type="string", enum={"inventory", "blocks", "privileges", "dbStructure", "queryOperators"})),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* security={{"basicAuth" : {}, "ApiKeyAuth" : {}, "token" : {}}},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* description="Fields, blocks and inventory details",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Parameter(name="moduleName", in="path", @OA\Schema(type="string"), description="Module name", required=true, example="Contacts"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* title="Base module - Response action fields",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* description="Returns information about fields, blocks and inventory based on the selected module",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* summary="Get data about fields, blocks and inventory",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Parameter(name="moduleName", in="path", @OA\Schema(type="string"), description="Module name", required=true, example="Contacts"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Schema(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* schema="BaseModule_Get_Fields_Response",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* tags={"BaseModule"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* security={{"basicAuth" : {}, "ApiKeyAuth" : {}, "token" : {}}},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Response(response=200, description="Fields, blocks and inventory details",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\JsonContent(ref="#/components/schemas/BaseModule_Get_Fields_Response"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* required={"status", "result"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\JsonContent(type="array", @OA\Items(type="string", enum={"inventory", "blocks", "privileges", "dbStructure", "queryOperators"})),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Response(response=200, description="Fields, blocks and inventory details",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\XmlContent(ref="#/components/schemas/BaseModule_Get_Fields_Response"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* description="Fields, blocks and inventory details",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* tags={"BaseModule"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Parameter(name="x-response-params", in="header", description="The header contains information about additional data to be returned in the response [Json array]", required=false,
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\XmlContent(ref="#/components/schemas/BaseModule_Get_Fields_Response"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* type="object",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Parameter(name="x-response-params", in="header", description="The header contains information about additional data to be returned in the response [Json array]", required=false,
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* schema="BaseModule_Get_Fields_Response",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="maxwidthcolumn", type="integer", description="Max width column", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* path="/webservice/WebserviceStandard/{moduleName}/Fields",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="restrictedDomains", type="object", title="Email restricted domains, available only for type of field: email",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* summary="Get data about fields, blocks and inventory",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* title="Base module - Response action fields",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="formats", type="object", title="File Format, available only for type of field: multiImage, image",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="label", type="string", description="Field label translated into the user's language", example="Subject"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="jpg", description="List of file data formats", example="jpg"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="header_field", type="object", title="Field configuration available in the header",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isReadOnly", description="Check if the field is read only (based on profiles), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="type", type="string", description="Type", example="value"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="dbStructure", type="object", title="Info about field structure in database, depends on header `x-response-params`",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="restrictedDomains", type="object", title="Email restricted domains, available only for type of field: email",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="yeti.com", description="List of domains reserved by email", example="yeti.com"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="uitype", type="integer", description="Field UiType", example=1),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isEditableReadOnly", description="Check if the field is editable or read only (based on the field type), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="type", type="string", description="Abstract type of this column.", example="integer"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* required={"name", "label", "type", "mandatory", "defaultvalue", "presence", "quickcreate", "masseditable", "header_field", "maxlengthtext", "maximumlength", "maxwidthcolumn", "tabindex", "fieldtype", "id", "uitype", "sequence", "fieldparams", "blockId", "helpInfo"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="presence", type="boolean", description="Check if field is active", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="type", type="string", description="Type", example="value"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="picklistvalues", type="object", title="Picklist values, available only for type of field: picklist, multipicklist, multiowner, multiReferenceValue, inventoryLimit, languages, currencyList, fileLocationType, taxes, multiListFields, mailScannerFields, country, modules, sharedOwner, categoryMultipicklist, tree",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="currency_symbol", type="string", title="Currency symbol, available only for type of field: currency"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isEditable", description="Check if the field is editable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="fieldparams", description="Field params", type="object"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="fieldparams", description="Field params", type="object"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="name", type="string", description="Name of this column (without quotes).", example="parent_id"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="masseditable", type="boolean", description="Check if field is quick create enabled", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isEditable", description="Check if the field is editable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="blockId", type="integer", description="Field block id", example=280),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="phpType", type="string", description="The PHP type of this column.", example="integer"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="quickcreate", type="boolean", description="Check if field is active", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="maxlengthtext", type="integer", description="Max length text", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="tabindex", type="integer", description="Field tab index", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="date-format", type="string", title="Date format, available only for type of field: date, datetime"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="limit", type="integer", title="Limit the amount of images, available only for type of field: multiImage, image"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="name", type="string", description="Name of this column (without quotes).", example="parent_id"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="allowNull", type="boolean", description="Whether this column can be null.", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* required={"name", "label", "type", "mandatory", "defaultvalue", "presence", "quickcreate", "masseditable", "header_field", "maxlengthtext", "maximumlength", "maxwidthcolumn", "tabindex", "fieldtype", "id", "uitype", "sequence", "fieldparams", "blockId", "helpInfo"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="defaultvalue", type="string", description="Default field value", example=""),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="class", type="string", description="Gui class", example="badge-info"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="maximumlength", type="string", description="Maximum field range", example="-2147483648,2147483647"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="maximumlength", type="string", description="Maximum field range", example="-2147483648,2147483647"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="date-format", type="string", title="Date format, available only for type of field: date, datetime"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="decimal_separator", type="string", title="Currency decimal separator, available only for type of field: currency"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="yeti.com", description="List of domains reserved by email", example="yeti.com"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="blockId", type="integer", description="Field block id", example=280),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="presence", type="boolean", description="Check if field is active", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="limit", type="integer", title="Limit the amount of images, available only for type of field: multiImage, image"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="dbType", type="string", description="The DB type of this column.", example="int(10)"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="defaultValue", type="string", description="Default value of this column", example="10"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="enumValues", type="string", description="Enumerable values.", example=""),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="enumValues", type="string", description="Enumerable values.", example=""),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="result", type="object", title="Fields parameters", required={"fields", "blocks"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="fieldtype", type="string", description="Field short data type", example="V"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isReadOnly", description="Check if the field is read only (based on profiles), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isCreatable", description="Check if the field is creatable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isEditableReadOnly", description="Check if the field is editable or read only (based on the field type), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="dbStructure", type="object", title="Info about field structure in database, depends on header `x-response-params`",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="defaultValue", type="string", description="Default value of this column", example="10"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="name", type="string", description="Field name", example="subject"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="label", type="string", description="Field label translated into the user's language", example="Subject"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="class", type="string", description="Gui class", example="badge-info"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="currency_symbol", type="string", title="Currency symbol, available only for type of field: currency"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="decimal_separator", type="string", title="Currency decimal separator, available only for type of field: currency"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="id", type="integer", description="Field ID", example=24862),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="sequence", description="Sequence field", type="integer", example=24862),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="allowNull", type="boolean", description="Whether this column can be null.", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="type", type="string", description="Field type", example="string"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="mandatory", type="boolean", description="Check if field is mandatory", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="quickcreate", type="boolean", description="Check if field is active", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="masseditable", type="boolean", description="Check if field is quick create enabled", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="time-format", type="string", title="Time format, available only for type of field: time"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="formats", type="object", title="File Format, available only for type of field: multiImage, image",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isEditableHidden", description="Check if the field is hidden in the edit (based on the field type), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="helpInfo", type="string", description="Additional field description", example="Edit,Detail"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="picklistvalues", type="object", title="Picklist values, available only for type of field: picklist, multipicklist, multiowner, multiReferenceValue, inventoryLimit, languages, currencyList, fileLocationType, taxes, multiListFields, mailScannerFields, country, modules, sharedOwner, categoryMultipicklist, tree",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="time-format", type="string", title="Time format, available only for type of field: time"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="name", type="string", description="Field name", example="subject"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="header_field", type="object", title="Field configuration available in the header",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="id", type="integer", description="Field ID", example=24862),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="sequence", description="Sequence field", type="integer", example=24862),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="mandatory", type="boolean", description="Check if field is mandatory", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="maxlengthtext", type="integer", description="Max length text", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="group_separator", type="string", title="Currency group separator, available only for type of field: currency"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isViewable", description="Check if the field is viewable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isCreatable", description="Check if the field is creatable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="fields", type="object", title="List of all available fields in the module",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="fields", type="object", title="List of all available fields in the module",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="fieldtype", type="string", description="Field short data type", example="V"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="group_separator", type="string", title="Currency group separator, available only for type of field: currency"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="jpg", description="List of file data formats", example="jpg"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="helpInfo", type="string", description="Additional field description", example="Edit,Detail"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="type", type="string", description="Field type", example="string"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="defaultvalue", type="string", description="Default field value", example=""),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="maxwidthcolumn", type="integer", description="Max width column", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="tabindex", type="integer", description="Field tab index", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isEditableHidden", description="Check if the field is hidden in the edit (based on the field type), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="phpType", type="string", description="The PHP type of this column.", example="integer"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="size", type="integer", description="Display size of the column.", example=10),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="precision", type="integer", description="Precision of the column data, if it is numeric.", example=10),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="scale", type="integer", description="Scale of the column data, if it is numeric.", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isPrimaryKey", type="boolean", description="Whether this column is a primary key", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="referenceList", type="object", title="List of related modules, available only for reference field",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(type="object", title="Tree item",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="tree", description="Tree id", type="string", example="T10"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="label", description="Block label", type="string", example="Account details"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="iscustom", description="Determines if the block has been added by the user", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="referenceList", type="object", title="List of related modules, available only for reference field",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="parent", description="Parent tree id", type="string", example="T1"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="icon", description="Block icon class", type="string", example="far fa-calendar-alt"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="label", description="Field label translated into the user's language", type="string", example="Unit price"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="result", type="object", title="Fields parameters", required={"fields", "blocks"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="uitype", type="integer", description="Field UiType", example=1),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isViewable", description="Check if the field is viewable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="type", type="string", description="Abstract type of this column.", example="integer"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="dbType", type="string", description="The DB type of this column.", example="int(10)"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="comment", type="string", description="Comment of this column.", example=""),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(description="Tree item", type="string", example="Accounts"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="blocks", type="object", title="List of all available blocks in the module, depends on header `x-response-params`",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="inventory", type="object", title="Inventory field group, available depending on the type of module, depends on header `x-response-params`",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="type", description="Field type", type="string", example="UnitPrice"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="defaultEditValue", type="object", title="Default field value in editable format",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isPrimaryKey", type="boolean", description="Whether this column is a primary key", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="treeValues", type="object", title="Tree items, available only for tree field",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(type="object", title="Tree item",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* required={"id", "tabid", "label", "sequence", "showtitle", "visible", "increateview", "ineditview", "indetailview", "display_status", "iscustom", "icon", "name"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="scale", type="integer", description="Scale of the column data, if it is numeric.", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="1", type="object", title="Inventory field list",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="value", type="string", description="Value in editable format", example="Some value"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="raw", type="string", description="Raw value", example="T10"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="showtitle", description="Specifies whether the title should be visible", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="iscustom", description="Determines if the block has been added by the user", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="type", description="Field type", type="string", example="UnitPrice"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="comment", type="string", description="Comment of this column.", example=""),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="id", description="Number tree without prefix", type="integer", example=1),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="tree", description="Tree id", type="string", example="T10"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="parent", description="Parent tree id", type="string", example="T1"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="defaultEditValue", type="object", title="Default field value in editable format",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="value", type="string", description="Value in editable format", example="Some value"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="blocks", type="object", title="List of all available blocks in the module, depends on header `x-response-params`",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(type="object", title="Block details",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="sequence", description="Block sequence", type="integer", example=1),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="showtitle", description="Specifies whether the title should be visible", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="display_status", description="Determines whether the block should be expanded", type="integer", example=2),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="name", description="Block name translated into the user's language", type="string", example="Informacje podstawowe o firmie"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="1", type="object", title="Inventory field list",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="columnname", description="Field column name in db", type="string", example="price"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(type="object", title="Block details",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="tabid", description="Module id", type="integer", example=9),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="indetailview", description="Determines the visibility in detail view", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="icon", description="Block icon class", type="string", example="far fa-calendar-alt"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="inventory", type="object", title="Inventory field group, available depending on the type of module, depends on header `x-response-params`",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="autoIncrement", type="boolean", description="Whether this column is auto-incremental", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="id", description="Number tree without prefix", type="integer", example=1),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="id", description="Block id", type="integer", example=195),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isSummary", description="Is the field contains summary", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="size", type="integer", description="Display size of the column.", example=10),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="treeValues", type="object", title="Tree items, available only for tree field",
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="text", description="Tree value", type="string", example="Tree value"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isSummary", description="Is the field contains summary", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="unsigned", type="boolean", description="Whether this column is unsigned.", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isEmptyPicklistOptionAllowed", description="Defines empty picklist element availability", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isEmptyPicklistOptionAllowed", description="Defines empty picklist element availability", type="boolean", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="raw", type="string", description="Raw value", example="T10"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="label", description="Block label", type="string", example="Account details"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="sequence", description="Block sequence", type="integer", example=1),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="visible", description="Determines the visibility", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="unsigned", type="boolean", description="Whether this column is unsigned.", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="increateview", description="Determines the visibility in creat view", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="ineditview", description="Determines the visibility in edit view", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="display_status", description="Determines whether the block should be expanded", type="integer", example=2),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="label", description="Field label translated into the user's language", type="string", example="Unit price"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isVisibleInDetail", description="Check if field is visible in detail view", type="boolean", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="precision", type="integer", description="Precision of the column data, if it is numeric.", example=10),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="autoIncrement", type="boolean", description="Whether this column is auto-incremental", example=false),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="queryOperators", type="object", description="Field query operators, depends on header `x-response-params`"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(description="Tree item", type="string", example="Accounts"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="text", description="Tree value", type="string", example="Tree value"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* required={"id", "tabid", "label", "sequence", "showtitle", "visible", "increateview", "ineditview", "indetailview", "display_status", "iscustom", "icon", "name"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="tabid", description="Module id", type="integer", example=9),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="increateview", description="Determines the visibility in creat view", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="indetailview", description="Determines the visibility in detail view", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="name", description="Block name translated into the user's language", type="string", example="Informacje podstawowe o firmie"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="columnname", description="Field column name in db", type="string", example="price"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
continue;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['isCreatable'] = $isEditable || 4 === $fieldModel->get('displaytype');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['isEditableReadOnly'] = $fieldModel->isEditableReadOnly();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($returnDbStructure) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($fieldModel->get('defaultvalue')) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
protected function loadResponseParams(): void
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="queryOperators", type="object", description="Field query operators, depends on header `x-response-params`"),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="id", description="Block id", type="integer", example=195),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="visible", description="Determines the visibility", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="ineditview", description="Determines the visibility in edit view", type="integer", example=0),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(type="object", title="Inventory field details", required={"label", "type", "columnname", "isSummary", "isVisibleInDetail"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\AdditionalProperties(type="object", title="Inventory field details", required={"label", "type", "columnname", "isSummary", "isVisibleInDetail"},
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @OA\Property(property="isVisibleInDetail", description="Check if field is visible in detail view", type="boolean", example=true),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* ),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
foreach ($module->getFields() as $fieldModel) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($returnQueryOperators) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
'isSummary' => $fieldModel->isSummary(),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
{
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$module = \Vtiger_Module_Model::getInstance($moduleName);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo = $fieldModel->getFieldInfo();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (isset($this->responseParams['inventory']) && $module->isInventory()) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$return = $inventoryFields = $fields = $blocks = [];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($returnBlocks && !isset($blocks[$block->id])) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['uitype'] = $fieldModel->getUIType();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['treeValues'] = \App\Fields\Tree::getTreeValues((int) $fieldModel->getFieldParams(), $moduleName);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
return;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
public function get(): array
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$blockProperties = get_object_vars($block);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$isEditable = $fieldModel->isEditable();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['referenceList'] = $fieldModel->getReferenceList();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$returnBlocks = isset($this->responseParams['blocks']);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$block = $fieldModel->get('block');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['isViewable'] = $fieldModel->isViewable();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['dbStructure'] = $fieldModel->getDBColumnType(false);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$return['fields'] = $fields;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
'type' => $fieldModel->getType(),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
*/
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$returnDbStructure = isset($this->responseParams['dbStructure']);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['fieldparams'] = $fieldModel->getFieldParams();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['defaultEditValue'] = $fieldModel->getUITypeModel()->getApiEditValue($fieldModel->getDefaultFieldValue());
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldsInInventory = $inventoryInstance->getFieldsByBlocks();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* @return void
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$this->responseParams = array_flip(\App\Json::decode($responseParams));
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fields[$fieldModel->getName()] = $fieldInfo;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$moduleName = $this->controller->request->get('module');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['queryOperators'] = array_map(fn ($value) => \App\Language::translate($value, $moduleName), $fieldModel->getQueryOperators());
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
return $return;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['id'] = $fieldModel->getId();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($fieldModel->isReferenceField()) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
'label' => \App\Language::translate($fieldModel->get('label'), $moduleName),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$this->loadResponseParams();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* Load response params.
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
* )
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($returnPrivileges) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$returnQueryOperators = isset($this->responseParams['queryOperators']);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['isReadOnly'] = $fieldModel->isReadOnly();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$blocks[$block->id] = array_filter($blockProperties, fn ($v) => !\is_object($v));
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['isEditable'] = $isEditable;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['isEditableHidden'] = 9 === $fieldModel->get('displaytype');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['helpInfo'] = \App\Language::getTranslateHelpInfo($fieldModel, 'all');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['isEmptyPicklistOptionAllowed'] = $fieldModel->isEmptyPicklistOptionAllowed();
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($returnBlocks) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$inventoryInstance = \Vtiger_Inventory_Model::getInstance($moduleName);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (isset($fieldsInInventory[1])) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$responseParams = $this->controller->request->getHeader('x-response-params');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['sequence'] = $fieldModel->get('sequence');
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$return['blocks'] = $blocks;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
'isVisibleInDetail' => $fieldModel->isVisibleInDetail(),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (empty($responseParams) || '[]' === $responseParams) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
throw new \Api\Core\Exception('Incorrect json syntax: x-response-params', 400);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$fieldInfo['blockId'] = $block->id;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
];
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
\Api\WebserviceStandard\Fields::loadWebserviceByField($fieldModel, $this);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$blocks[$block->id]['name'] = \App\Language::translate($block->label, $moduleName);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$inventoryFields[1][$fieldName] = [
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
'columnname' => $fieldModel->getColumnName(),
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
*
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
}
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$returnPrivileges = isset($this->responseParams['privileges']);
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (!$fieldModel->isActiveField()) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (isset($fieldInfo['picklistvalues']) && $fieldModel->isEmptyPicklistOptionAllowed()) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if ($fieldModel->isTreeField()) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
foreach ($fieldsInInventory[1] as $fieldName => $fieldModel) {
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
$return['inventory'] = $inventoryFields;
- Exclude checks
Spaces must be used for alignment; tabs are not allowed Open
if (!\App\Json::isJson($responseParams)) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public $allowedHeaders = ['x-response-params'];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @return array
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* @OA\Get(
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* path="/webservice/WebserviceStandard/{moduleName}/Fields",
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/** @var string[] Response params, options allowed: ["inventory","blocks","privileges","dbStructure","queryOperators"] */
- Exclude checks
Line exceeds 120 characters; contains 149 characters Open
* @OA\JsonContent(type="array", @OA\Items(type="string", enum={"inventory", "blocks", "privileges", "dbStructure", "queryOperators"})),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
protected $responseParams = [];
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
* @OA\Parameter(name="moduleName", in="path", @OA\Schema(type="string"), description="Module name", required=true, example="Contacts"),
- Exclude checks
Line exceeds 120 characters; contains 193 characters Open
* @OA\Parameter(name="x-response-params", in="header", description="The header contains information about additional data to be returned in the response [Json array]", required=false,
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
/** @var string[] Response params, options allowed: ["inventory","blocks","privileges","dbStructure","queryOperators"] */
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
* @OA\Parameter(name="X-ENCRYPTED", in="header", @OA\Schema(ref="#/components/schemas/Header-Encrypted"), required=true),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
/** {@inheritdoc} */
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
* Get data about fields, blocks and inventory.
- Exclude checks
Line exceeds 120 characters; contains 189 characters Open
* @OA\Property(property="status", type="integer", enum={0, 1}, description="A numeric value of 0 or 1 that indicates whether the communication is valid. 1 - success , 0 - error"),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
public $allowedMethod = ['GET'];
- Exclude checks
Line exceeds 120 characters; contains 149 characters Open
* @OA\Property(property="currency_symbol", type="string", title="Currency symbol, available only for type of field: currency"),
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
* @OA\Property(property="yeti.com", description="List of domains reserved by email", example="yeti.com"),
- Exclude checks
Line exceeds 120 characters; contains 357 characters Open
* @OA\Property(property="picklistvalues", type="object", title="Picklist values, available only for type of field: picklist, multipicklist, multiowner, multiReferenceValue, inventoryLimit, languages, currencyList, fileLocationType, taxes, multiListFields, mailScannerFields, country, modules, sharedOwner, categoryMultipicklist, tree",
- Exclude checks
Line exceeds 120 characters; contains 160 characters Open
* @OA\Property(property="limit", type="integer", title="Limit the amount of images, available only for type of field: multiImage, image"),
- Exclude checks
Line exceeds 120 characters; contains 177 characters Open
* @OA\Property(property="isCreatable", description="Check if the field is creatable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Line exceeds 120 characters; contains 175 characters Open
* @OA\Property(property="isEditable", description="Check if the field is editable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Line exceeds 120 characters; contains 140 characters Open
* @OA\Property(property="helpInfo", type="string", description="Additional field description", example="Edit,Detail"),
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
* @OA\Property(property="class", type="string", description="Gui class", example="badge-info"),
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
* @OA\Property(property="fieldtype", type="string", description="Field short data type", example="V"),
- Exclude checks
Line exceeds 120 characters; contains 158 characters Open
* @OA\Property(property="group_separator", type="string", title="Currency group separator, available only for type of field: currency"),
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
* @OA\Property(property="formats", type="object", title="File Format, available only for type of field: multiImage, image",
- Exclude checks
Line exceeds 120 characters; contains 223 characters Open
* @OA\Property(property="isEditableReadOnly", description="Check if the field is editable or read only (based on the field type), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Line exceeds 120 characters; contains 218 characters Open
* @OA\Property(property="isEditableHidden", description="Check if the field is hidden in the edit (based on the field type), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Line exceeds 120 characters; contains 147 characters Open
* @OA\Property(property="name", type="string", description="Name of this column (without quotes).", example="parent_id"),
- Exclude checks
Line exceeds 120 characters; contains 139 characters Open
* @OA\Property(property="defaultValue", type="string", description="Default value of this column", example="10"),
- Exclude checks
Line exceeds 120 characters; contains 286 characters Open
* required={"name", "label", "type", "mandatory", "defaultvalue", "presence", "quickcreate", "masseditable", "header_field", "maxlengthtext", "maximumlength", "maxwidthcolumn", "tabindex", "fieldtype", "id", "uitype", "sequence", "fieldparams", "blockId", "helpInfo"},
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
* @OA\Property(property="defaultvalue", type="string", description="Default field value", example=""),
- Exclude checks
Line exceeds 120 characters; contains 131 characters Open
* @OA\Property(property="quickcreate", type="boolean", description="Check if field is active", example=true),
- Exclude checks
Line exceeds 120 characters; contains 123 characters Open
* @OA\Property(property="maxwidthcolumn", type="integer", description="Max width column", example=0),
- Exclude checks
Line exceeds 120 characters; contains 141 characters Open
* @OA\Property(property="allowNull", type="boolean", description="Whether this column can be null.", example=true),
- Exclude checks
Line exceeds 120 characters; contains 146 characters Open
* @OA\Property(property="masseditable", type="boolean", description="Check if field is quick create enabled", example=true),
- Exclude checks
Line exceeds 120 characters; contains 147 characters Open
* @OA\Property(property="maximumlength", type="string", description="Maximum field range", example="-2147483648,2147483647"),
- Exclude checks
Line exceeds 120 characters; contains 147 characters Open
* @OA\Property(property="date-format", type="string", title="Date format, available only for type of field: date, datetime"),
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
* @OA\Property(property="header_field", type="object", title="Field configuration available in the header",
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
* @OA\Property(property="time-format", type="string", title="Time format, available only for type of field: time"),
- Exclude checks
Line exceeds 120 characters; contains 175 characters Open
* @OA\Property(property="isViewable", description="Check if the field is viewable, depends on header `x-response-params`", type="boolean", example=true),
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
* @OA\Property(property="type", type="string", description="Abstract type of this column.", example="integer"),
- Exclude checks
Line exceeds 120 characters; contains 162 characters Open
* @OA\Property(property="dbStructure", type="object", title="Info about field structure in database, depends on header `x-response-params`",
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
* @OA\Property(property="enumValues", type="string", description="Enumerable values.", example=""),
- Exclude checks
Line exceeds 120 characters; contains 156 characters Open
* @OA\Property(property="restrictedDomains", type="object", title="Email restricted domains, available only for type of field: email",
- Exclude checks
Line exceeds 120 characters; contains 121 characters Open
* @OA\Property(property="maxlengthtext", type="integer", description="Max length text", example=0),
- Exclude checks
Line exceeds 120 characters; contains 162 characters Open
* @OA\Property(property="decimal_separator", type="string", title="Currency decimal separator, available only for type of field: currency"),
- Exclude checks
Line exceeds 120 characters; contains 152 characters Open
* @OA\Property(property="label", type="string", description="Field label translated into the user's language", example="Subject"),
- Exclude checks
Line exceeds 120 characters; contains 132 characters Open
* @OA\Property(property="mandatory", type="boolean", description="Check if field is mandatory", example=true),
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
* @OA\Property(property="presence", type="boolean", description="Check if field is active", example=true),
- Exclude checks
Line exceeds 120 characters; contains 139 characters Open
* @OA\Property(property="phpType", type="string", description="The PHP type of this column.", example="integer"),
- Exclude checks
Line exceeds 120 characters; contains 141 characters Open
* @OA\Property(property="ineditview", description="Determines the visibility in edit view", type="integer", example=0),
- Exclude checks
Line exceeds 120 characters; contains 135 characters Open
* @OA\Property(property="columnname", description="Field column name in db", type="string", example="price"),
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
* @OA\Property(property="text", description="Tree value", type="string", example="Tree value"),
- Exclude checks
Line exceeds 120 characters; contains 197 characters Open
* @OA\Property(property="isReadOnly", description="Check if the field is read only (based on profiles), depends on header `x-response-params`", type="boolean", example=false),
- Exclude checks
Line exceeds 120 characters; contains 137 characters Open
* @OA\Property(property="dbType", type="string", description="The DB type of this column.", example="int(10)"),
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
* @OA\Property(property="size", type="integer", description="Display size of the column.", example=10),
- Exclude checks
Line exceeds 120 characters; contains 153 characters Open
* @OA\Property(property="autoIncrement", type="boolean", description="Whether this column is auto-incremental", example=false),
- Exclude checks
Line exceeds 120 characters; contains 141 characters Open
* @OA\Property(property="unsigned", type="boolean", description="Whether this column is unsigned.", example=false),
- Exclude checks
Line exceeds 120 characters; contains 123 characters Open
* @OA\Property(property="parent", description="Parent tree id", type="string", example="T1"),
- Exclude checks
Line exceeds 120 characters; contains 173 characters Open
* @OA\Property(property="name", description="Block name translated into the user's language", type="string", example="Informacje podstawowe o firmie"),
- Exclude checks
Line exceeds 120 characters; contains 178 characters Open
* @OA\Property(property="inventory", type="object", title="Inventory field group, available depending on the type of module, depends on header `x-response-params`",
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
* @OA\Property(property="treeValues", type="object", title="Tree items, available only for tree field",
- Exclude checks
Line exceeds 120 characters; contains 168 characters Open
* @OA\Property(property="isEmptyPicklistOptionAllowed", description="Defines empty picklist element availability", type="boolean", example=false),
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
* @OA\Property(property="visible", description="Determines the visibility", type="integer", example=0),
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
* @OA\Property(property="indetailview", description="Determines the visibility in detail view", type="integer", example=0),
- Exclude checks
Line exceeds 120 characters; contains 133 characters Open
* @OA\Property(property="icon", description="Block icon class", type="string", example="far fa-calendar-alt"),
- Exclude checks
Line exceeds 120 characters; contains 155 characters Open
* @OA\Property(property="queryOperators", type="object", description="Field query operators, depends on header `x-response-params`"),
- Exclude checks
Line exceeds 120 characters; contains 136 characters Open
* @OA\Property(property="value", type="string", description="Value in editable format", example="Some value"),
- Exclude checks
Line exceeds 120 characters; contains 153 characters Open
* @OA\Property(property="blocks", type="object", title="List of all available blocks in the module, depends on header `x-response-params`",
- Exclude checks
Line exceeds 120 characters; contains 186 characters Open
* required={"id", "tabid", "label", "sequence", "showtitle", "visible", "increateview", "ineditview", "indetailview", "display_status", "iscustom", "icon", "name"},
- Exclude checks
Line exceeds 120 characters; contains 154 characters Open
* @OA\Property(property="precision", type="integer", description="Precision of the column data, if it is numeric.", example=10),
- Exclude checks
Line exceeds 120 characters; contains 144 characters Open
* @OA\Property(property="increateview", description="Determines the visibility in creat view", type="integer", example=0),
- Exclude checks
Line exceeds 120 characters; contains 154 characters Open
* @OA\Property(property="display_status", description="Determines whether the block should be expanded", type="integer", example=2),
- Exclude checks
Line exceeds 120 characters; contains 127 characters Open
* @OA\Property(property="comment", type="string", description="Comment of this column.", example=""),
- Exclude checks
Line exceeds 120 characters; contains 151 characters Open
* @OA\Property(property="iscustom", description="Determines if the block has been added by the user", type="integer", example=0),
- Exclude checks
Line exceeds 120 characters; contains 146 characters Open
* @OA\Property(property="referenceList", type="object", title="List of related modules, available only for reference field",
- Exclude checks
Line exceeds 120 characters; contains 145 characters Open
* @OA\Property(property="scale", type="integer", description="Scale of the column data, if it is numeric.", example=0),
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
* @OA\Property(property="id", description="Number tree without prefix", type="integer", example=1),
- Exclude checks
Line exceeds 120 characters; contains 157 characters Open
* @OA\Property(property="isVisibleInDetail", description="Check if field is visible in detail view", type="boolean", example=true),
- Exclude checks
Line exceeds 120 characters; contains 149 characters Open
* @OA\Property(property="isPrimaryKey", type="boolean", description="Whether this column is a primary key", example=false),
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
* @OA\Property(property="label", description="Block label", type="string", example="Account details"),
- Exclude checks
Line exceeds 120 characters; contains 172 characters Open
* @OA\AdditionalProperties(type="object", title="Inventory field details", required={"label", "type", "columnname", "isSummary", "isVisibleInDetail"},
- Exclude checks
Line exceeds 120 characters; contains 133 characters Open
$fieldInfo['defaultEditValue'] = $fieldModel->getUITypeModel()->getApiEditValue($fieldModel->getDefaultFieldValue());
- Exclude checks
Line exceeds 120 characters; contains 128 characters Open
* @OA\Property(property="defaultEditValue", type="object", title="Default field value in editable format",
- Exclude checks
Line exceeds 120 characters; contains 147 characters Open
* @OA\Property(property="showtitle", description="Specifies whether the title should be visible", type="integer", example=0),
- Exclude checks
Line exceeds 120 characters; contains 159 characters Open
* @OA\Property(property="label", description="Field label translated into the user's language", type="string", example="Unit price"),
- Exclude checks
Line exceeds 120 characters; contains 139 characters Open
* @OA\Property(property="isSummary", description="Is the field contains summary", type="boolean", example=false),
- Exclude checks
Line exceeds 120 characters; contains 125 characters Open
$fieldInfo['treeValues'] = \App\Fields\Tree::getTreeValues((int) $fieldModel->getFieldParams(), $moduleName);
- Exclude checks
Line exceeds 120 characters; contains 153 characters Open
$fieldInfo['queryOperators'] = array_map(fn ($value) => \App\Language::translate($value, $moduleName), $fieldModel->getQueryOperators());
- Exclude checks
Space before opening parenthesis of function call prohibited Open
$blocks[$block->id] = array_filter($blockProperties, fn ($v) => !\is_object($v));
- Exclude checks
Space before opening parenthesis of function call prohibited Open
$fieldInfo['queryOperators'] = array_map(fn ($value) => \App\Language::translate($value, $moduleName), $fieldModel->getQueryOperators());
- Exclude checks