3if (!CModule::IncludeModule(
'rest'))
12 'mailservice' =>
array(
13 'mailservice.fields' =>
array(
'CMailRestService',
'mailserviceFields'),
14 'mailservice.list' =>
array(
'CMailRestService',
'mailserviceList'),
15 'mailservice.get' =>
array(
'CMailRestService',
'mailserviceGet'),
16 'mailservice.add' =>
array(
'CMailRestService',
'mailserviceAdd'),
17 'mailservice.update' =>
array(
'CMailRestService',
'mailserviceUpdate'),
18 'mailservice.delete' =>
array(
'CMailRestService',
'mailserviceDelete'),
29 'SITE_ID' =>
GetMessage(
'MAIL_MAILSERVICE_SITE_ID'),
30 'ACTIVE' =>
GetMessage(
'MAIL_MAILSERVICE_ACTIVE'),
33 'SERVER' =>
GetMessage(
'MAIL_MAILSERVICE_SERVER'),
35 'ENCRYPTION' =>
GetMessage(
'MAIL_MAILSERVICE_ENCRYPTION'),
48 'filter' =>
array(
'ACTIVE' =>
'Y',
'=SITE_ID' =>
SITE_ID),
49 'order' =>
array(
'SORT' =>
'ASC',
'NAME' =>
'ASC')
55 unset($row[
'SERVICE_TYPE'], $row[
'TOKEN'], $row[
'FLAGS']);
62 throw new Exception(
GetMessage(
'MAIL_MAILSERVICE_LIST_EMPTY'));
72 throw new Exception(
GetMessage(
'MAIL_MAILSERVICE_EMPTY_ID'));
85 throw new Exception(
GetMessage(
'MAIL_MAILSERVICE_EMPTY'));
94 if (!
$USER->CanDoOperation(
'bitrix24_config'))
95 throw new Exception(
GetMessage(
'ACCESS_DENIED'));
100 'SERVICE_TYPE' =>
'imap',
114 throw new Exception(join(
'; ',
$result->getErrorMessages()));
125 if (!
$USER->CanDoOperation(
'bitrix24_config'))
126 throw new Exception(
GetMessage(
'ACCESS_DENIED'));
129 throw new Exception(
GetMessage(
'MAIL_MAILSERVICE_EMPTY_ID'));
136 throw new Exception(
GetMessage(
'MAIL_MAILSERVICE_EMPTY'));
159 throw new Exception(join(
'; ',
$result->getErrorMessages()));
170 if (!
$USER->CanDoOperation(
'bitrix24_config'))
171 throw new Exception(
GetMessage(
'ACCESS_DENIED'));
174 throw new Exception(
GetMessage(
'MAIL_MAILSERVICE_EMPTY_ID'));
181 throw new Exception(
GetMessage(
'MAIL_MAILSERVICE_EMPTY'));
186 throw new Exception(join(
'; ',
$result->getErrorMessages()));
static getIconSrc($serviceName, $iconId=null)
static update($primary, array $data)
static mailserviceAdd($arParams)
static mailserviceDelete($arParams)
static OnRestServiceBuildDescription()
static mailserviceList($arParams)
static mailserviceGet($arParams)
static mailserviceUpdate($arParams)
static mailserviceFields($arParams)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)