|
|
@@ -374,27 +374,6 @@ function zimbraSingleConfigOptions($params) {
|
|
|
);
|
|
|
return false;
|
|
|
}
|
|
|
- $apiAccountManager = new Zm_Account($api);
|
|
|
- $response = $apiAccountManager->getAllCos();
|
|
|
- if(is_a($response, "Exception")) {
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- "Error : could not fetch classes of service",
|
|
|
- ""
|
|
|
- );
|
|
|
- return false;
|
|
|
- }
|
|
|
- $cosNames = recursiveFindAll($response, 'NAME');
|
|
|
- $configOptions = array();
|
|
|
- $configOptions['cos'] = array(
|
|
|
- "FriendlyName" => "Class of Service",
|
|
|
- "Type" => "radio",
|
|
|
- "Options" => implode(',', $cosNames),
|
|
|
- "Description" => "Tick to use this COS",
|
|
|
- );
|
|
|
- $configOptions[1] = array();
|
|
|
$apiDomainManager = new Zm_Domain($api);
|
|
|
$response = $apiDomainManager->getAllDomains();
|
|
|
if(is_a($response, "Exception")) {
|
|
|
@@ -415,6 +394,26 @@ function zimbraSingleConfigOptions($params) {
|
|
|
"Description" => "use this domain in customer selection?",
|
|
|
);
|
|
|
}
|
|
|
+ $apiAccountManager = new Zm_Account($api);
|
|
|
+ $response = $apiAccountManager->getAllCos();
|
|
|
+ if(is_a($response, "Exception")) {
|
|
|
+ logModuleCall(
|
|
|
+ 'zimbrasingle',
|
|
|
+ __FUNCTION__,
|
|
|
+ $params,
|
|
|
+ "Error : could not fetch classes of service",
|
|
|
+ ""
|
|
|
+ );
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $cosNames = recursiveFindAll($response, 'NAME');
|
|
|
+ $configOptions = array();
|
|
|
+ $configOptions['cos'] = array(
|
|
|
+ "FriendlyName" => "Class of Service",
|
|
|
+ "Type" => "radio",
|
|
|
+ "Options" => implode(',', $cosNames),
|
|
|
+ "Description" => "Tick to use this COS",
|
|
|
+ );
|
|
|
return $configOptions;
|
|
|
}
|
|
|
|