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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

task.php

Zuletzt modifiziert: 09.10.2024, 12:54 - Dateigröße: 950.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\cron\task;
15   
16  /**
17  * Cron task interface
18  */
19  interface task
20  {
21      /**
22      * Returns the name of the task.
23      *
24      * @return string        Name of wrapped task.
25      */
26      public function get_name();
27   
28      /**
29      * Runs this cron task.
30      *
31      * @return null
32      */
33      public function run();
34   
35      /**
36      * Returns whether this cron task can run, given current board configuration.
37      *
38      * For example, a cron task that prunes forums can only run when
39      * forum pruning is enabled.
40      *
41      * @return bool
42      */
43      public function is_runnable();
44   
45      /**
46      * Returns whether this cron task should run now, because enough time
47      * has passed since it was last run.
48      *
49      * @return bool
50      */
51      public function should_run();
52  }
53