Commit | Line | Data |
---|---|---|
19b53e5b | 1 | <?php |
380f3545 TO |
2 | /* |
3 | +--------------------------------------------------------------------+ | |
41498ac5 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
380f3545 | 5 | | | |
41498ac5 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
380f3545 TO |
9 | +--------------------------------------------------------------------+ |
10 | */ | |
19b53e5b C |
11 | namespace Civi\Api4; |
12 | ||
13 | /** | |
14 | * MailSettings entity. | |
15 | * | |
aa998597 | 16 | * @searchable none |
d44cc3cb | 17 | * @since 5.19 |
19b53e5b C |
18 | * @package Civi\Api4 |
19 | */ | |
20 | class MailSettings extends Generic\DAOEntity { | |
21 | ||
e3f6a1e9 TO |
22 | /** |
23 | * Check whether the mail store is accessible. | |
24 | * | |
25 | * @param bool $checkPermissions | |
26 | * @return \Civi\Api4\Action\MailSettings\TestConnection | |
27 | */ | |
28 | public static function testConnection($checkPermissions = TRUE) { | |
9f338c09 | 29 | $action = new \Civi\Api4\Action\MailSettings\TestConnection(__CLASS__, __FUNCTION__); |
e3f6a1e9 TO |
30 | return $action->setCheckPermissions($checkPermissions); |
31 | } | |
32 | ||
19b53e5b | 33 | } |