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

base.php

Zuletzt modifiziert: 09.10.2024, 12:54 - Dateigröße: 2.57 KiB


001  <?php
002  /**
003  *
004  * This file is part of the phpBB Forum Software package.
005  *
006  * @copyright (c) phpBB Limited <https://www.phpbb.com>
007  * @license GNU General Public License, version 2 (GPL-2.0)
008  *
009  * For full copyright and license information, please see
010  * the docs/CREDITS.txt file.
011  *
012  */
013   
014  namespace phpbb\notification\method;
015   
016  /**
017  * Base notifications method class
018  */
019  abstract class base implements \phpbb\notification\method\method_interface
020  {
021      /** @var \phpbb\notification\manager */
022      protected $notification_manager;
023   
024      /** @var \phpbb\user_loader */
025      protected $user_loader;
026   
027      /** @var \phpbb\db\driver\driver_interface */
028      protected $db;
029   
030      /** @var \phpbb\cache\driver\driver_interface */
031      protected $cache;
032   
033      /** @var \phpbb\template\template */
034      protected $template;
035   
036      /** @var \phpbb\extension\manager */
037      protected $extension_manager;
038   
039      /** @var \phpbb\user */
040      protected $user;
041   
042      /** @var \phpbb\auth\auth */
043      protected $auth;
044   
045      /** @var \phpbb\config\config */
046      protected $config;
047   
048      /** @var string */
049      protected $phpbb_root_path;
050   
051      /** @var string */
052      protected $php_ext;
053   
054      /**
055      * Queue of messages to be sent
056      *
057      * @var array
058      */
059      protected $queue = array();
060   
061      /**
062      * Notification Method Base Constructor
063      * 
064      * @param \phpbb\user_loader $user_loader
065      * @param \phpbb\db\driver\driver_interface $db
066      * @param \phpbb\cache\driver\driver_interface $cache
067      * @param \phpbb\user $user
068      * @param \phpbb\auth\auth $auth
069      * @param \phpbb\config\config $config
070      * @param string $phpbb_root_path
071      * @param string $php_ext
072      * @return \phpbb\notification\method\base
073      */
074      public function __construct(\phpbb\user_loader $user_loader, \phpbb\db\driver\driver_interface $db, \phpbb\cache\driver\driver_interface $cache, $user, \phpbb\auth\auth $auth, \phpbb\config\config $config, $phpbb_root_path, $php_ext)
075      {
076          $this->user_loader = $user_loader;
077          $this->db = $db;
078          $this->cache = $cache;
079          $this->user = $user;
080          $this->auth = $auth;
081          $this->config = $config;
082          $this->phpbb_root_path = $phpbb_root_path;
083          $this->php_ext = $php_ext;
084      }
085   
086      /**
087      * Set notification manager (required)
088      * 
089      * @param \phpbb\notification\manager $notification_manager
090      */
091      public function set_notification_manager(\phpbb\notification\manager $notification_manager)
092      {
093          $this->notification_manager = $notification_manager;
094      }
095   
096      /**
097      * Add a notification to the queue
098      *
099      * @param \phpbb\notification\type\type_interface $notification
100      */
101      public function add_to_queue(\phpbb\notification\type\type_interface $notification)
102      {
103          $this->queue[] = $notification;
104      }
105   
106      /**
107      * Empty the queue
108      */
109      protected function empty_queue()
110      {
111          $this->queue = array();
112      }
113  }
114