Verzeichnisstruktur phpBB-3.3.16


Veröffentlicht
27.04.2026

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

parser_interface.php

Zuletzt modifiziert: 01.05.2026, 11:25 - Dateigröße: 1.90 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\textformatter;
 015   
 016  interface parser_interface
 017  {
 018      /**
 019      * Parse given text
 020      *
 021      * @param  string $text
 022      * @return string
 023      */
 024      public function parse($text);
 025   
 026      /**
 027      * Disable a specific BBCode
 028      *
 029      * @param  string $name BBCode name
 030      * @return null
 031      */
 032      public function disable_bbcode($name);
 033   
 034      /**
 035      * Disable BBCodes in general
 036      */
 037      public function disable_bbcodes();
 038   
 039      /**
 040      * Disable the censor
 041      */
 042      public function disable_censor();
 043   
 044      /**
 045      * Disable magic URLs
 046      */
 047      public function disable_magic_url();
 048   
 049      /**
 050      * Disable smilies
 051      */
 052      public function disable_smilies();
 053   
 054      /**
 055      * Enable a specific BBCode
 056      *
 057      * @param  string $name BBCode name
 058      * @return null
 059      */
 060      public function enable_bbcode($name);
 061   
 062      /**
 063      * Enable BBCodes in general
 064      */
 065      public function enable_bbcodes();
 066   
 067      /**
 068      * Enable the censor
 069      */
 070      public function enable_censor();
 071   
 072      /**
 073      * Enable magic URLs
 074      */
 075      public function enable_magic_url();
 076   
 077      /**
 078      * Enable smilies
 079      */
 080      public function enable_smilies();
 081   
 082      /**
 083      * Get the list of errors that were generated during last parsing
 084      *
 085      * @return array[] Array of arrays. Each array contains a lang string at index 0 plus any number
 086      *                 of optional parameters
 087      */
 088      public function get_errors();
 089   
 090      /**
 091      * Set a variable to be used by the parser
 092      *
 093      *  - max_font_size
 094      *  - max_img_height
 095      *  - max_img_width
 096      *  - max_smilies
 097      *  - max_urls
 098      *
 099      * @param  string $name
 100      * @param  mixed  $value
 101      * @return null
 102      */
 103      public function set_var($name, $value);
 104   
 105      /**
 106      * Set multiple variables to be used by the parser
 107      *
 108      * @param  array $vars Associative array of [name => value]
 109      * @return null
 110      */
 111      public function set_vars(array $vars);
 112  }
 113