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

ProgressEvent.php

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


 01  <?php
 02  namespace GuzzleHttp\Event;
 03   
 04  use GuzzleHttp\Transaction;
 05   
 06  /**
 07   * Event object emitted when upload or download progress is made.
 08   *
 09   * You can access the progress values using their corresponding public
 10   * properties:
 11   *
 12   * - $downloadSize: The number of bytes that will be downloaded (if known)
 13   * - $downloaded: The number of bytes that have been downloaded
 14   * - $uploadSize: The number of bytes that will be uploaded (if known)
 15   * - $uploaded: The number of bytes that have been uploaded
 16   */
 17  class ProgressEvent extends AbstractRequestEvent
 18  {
 19      /** @var int Amount of data to be downloaded */
 20      public $downloadSize;
 21   
 22      /** @var int Amount of data that has been downloaded */
 23      public $downloaded;
 24   
 25      /** @var int Amount of data to upload */
 26      public $uploadSize;
 27   
 28      /** @var int Amount of data that has been uploaded */
 29      public $uploaded;
 30   
 31      /**
 32       * @param Transaction $transaction  Transaction being sent.
 33       * @param int         $downloadSize Amount of data to download (if known)
 34       * @param int         $downloaded   Amount of data that has been downloaded
 35       * @param int         $uploadSize   Amount of data to upload (if known)
 36       * @param int         $uploaded     Amount of data that had been uploaded
 37       */
 38      public function __construct(
 39          Transaction $transaction,
 40          $downloadSize,
 41          $downloaded,
 42          $uploadSize,
 43          $uploaded
 44      ) {
 45          parent::__construct($transaction);
 46          $this->downloadSize = $downloadSize;
 47          $this->downloaded = $downloaded;
 48          $this->uploadSize = $uploadSize;
 49          $this->uploaded = $uploaded;
 50      }
 51  }
 52