|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| add ($emailTemplate, $request) | |
| delete ($emailTemplate) | |
| edit ($emailTemplate, $params, $request) | |
| get ($emailTemplateId) | |
| getByKey ($contextId, $key) | |
| getCount ($args=[]) | |
| getFullProperties ($emailTemplate, $args=null) | |
| getIds ($args=[]) | |
| getMany ($args=[]) | |
| getMax ($args=[]) | |
| getProperties ($emailTemplate, $props, $args=null) | |
| getQueryBuilder ($args=[]) | |
| getSummaryProperties ($emailTemplate, $args=null) | |
| restoreDefaults ($contextId) | |
| validate ($action, $props, $allowedLocales, $primaryLocale) | |
Definition at line 32 of file PKPEmailTemplateService.inc.php.
| PKP\Services\PKPEmailTemplateService::add | ( | $emailTemplate, | |
| $request | |||
| ) |
Definition at line 268 of file PKPEmailTemplateService.inc.php.
References HookRegistry\call(), PKP\Services\PKPEmailTemplateService\getByKey(), and DAORegistry\getDAO().
Referenced by PKP\Services\PKPEmailTemplateService\validate().
| PKP\Services\PKPEmailTemplateService::delete | ( | $emailTemplate | ) |
Definition at line 320 of file PKPEmailTemplateService.inc.php.
References HookRegistry\call(), and DAORegistry\getDAO().
| PKP\Services\PKPEmailTemplateService::edit | ( | $emailTemplate, | |
| $params, | |||
| $request | |||
| ) |
Definition at line 288 of file PKPEmailTemplateService.inc.php.
References HookRegistry\call(), PKP\Services\PKPEmailTemplateService\getByKey(), and DAORegistry\getDAO().
| PKP\Services\PKPEmailTemplateService::get | ( | $emailTemplateId | ) |
Do not use. An email template should be retrieved by its key.
Definition at line 39 of file PKPEmailTemplateService.inc.php.
| PKP\Services\PKPEmailTemplateService::getByKey | ( | $contextId, | |
| $key | |||
| ) |
Get an email template by key
Returns a custom email template if one exists for the requested context or the default template if no custom template exists.
Returns null if no template is found for the requested key
| integer | $contextId | |
| string | $key |
Definition at line 55 of file PKPEmailTemplateService.inc.php.
References DAORegistry\getDAO().
Referenced by PKP\Services\PKPEmailTemplateService\add(), PKP\Services\PKPEmailTemplateService\edit(), and PKP\Services\PKPEmailTemplateService\validate().
| PKP\Services\PKPEmailTemplateService::getCount | ( | $args = [] | ) |
Definition at line 73 of file PKPEmailTemplateService.inc.php.
References PKP\Services\PKPEmailTemplateService\getQueryBuilder().
Referenced by PKP\Services\PKPEmailTemplateService\getMax().
| PKP\Services\PKPEmailTemplateService::getFullProperties | ( | $emailTemplate, | |
$args = null |
|||
| ) |
Definition at line 199 of file PKPEmailTemplateService.inc.php.
References PKPServices\get(), PKP\Services\PKPEmailTemplateService\getProperties(), and PKP\Services\SCHEMA_EMAIL_TEMPLATE.
| PKP\Services\PKPEmailTemplateService::getIds | ( | $args = [] | ) |
Definition at line 80 of file PKPEmailTemplateService.inc.php.
| PKP\Services\PKPEmailTemplateService::getMany | ( | $args = [] | ) |
Get email templates
| array | $args | { @option bool isEnabled @option int|array fromRoleIds @option int|array toRoleIds @option string searchPhrase @option int|array stageIds } |
Definition at line 96 of file PKPEmailTemplateService.inc.php.
References DAORegistry\getDAO(), and PKP\Services\PKPEmailTemplateService\getQueryBuilder().
| PKP\Services\PKPEmailTemplateService::getMax | ( | $args = [] | ) |
Definition at line 108 of file PKPEmailTemplateService.inc.php.
References PKP\Services\PKPEmailTemplateService\getCount().
| PKP\Services\PKPEmailTemplateService::getProperties | ( | $emailTemplate, | |
| $props, | |||
$args = null |
|||
| ) |
Definition at line 151 of file PKPEmailTemplateService.inc.php.
References HookRegistry\call(), PKPServices\get(), and PKP\Services\SCHEMA_EMAIL_TEMPLATE.
Referenced by PKP\Services\PKPEmailTemplateService\getFullProperties(), and PKP\Services\PKPEmailTemplateService\getSummaryProperties().
| PKP\Services\PKPEmailTemplateService::getQueryBuilder | ( | $args = [] | ) |
Definition at line 118 of file PKPEmailTemplateService.inc.php.
References HookRegistry\call(), and PKPApplication\get().
Referenced by PKP\Services\PKPEmailTemplateService\getCount(), and PKP\Services\PKPEmailTemplateService\getMany().
| PKP\Services\PKPEmailTemplateService::getSummaryProperties | ( | $emailTemplate, | |
$args = null |
|||
| ) |
Definition at line 190 of file PKPEmailTemplateService.inc.php.
References PKPServices\get(), PKP\Services\PKPEmailTemplateService\getProperties(), and PKP\Services\SCHEMA_EMAIL_TEMPLATE.
| PKP\Services\PKPEmailTemplateService::restoreDefaults | ( | $contextId | ) |
Remove all custom templates and template modifications. Resets the email template settings to their installed defaults.
Definition at line 333 of file PKPEmailTemplateService.inc.php.
References HookRegistry\call(), and DAORegistry\getDAO().
| PKP\Services\PKPEmailTemplateService::validate | ( | $action, | |
| $props, | |||
| $allowedLocales, | |||
| $primaryLocale | |||
| ) |
Definition at line 208 of file PKPEmailTemplateService.inc.php.
References PKP\Services\PKPEmailTemplateService\add(), ValidatorFactory\allowedLocales(), HookRegistry\call(), PKPServices\get(), PKP\Services\PKPEmailTemplateService\getByKey(), ValidatorFactory\make(), AppLocale\requireComponents(), ValidatorFactory\required(), and PKP\Services\SCHEMA_EMAIL_TEMPLATE.