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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
MagicFutureTrait.php
01 <?php
02 namespace GuzzleHttp\Ring\Future;
03
04 /**
05 * Implements common future functionality that is triggered when the result
06 * property is accessed via a magic __get method.
07 *
08 * @property mixed $_value Actual data used by the future. Accessing this
09 * property will cause the future to block if needed.
10 */
11 trait MagicFutureTrait
12 {
13 use BaseFutureTrait;
14
15 /**
16 * This function handles retrieving the dereferenced result when requested.
17 *
18 * @param string $name Should always be "data" or an exception is thrown.
19 *
20 * @return mixed Returns the dereferenced data.
21 * @throws \RuntimeException
22 * @throws \GuzzleHttp\Ring\Exception\CancelledException
23 */
24 public function __get($name)
25 {
26 if ($name !== '_value') {
27 throw new \RuntimeException("Class has no {$name} property");
28 }
29
30 return $this->_value = $this->wait();
31 }
32 }
33