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

NodeInterface.php

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 1.88 KiB


 01  <?php
 02   
 03  /*
 04   * This file is part of the Symfony package.
 05   *
 06   * (c) Fabien Potencier <fabien@symfony.com>
 07   *
 08   * For the full copyright and license information, please view the LICENSE
 09   * file that was distributed with this source code.
 10   */
 11   
 12  namespace Symfony\Component\Config\Definition;
 13   
 14  /**
 15   * Common Interface among all nodes.
 16   *
 17   * In most cases, it is better to inherit from BaseNode instead of implementing
 18   * this interface yourself.
 19   *
 20   * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 21   */
 22  interface NodeInterface
 23  {
 24      /**
 25       * Returns the name of the node.
 26       *
 27       * @return string The name of the node
 28       */
 29      public function getName();
 30   
 31      /**
 32       * Returns the path of the node.
 33       *
 34       * @return string The node path
 35       */
 36      public function getPath();
 37   
 38      /**
 39       * Returns true when the node is required.
 40       *
 41       * @return bool If the node is required
 42       */
 43      public function isRequired();
 44   
 45      /**
 46       * Returns true when the node has a default value.
 47       *
 48       * @return bool If the node has a default value
 49       */
 50      public function hasDefaultValue();
 51   
 52      /**
 53       * Returns the default value of the node.
 54       *
 55       * @return mixed The default value
 56       *
 57       * @throws \RuntimeException if the node has no default value
 58       */
 59      public function getDefaultValue();
 60   
 61      /**
 62       * Normalizes the supplied value.
 63       *
 64       * @param mixed $value The value to normalize
 65       *
 66       * @return mixed The normalized value
 67       */
 68      public function normalize($value);
 69   
 70      /**
 71       * Merges two values together.
 72       *
 73       * @param mixed $leftSide
 74       * @param mixed $rightSide
 75       *
 76       * @return mixed The merged values
 77       */
 78      public function merge($leftSide, $rightSide);
 79   
 80      /**
 81       * Finalizes a value.
 82       *
 83       * @param mixed $value The value to finalize
 84       *
 85       * @return mixed The finalized value
 86       */
 87      public function finalize($value);
 88  }
 89