Passed
Push — developer ( 16d0eb...79a11f )
by Radosław
16:20
created

Vtiger_DependencyPicklist::savePickListDependencies()   A

Complexity

Conditions 4
Paths 5

Size

Total Lines 46
Code Lines 39

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 20

Importance

Changes 0
Metric Value
eloc 39
dl 0
loc 46
ccs 0
cts 38
cp 0
rs 9.296
c 0
b 0
f 0
cc 4
nc 5
nop 2
crap 20
1
<?php
2
/* +********************************************************************************
3
 * The contents of this file are subject to the vtiger CRM Public License Version 1.0
4
 * ("License"); You may not use this file except in compliance with the License
5
 * The Original Code is:  vtiger CRM Open Source
6
 * The Initial Developer of the Original Code is vtiger.
7
 * Portions created by vtiger are Copyright (C) vtiger.
8
 * All Rights Reserved.
9
 * Contributor(s): YetiForce S.A.
10
 * ******************************************************************************* */
11
12
require_once 'include/utils/CommonUtils.php';
13
require_once 'include/fields/DateTimeField.php';
14
require_once 'include/fields/DateTimeRange.php';
15
require_once 'include/fields/CurrencyField.php';
16
require_once 'include/CRMEntity.php';
17
include_once 'modules/Vtiger/CRMEntity.php';
18
require_once 'include/runtime/Cache.php';
19
require_once 'modules/Vtiger/helpers/Util.php';
20
require_once 'modules/PickList/DependentPickListUtils.php';
21
require_once 'modules/Users/Users.php';
22
require_once 'include/Webservices/Utils.php';
23
require_once 'modules/PickList/PickListUtils.php';
24
25
class Vtiger_DependencyPicklist
26
{
27
	public static function getJSPicklistDependencyDatasource($module)
28
	{
29
		$picklistDependencyDatasource = \App\Fields\Picklist::getPicklistDependencyDatasource($module);
30
31
		return \App\Json::encode($picklistDependencyDatasource);
32
	}
33
}
34