MediaWiki  1.34.0
DeferredStringifier Class Reference

Public Member Functions

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

Private Attributes

callable $callback
 Callback used for result string generation. More...
 
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,
  $params 
)
Parameters
callable$callbackCallback that gets called by __toString
mixed...$params Parameters to the callback

Definition at line 41 of file DeferredStringifier.php.

References $callback, and $params.

Member Function Documentation

◆ __toString()

DeferredStringifier::__toString ( )

Get the string generated from the callback.

Returns
string

Definition at line 51 of file DeferredStringifier.php.

References $result.

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.

Referenced by __construct().

◆ $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: