コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
ファイル: EmailTemplateDAO.inc.php プロジェクト: sedici/ocs
 /**
  * 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);
 }
コード例 #4
0
 /**
  * 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);
 }
コード例 #5
0
 /**
  * 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);
 }
コード例 #6
0
 /**
  * Check if a template exists with the given email key.
  * @param $emailKey string
  * @return boolean
  */
 function templateExistsByKey($emailKey)
 {
     return parent::templateExistsByKey($emailKey, 0, 0);
 }