Public Member Functions | |
__construct (Db $zdb, Login $login, Preferences $preferences, MailingsList $filters=null, Mailing $mailing=null) | |
getHistory () | |
storeMailing (bool $sent=false) | |
update () | |
store () | |
removeEntries (int|array $ids, History $hist) | |
getCount () | |
Public Member Functions inherited from Galette\Core\History | |
__construct (Db $zdb, Login $login, Preferences $preferences, HistoryList $filters=null) | |
add (string $action, string $argument='', string $query='') | |
clean () | |
__get (string $name) | |
__isset (string $name) | |
__set (string $name, mixed $value) | |
setFilters (HistoryList $filters) | |
getUsersList () | |
getActionsList () | |
Public Attributes | |
const | TABLE = 'mailing_history' |
const | PK = 'mailing_id' |
const | FILTER_DC_SENT = 0 |
const | FILTER_SENT = 1 |
const | FILTER_NOT_SENT = 2 |
Public Attributes inherited from Galette\Core\History | |
const | TABLE = 'logs' |
const | PK = 'id_log' |
Protected Member Functions | |
buildOrderClause () | |
getTableName (bool $prefixed=false) | |
getPk () | |
Additional Inherited Members | |
Static Public Member Functions inherited from Galette\Core\History | |
static | findUserIPAddress () |
Protected Attributes inherited from Galette\Core\History | |
int | $count |
Db | $zdb |
Login | $login |
Preferences | $preferences |
HistoryList | $filters |
array | $users |
array | $actions |
bool | $with_lists = true |
Galette\Core\MailingHistory::__construct | ( | Db | $zdb, |
Login | $login, | ||
Preferences | $preferences, | ||
MailingsList | $filters = null , |
||
Mailing | $mailing = null |
||
) |
Default constructor
Db | $zdb | Database |
Login | $login | Login |
Preferences | $preferences | Preferences |
MailingsList | null | $filters | Filtering |
Mailing | null | $mailing | Mailing |
|
protected |
Builds the order clause
Reimplemented from Galette\Core\History.
Galette\Core\MailingHistory::getCount | ( | ) |
Galette\Core\MailingHistory::getHistory | ( | ) |
|
protected |
|
protected |
Get table's name
boolean | $prefixed | Whether table name should be prefixed |
Reimplemented from Galette\Core\History.
Galette\Core\MailingHistory::removeEntries | ( | int|array | $ids, |
History | $hist | ||
) |
Galette\Core\MailingHistory::store | ( | ) |
Store in the database
Galette\Core\MailingHistory::storeMailing | ( | bool | $sent = false | ) |
Store a mailing in the history
boolean | $sent | Defaults to false |
Galette\Core\MailingHistory::update | ( | ) |
Update in the database