app\Certificate::getLastLog PHP Method

getLastLog() public method

public getLastLog ( )
    public function getLastLog()
    {
        return file_get_contents($this->getPath() . "/last.log");
    }

Usage Example

Esempio n. 1
0
 public function sendRenewLog(Certificate $certificate)
 {
     if (!$this->config->alertRenew) {
         return false;
     }
     $subject = "Certificate " . $certificate->getName() . " was renewed";
     $body = "Hello,<br />\n" . " good news everyone! Certificate for " . $certificate->getName() . " was renewed:<br />\n<br />\n" . nl2br($certificate->getLastLog()) . $this->append;
     return $this->email($subject, $body);
 }