/** * Check if a template exists with the given email key for a journal. * @param $emailKey string * @param $journalId int * @return boolean */ function templateExistsByKey($emailKey, $journalId = null) { return parent::templateExistsByKey($emailKey, $journalId !== null ? ASSOC_TYPE_JOURNAL : null, $journalId); }
/** * Check if a template exists with the given email key for a journal. * @param $emailKey string * @param $journalId int * @return boolean */ function templateExistsByKey($emailKey, $journalId) { return parent::templateExistsByKey($emailKey, ASSOC_TYPE_JOURNAL, $journalId); }
/** * Check if a template exists with the given email key for a conference. * @param $emailKey string * @param $conferenceId int * @return boolean */ function templateExistsByKey($emailKey, $conferenceId) { return parent::templateExistsByKey($emailKey, ASSOC_TYPE_CONFERENCE, $conferenceId); }
/** * Check if a template exists with the given email key for a press. * @param $emailKey string * @param $pressId int * @return boolean */ function templateExistsByKey($emailKey, $pressId = null) { return parent::templateExistsByKey($emailKey, $pressId ? ASSOC_TYPE_PRESS : null, $pressId); }
/** * Check if a template exists with the given email key for a press. * @param $emailKey string * @param $pressId int * @return boolean */ function templateExistsByKey($emailKey, $pressId) { return parent::templateExistsByKey($emailKey, ASSOC_TYPE_PRESS, $pressId); }
/** * Check if a template exists with the given email key. * @param $emailKey string * @return boolean */ function templateExistsByKey($emailKey) { return parent::templateExistsByKey($emailKey, 0, 0); }