Conditions | 4 |
Paths | 5 |
Total Lines | 23 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function getFields($options) |
||
42 | { |
||
43 | if (!isset($options['name'])) { |
||
44 | return ['error' => true, 'msg' => 'no name of list was provided']; |
||
45 | } |
||
46 | $listName = $options['name']; |
||
47 | |||
48 | if (isset($options['isTestList'])) { |
||
49 | $isTestList = true; |
||
50 | } else { |
||
51 | $isTestList = false; |
||
52 | } |
||
53 | if (isset($options['getType'])) { |
||
54 | $getType = true; |
||
55 | } else { |
||
56 | $getType = false; |
||
57 | } |
||
58 | |||
59 | return $this->client->webservice( |
||
60 | 'dsUsersListGetFields', |
||
61 | array($listName, $isTestList, $getType) |
||
62 | ); |
||
63 | } |
||
64 | } |
||
65 |