MediaWiki  REL1_22
ReplacementArray Class Reference

Replacement array for FSS with fallback to strtr() Supports lazy initialisation of FSS resource. More...

List of all members.

Public Member Functions

 __construct ($data=array())
 Create an object with the specified replacement array The array should have the same form as the replacement array for strtr()
 __sleep ()
 __wakeup ()
 getArray ()
 merge ($other)
 mergeArray ($data)
 removeArray ($data)
 removePair ($from)
 replace ($subject)
 setArray ($data)
 Set the whole replacement array at once.
 setPair ($from, $to)
 Set an element of the replacement array.

Public Attributes

 $data = false
 $fss = false

Detailed Description

Replacement array for FSS with fallback to strtr() Supports lazy initialisation of FSS resource.

Definition at line 407 of file StringUtils.php.


Constructor & Destructor Documentation

Create an object with the specified replacement array The array should have the same form as the replacement array for strtr()

Parameters:
array$data

Definition at line 416 of file StringUtils.php.

References $data, and data.


Member Function Documentation

Returns:
array

Definition at line 423 of file StringUtils.php.

References array().

Definition at line 427 of file StringUtils.php.

Returns:
array|bool

Definition at line 443 of file StringUtils.php.

References data.

Parameters:
ReplacementArray$other

Definition at line 468 of file StringUtils.php.

References data.

Parameters:
array$data

Definition at line 460 of file StringUtils.php.

References $data, and data.

Parameters:
array$data

Definition at line 484 of file StringUtils.php.

References $data, as, and removePair().

Parameters:
string$from

Definition at line 476 of file StringUtils.php.

References data.

Referenced by removeArray().

ReplacementArray::replace ( subject)
Parameters:
string$subject
Returns:
string

Definition at line 495 of file StringUtils.php.

References $result, data, wfProfileIn(), and wfProfileOut().

Set the whole replacement array at once.

Parameters:
array$data

Definition at line 435 of file StringUtils.php.

References $data, and data.

ReplacementArray::setPair ( from,
to 
)

Set an element of the replacement array.

Parameters:
string$from
string$to

Definition at line 452 of file StringUtils.php.

References data.


Member Data Documentation

ReplacementArray::$data = false

Definition at line 408 of file StringUtils.php.

Referenced by __construct(), mergeArray(), removeArray(), and setArray().

ReplacementArray::$fss = false

Definition at line 409 of file StringUtils.php.


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