Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
base.php
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 /**
025 * Queue of messages to be sent
026 *
027 * @var array
028 */
029 protected $queue = array();
030
031 /**
032 * Set notification manager (required)
033 *
034 * @param \phpbb\notification\manager $notification_manager
035 */
036 public function set_notification_manager(\phpbb\notification\manager $notification_manager)
037 {
038 $this->notification_manager = $notification_manager;
039 }
040
041 /**
042 * Is the method enable by default?
043 *
044 * @return bool
045 */
046 public function is_enabled_by_default()
047 {
048 return false;
049 }
050
051 /**
052 * {@inheritdoc}
053 */
054 public function get_notified_users($notification_type_id, array $options)
055 {
056 return array();
057 }
058
059 /**
060 * {@inheritdoc}
061 */
062 public function load_notifications(array $options = array())
063 {
064 return array(
065 'notifications' => array(),
066 'unread_count' => 0,
067 'total_count' => 0,
068 );
069 }
070
071 /**
072 * Add a notification to the queue
073 *
074 * @param \phpbb\notification\type\type_interface $notification
075 */
076 public function add_to_queue(\phpbb\notification\type\type_interface $notification)
077 {
078 $this->queue[] = $notification;
079 }
080
081 /**
082 * {@inheritdoc}
083 */
084 public function update_notification($notification, array $data, array $options)
085 {
086 }
087
088 /**
089 * {@inheritdoc
090 */
091 public function mark_notifications($notification_type_id, $item_id, $user_id, $time = false, $mark_read = true)
092 {
093 }
094
095 /**
096 * {@inheritdoc}
097 */
098 public function mark_notifications_by_parent($notification_type_id, $item_parent_id, $user_id, $time = false, $mark_read = true)
099 {
100 }
101
102 /**
103 * {@inheritdoc}
104 */
105 public function mark_notifications_by_id($notification_id, $time = false, $mark_read = true)
106 {
107 }
108
109 /**
110 * {@inheritdoc}
111 */
112 public function delete_notifications($notification_type_id, $item_id, $parent_id = false, $user_id = false)
113 {
114 }
115
116 /**
117 * {@inheritdoc}
118 */
119 public function prune_notifications($timestamp, $only_read = true)
120 {
121 }
122
123 /**
124 * {@inheritdoc}
125 */
126 public function purge_notifications($notification_type_id)
127 {
128 }
129
130 /**
131 * Empty the queue
132 */
133 protected function empty_queue()
134 {
135 $this->queue = array();
136 }
137 }
138