Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

email.php

Zuletzt modifiziert: 09.10.2024, 12:54 - Dateigröße: 962.00 Bytes


 01  <?php
 02  /**
 03  *
 04  * This file is part of the phpBB Forum Software package.
 05  *
 06  * @copyright (c) phpBB Limited <https://www.phpbb.com>
 07  * @license GNU General Public License, version 2 (GPL-2.0)
 08  *
 09  * For full copyright and license information, please see
 10  * the docs/CREDITS.txt file.
 11  *
 12  */
 13   
 14  namespace phpbb\notification\method;
 15   
 16  /**
 17  * Email notification method class
 18  * This class handles sending emails for notifications
 19  */
 20   
 21  class email extends \phpbb\notification\method\messenger_base
 22  {
 23      /**
 24      * Get notification method name
 25      *
 26      * @return string
 27      */
 28      public function get_type()
 29      {
 30          return 'notification.method.email';
 31      }
 32   
 33      /**
 34      * Is this method available for the user?
 35      * This is checked on the notifications options
 36      */
 37      public function is_available()
 38      {
 39          return $this->config['email_enable'] && $this->user->data['user_email'];
 40      }
 41   
 42      /**
 43      * Parse the queue and notify the users
 44      */
 45      public function notify()
 46      {
 47          return $this->notify_using_messenger(NOTIFY_EMAIL);
 48      }
 49  }
 50