setEmailLogExistsText() public method

Checks if a text log file exits and sets $this->emailLogExistsText to 0 or 1
Beispiel #1
0
 /**
  * Returns the EmailLog entry by the given id
  *
  * @static
  * @param integer $id
  * @return EmailLog|null
  */
 public static function getById($id)
 {
     $id = intval($id);
     if ($id < 1) {
         return null;
     }
     $emailLog = new Model\Tool\Email\Log();
     $emailLog->getDao()->getById($id);
     $emailLog->setEmailLogExistsHtml();
     $emailLog->setEmailLogExistsText();
     return $emailLog;
 }