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

PostBodyInterface.php

Zuletzt modifiziert: 09.10.2024, 12:57 - Dateigröße: 2.72 KiB


001  <?php
002  namespace GuzzleHttp\Post;
003   
004  use GuzzleHttp\Message\AppliesHeadersInterface;
005  use GuzzleHttp\Stream\StreamInterface;
006   
007  /**
008   * Represents a POST body that is sent as either a multipart/form-data stream
009   * or application/x-www-urlencoded stream.
010   */
011  interface PostBodyInterface extends StreamInterface, \Countable, AppliesHeadersInterface
012  {
013      /**
014       * Set a specific field
015       *
016       * @param string       $name  Name of the field to set
017       * @param string|array $value Value to set
018       */
019      public function setField($name, $value);
020   
021      /**
022       * Set the aggregation strategy that will be used to turn multi-valued
023       * fields into a string.
024       *
025       * The aggregation function accepts a deeply nested array of query string
026       * values and returns a flattened associative array of key value pairs.
027       *
028       * @param callable $aggregator
029       */
030      public function setAggregator(callable $aggregator);
031   
032      /**
033       * Set to true to force a multipart upload even if there are no files.
034       *
035       * @param bool $force Set to true to force multipart uploads or false to
036       *     remove this flag.
037       */
038      public function forceMultipartUpload($force);
039   
040      /**
041       * Replace all existing form fields with an array of fields
042       *
043       * @param array $fields Associative array of fields to set
044       */
045      public function replaceFields(array $fields);
046   
047      /**
048       * Get a specific field by name
049       *
050       * @param string $name Name of the POST field to retrieve
051       *
052       * @return string|null
053       */
054      public function getField($name);
055   
056      /**
057       * Remove a field by name
058       *
059       * @param string $name Name of the field to remove
060       */
061      public function removeField($name);
062   
063      /**
064       * Returns an associative array of names to values or a query string.
065       *
066       * @param bool $asString Set to true to retrieve the fields as a query
067       *     string.
068       *
069       * @return array|string
070       */
071      public function getFields($asString = false);
072   
073      /**
074       * Returns true if a field is set
075       *
076       * @param string $name Name of the field to set
077       *
078       * @return bool
079       */
080      public function hasField($name);
081   
082      /**
083       * Get all of the files
084       *
085       * @return array Returns an array of PostFileInterface objects
086       */
087      public function getFiles();
088   
089      /**
090       * Get a POST file by name.
091       *
092       * @param string $name Name of the POST file to retrieve
093       *
094       * @return PostFileInterface|null
095       */
096      public function getFile($name);
097   
098      /**
099       * Add a file to the POST
100       *
101       * @param PostFileInterface $file File to add
102       */
103      public function addFile(PostFileInterface $file);
104   
105      /**
106       * Remove all files from the collection
107       */
108      public function clearFiles();
109  }
110