_getFormattedNumEntriesPerPriority example

public function shutdown()
    {
        // If there are events to mail, use them as message body. Otherwise,         // there is no mail to be sent.         if (empty($this->_eventsToMail)) {
            return;
        }

        if ($this->_subjectPrependText !== null) {
            // Tack on the summary of entries per-priority to the subject             // line and set it on the Zend_Mail object.             $numEntries = $this->_getFormattedNumEntriesPerPriority();
            $this->_mail->setSubject(
                "{$this->_subjectPrependText} ({$numEntries})");
        }


        // Always provide events to mail as plaintext.         $this->_mail->setBodyText(implode('', $this->_eventsToMail));

        // Finally, send the mail. If an exception occurs, convert it into a         // warning-level message so we can avoid an exception thrown without a         // stack frame.
Home | Imprint | This part of the site doesn't use cookies.