MediaWiki REL1_33
DeferredStringifier Class Reference
Collaboration diagram for DeferredStringifier:

Public Member Functions

 __construct ( $callback)
 
 __toString ()
 Get the string generated from the callback.
 

Private Attributes

callable $callback
 Callback used for result string generation.
 
array $params
 
string $result
 

Detailed Description

Since
1.25
Deprecated
since 1.31, use Message::listParam() instead

Definition at line 27 of file DeferredStringifier.php.

Constructor & Destructor Documentation

◆ __construct()

DeferredStringifier::__construct ( $callback)
Parameters
callable$callbackCallback that gets called by __toString
mixed$param,...Parameters to the callback

Definition at line 41 of file DeferredStringifier.php.

References $callback, and and().

Member Function Documentation

◆ __toString()

DeferredStringifier::__toString ( )

Get the string generated from the callback.

Returns
string

Definition at line 52 of file DeferredStringifier.php.

References $result, and and().

Member Data Documentation

◆ $callback

callable DeferredStringifier::$callback
private

Callback used for result string generation.

Definition at line 29 of file DeferredStringifier.php.

Referenced by __construct().

◆ $params

array DeferredStringifier::$params
private

Definition at line 32 of file DeferredStringifier.php.

◆ $result

string DeferredStringifier::$result
private

Definition at line 35 of file DeferredStringifier.php.

Referenced by __toString().


The documentation for this class was generated from the following file: