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_base.php

Zuletzt modifiziert: 09.10.2024, 12:52 - Dateigröße: 861.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\install;
 15   
 16  /**
 17   * Base class for installer task
 18   */
 19  abstract class task_base implements task_interface
 20  {
 21      /**
 22       * @var bool
 23       */
 24      protected $is_essential;
 25   
 26      /**
 27       * Constructor
 28       *
 29       * @param bool $essential
 30       */
 31      public function __construct($essential = true)
 32      {
 33          $this->is_essential = $essential;
 34      }
 35   
 36      /**
 37       * {@inheritdoc}
 38       */
 39      public function is_essential()
 40      {
 41          return $this->is_essential;
 42      }
 43   
 44      /**
 45       * {@inheritdoc}
 46       *
 47       * Note: Overwrite this method if your task is non-essential!
 48       */
 49      public function check_requirements()
 50      {
 51          return true;
 52      }
 53  }
 54