ILIAS
release_8 Revision v8.19
|
Class ilMailOptions this class handles user mails. More...
Public Member Functions | |
__construct (int $usrId, ilMailTransportSettings $mailTransportSettings=null, ilSetting $settings=null, ilDBInterface $db=null) | |
createMailOptionsEntry () | |
create entry in table_mail_options for a new user this method should only be called from createUser() More... | |
mayModifyIndividualTransportSettings () | |
maySeeIndividualTransportSettings () | |
mayManageInvididualSettings () | |
updateOptions () | |
getLinebreak () | |
getSignature () | |
getIncomingType () | |
setLinebreak (int $linebreak) | |
setSignature (string $signature) | |
setIncomingType (int $incomingType) | |
setIsCronJobNotificationStatus (bool $isCronJobNotificationEnabled) | |
isCronJobNotificationEnabled () | |
getEmailAddressMode () | |
setEmailAddressMode (int $emailAddressMode) | |
getExternalEmailAddresses () | |
Data Fields | |
const | INCOMING_LOCAL = 0 |
const | INCOMING_EMAIL = 1 |
const | INCOMING_BOTH = 2 |
const | FIRST_EMAIL = 3 |
const | SECOND_EMAIL = 4 |
const | BOTH_EMAIL = 5 |
const | DEFAULT_LINE_BREAK = 60 |
Protected Member Functions | |
read () | |
Protected Attributes | |
ILIAS | $ilias |
ilDBInterface | $db |
int | $usrId = 0 |
ilSetting | $settings |
string | $table_mail_options = 'mail_options' |
int | $linebreak = 0 |
string | $signature = '' |
bool | $isCronJobNotificationEnabled = false |
int | $incomingType = self::INCOMING_LOCAL |
int | $default_incoming_type = self::INCOMING_LOCAL |
int | $emailAddressMode = self::FIRST_EMAIL |
int | $default_email_address_mode = self::FIRST_EMAIL |
ilMailTransportSettings | $mailTransportSettings |
string | $firstEmailAddress = '' |
string | $secondEmailAddress = '' |
Static Private Member Functions | |
static | lookupNotificationSetting (int $usrId) |
Class ilMailOptions this class handles user mails.
Definition at line 26 of file class.ilMailOptions.php.
ilMailOptions::__construct | ( | int | $usrId, |
ilMailTransportSettings | $mailTransportSettings = null , |
||
ilSetting | $settings = null , |
||
ilDBInterface | $db = null |
||
) |
Definition at line 51 of file class.ilMailOptions.php.
References $default_email_address_mode, $default_incoming_type, $DIC, $usrId, ILIAS\Repository\int(), isCronJobNotificationEnabled(), read(), and ILIAS\Repository\settings().
ilMailOptions::createMailOptionsEntry | ( | ) |
create entry in table_mail_options for a new user this method should only be called from createUser()
Definition at line 88 of file class.ilMailOptions.php.
References isCronJobNotificationEnabled().
ilMailOptions::getEmailAddressMode | ( | ) |
Definition at line 241 of file class.ilMailOptions.php.
References $emailAddressMode.
Referenced by getExternalEmailAddresses(), and updateOptions().
ilMailOptions::getExternalEmailAddresses | ( | ) |
Definition at line 267 of file class.ilMailOptions.php.
References $firstEmailAddress, $secondEmailAddress, and getEmailAddressMode().
ilMailOptions::getIncomingType | ( | ) |
Definition at line 211 of file class.ilMailOptions.php.
References $incomingType.
Referenced by updateOptions().
ilMailOptions::getLinebreak | ( | ) |
Definition at line 201 of file class.ilMailOptions.php.
References $linebreak.
Referenced by updateOptions().
ilMailOptions::getSignature | ( | ) |
Definition at line 206 of file class.ilMailOptions.php.
References $signature.
Referenced by updateOptions().
ilMailOptions::isCronJobNotificationEnabled | ( | ) |
Definition at line 236 of file class.ilMailOptions.php.
References $isCronJobNotificationEnabled.
Referenced by __construct(), createMailOptionsEntry(), read(), setIsCronJobNotificationStatus(), and updateOptions().
|
staticprivate |
Definition at line 251 of file class.ilMailOptions.php.
References $DIC.
Referenced by updateOptions().
ilMailOptions::mayManageInvididualSettings | ( | ) |
Definition at line 119 of file class.ilMailOptions.php.
References ILIAS\Repository\settings().
Referenced by mayModifyIndividualTransportSettings(), and read().
ilMailOptions::mayModifyIndividualTransportSettings | ( | ) |
Definition at line 105 of file class.ilMailOptions.php.
References mayManageInvididualSettings(), maySeeIndividualTransportSettings(), and ILIAS\Repository\settings().
Referenced by read().
ilMailOptions::maySeeIndividualTransportSettings | ( | ) |
Definition at line 114 of file class.ilMailOptions.php.
References ILIAS\Repository\settings().
Referenced by mayModifyIndividualTransportSettings().
|
protected |
Definition at line 124 of file class.ilMailOptions.php.
References $query, $res, ILIAS\Repository\int(), isCronJobNotificationEnabled(), mayManageInvididualSettings(), and mayModifyIndividualTransportSettings().
Referenced by __construct().
ilMailOptions::setEmailAddressMode | ( | int | $emailAddressMode | ) |
ilMailOptions::setIncomingType | ( | int | $incomingType | ) |
ilMailOptions::setIsCronJobNotificationStatus | ( | bool | $isCronJobNotificationEnabled | ) |
Definition at line 231 of file class.ilMailOptions.php.
References $isCronJobNotificationEnabled, and isCronJobNotificationEnabled().
ilMailOptions::setLinebreak | ( | int | $linebreak | ) |
ilMailOptions::setSignature | ( | string | $signature | ) |
ilMailOptions::updateOptions | ( | ) |
Definition at line 177 of file class.ilMailOptions.php.
References $data, getEmailAddressMode(), getIncomingType(), getLinebreak(), getSignature(), ILIAS\Repository\int(), isCronJobNotificationEnabled(), lookupNotificationSetting(), and ILIAS\Repository\settings().
|
protected |
Definition at line 36 of file class.ilMailOptions.php.
|
protected |
Definition at line 46 of file class.ilMailOptions.php.
Referenced by __construct().
|
protected |
Definition at line 44 of file class.ilMailOptions.php.
Referenced by __construct().
|
protected |
Definition at line 45 of file class.ilMailOptions.php.
Referenced by getEmailAddressMode(), and setEmailAddressMode().
|
protected |
Definition at line 48 of file class.ilMailOptions.php.
Referenced by getExternalEmailAddresses().
|
protected |
Definition at line 35 of file class.ilMailOptions.php.
|
protected |
Definition at line 43 of file class.ilMailOptions.php.
Referenced by getIncomingType(), and setIncomingType().
|
protected |
Definition at line 42 of file class.ilMailOptions.php.
Referenced by isCronJobNotificationEnabled(), and setIsCronJobNotificationStatus().
|
protected |
Definition at line 40 of file class.ilMailOptions.php.
Referenced by getLinebreak(), and setLinebreak().
|
protected |
Definition at line 47 of file class.ilMailOptions.php.
|
protected |
Definition at line 49 of file class.ilMailOptions.php.
Referenced by getExternalEmailAddresses().
|
protected |
Definition at line 38 of file class.ilMailOptions.php.
|
protected |
Definition at line 41 of file class.ilMailOptions.php.
Referenced by getSignature(), and setSignature().
|
protected |
Definition at line 39 of file class.ilMailOptions.php.
|
protected |
Definition at line 37 of file class.ilMailOptions.php.
Referenced by __construct().
const ilMailOptions::BOTH_EMAIL = 5 |
Definition at line 33 of file class.ilMailOptions.php.
Referenced by ilIncomingMailInputGUI\addSubOptions(), and ilMailAppEventListener\handle().
const ilMailOptions::DEFAULT_LINE_BREAK = 60 |
Definition at line 34 of file class.ilMailOptions.php.
Referenced by ilMailOptionsTest\testConstructor().
const ilMailOptions::FIRST_EMAIL = 3 |
Definition at line 31 of file class.ilMailOptions.php.
Referenced by ilIncomingMailInputGUI\addSubOptions(), ilMailTransportSettings\adjust(), ilMailAppEventListener\handle(), ilObjMailGUI\populateGeneralSettingsForm(), and ilObjMailGUI\saveObject().
const ilMailOptions::INCOMING_BOTH = 2 |
Definition at line 30 of file class.ilMailOptions.php.
Referenced by ilIncomingMailInputGUI\addSubOptions(), ilMailOptionsFormGUI\save(), ilObjMailGUI\saveObject(), and ilMail\sendChanneledMails().
const ilMailOptions::INCOMING_EMAIL = 1 |
Definition at line 29 of file class.ilMailOptions.php.
Referenced by ilIncomingMailInputGUI\addSubOptions(), ilMailOptionsFormGUI\save(), ilObjMailGUI\saveObject(), ilMail\sendChanneledMails(), and ilMailTest\testExternalMailDeliveryToLocalRecipientsWorksAsExpected().
const ilMailOptions::INCOMING_LOCAL = 0 |
Definition at line 28 of file class.ilMailOptions.php.
Referenced by ilIncomingMailInputGUI\addSubOptions(), ilMailTransportSettings\adjust(), ilMailAddressTypeHelperImpl\receivesInternalMailsOnly(), ilAuthProviderECS\resetMailOptions(), and ilMailOptionsTest\testConstructor().
const ilMailOptions::SECOND_EMAIL = 4 |
Definition at line 32 of file class.ilMailOptions.php.
Referenced by ilIncomingMailInputGUI\addSubOptions(), ilMailTransportSettings\adjust(), and ilMailAppEventListener\handle().