|
const | STEP_START = 0 |
|
const | STEP_PREVIEW = 1 |
|
const | STEP_SEND = 2 |
|
const | STEP_SENT = 3 |
|
const | MIME_HTML = 'text/html' |
|
const | MIME_TEXT = 'text/plain' |
|
const | MIME_DEFAULT = self::MIME_TEXT |
|
const | MAIL_ERROR = 0 |
|
const | MAIL_SENT = 1 |
|
const | METHOD_DISABLED = 0 |
|
const | METHOD_PHPMAIL = 1 |
|
const | METHOD_SMTP = 2 |
|
const | METHOD_QMAIL = 3 |
|
const | METHOD_GMAIL = 4 |
|
const | METHOD_SENDMAIL = 5 |
|
const | SENDER_PREFS = 0 |
|
const | SENDER_CURRENT = 1 |
|
const | SENDER_OTHER = 2 |
|
◆ __construct()
Galette\Core\Mailing::__construct |
( |
Preferences |
$preferences, |
|
|
array |
$members = [] , |
|
|
int |
$id = null |
|
) |
| |
Default constructor
- Parameters
-
Preferences | $preferences | Preferences instance |
| array<int,Adherent> | $members An array of members |
| ?integer | $id Identifier, defaults to null |
TODO: add a preference that propose default mime-type to use, then init it here
◆ __get()
Galette\Core\Mailing::__get |
( |
string |
$name | ) |
|
Global getter method
- Parameters
-
string | $name | name of the property we want to retrieve |
- Returns
- mixed the called property
◆ __isset()
Galette\Core\Mailing::__isset |
( |
string |
$name | ) |
|
Global isset method Required for twig to access properties via __get
- Parameters
-
string | $name | name of the property we want to retrieve |
- Returns
- bool
◆ __set()
Galette\Core\Mailing::__set |
( |
string |
$name, |
|
|
mixed |
$value |
|
) |
| |
Global setter method
- Parameters
-
string | $name | name of the property we want to assign a value to |
mixed | $value | a relevant value for the property |
- Returns
- void
◆ existsInHistory()
Galette\Core\Mailing::existsInHistory |
( |
| ) |
|
Does mailing already exists in history?
- Returns
- boolean
◆ getAttachmentErrorMessage()
Galette\Core\Mailing::getAttachmentErrorMessage |
( |
int |
$code | ) |
|
Return textual error message
- Parameters
-
- Returns
- string Localized message
◆ loadFromHistory()
Galette\Core\Mailing::loadFromHistory |
( |
ArrayObject |
$rs, |
|
|
bool |
$new = true |
|
) |
| |
Loads a mailing from history
- Parameters
-
| ArrayObject<string,mixed> | $rs Mailing entry |
boolean | $new | True if we create a 'new' mailing, false otherwise (from preview for example) |
- Returns
- boolean
◆ moveAttachments()
Galette\Core\Mailing::moveAttachments |
( |
int |
$id | ) |
|
Move attachments with final id once mailing has been stored
- Parameters
-
- Returns
- void
◆ removeAttachment()
Galette\Core\Mailing::removeAttachment |
( |
string |
$name | ) |
|
Remove specified attachment
- Parameters
-
- Returns
- void
◆ removeAttachments()
Galette\Core\Mailing::removeAttachments |
( |
bool |
$temp = false | ) |
|
Remove mailing attachments
- Parameters
-
boolean | $temp | Remove only temporary attachments, to avoid history breaking |
- Returns
- boolean
◆ send()
Galette\Core\Mailing::send |
( |
| ) |
|
◆ setRecipients()
Galette\Core\Mailing::setRecipients |
( |
array |
$members | ) |
|
Set mailing recipients
@phpstan-ignore-next-line
- Parameters
-
array<int,Adherent> | $members Array of Adherent objects |
- Returns
- bool
Reimplemented from Galette\Core\GaletteMail.
◆ store()
Galette\Core\Mailing::store |
( |
array |
$files | ) |
|
Store maling attachments
- Parameters
-
array<string,string|int> | $files Array of uploaded files to store |
- Returns
- true|int error code
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/Core/Mailing.php