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 ()
 setArray ($data)
 Set the whole replacement array at once.
 getArray ()
 setPair ($from, $to)
 Set an element of the replacement array.
 mergeArray ($data)
 merge ($other)
 removePair ($from)
 removeArray ($data)
 replace ($subject)

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 248 of file StringUtils.php.


Constructor & Destructor Documentation

ReplacementArray::__construct ( data = array()  ) 

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

Definition at line 256 of file StringUtils.php.

References $data.


Member Function Documentation

ReplacementArray::__sleep (  ) 

Definition at line 260 of file StringUtils.php.

ReplacementArray::__wakeup (  ) 

Definition at line 264 of file StringUtils.php.

ReplacementArray::getArray (  ) 

Definition at line 276 of file StringUtils.php.

ReplacementArray::merge ( other  ) 

Definition at line 293 of file StringUtils.php.

ReplacementArray::mergeArray ( data  ) 

Definition at line 288 of file StringUtils.php.

References $data.

ReplacementArray::removeArray ( data  ) 

Definition at line 303 of file StringUtils.php.

References $data, and removePair().

ReplacementArray::removePair ( from  ) 

Definition at line 298 of file StringUtils.php.

Referenced by removeArray().

ReplacementArray::replace ( subject  ) 

Definition at line 309 of file StringUtils.php.

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

ReplacementArray::setArray ( data  ) 

Set the whole replacement array at once.

Definition at line 271 of file StringUtils.php.

References $data.

ReplacementArray::setPair ( from,
to 
)

Set an element of the replacement array.

Definition at line 283 of file StringUtils.php.


Member Data Documentation

ReplacementArray::$data = false

Definition at line 249 of file StringUtils.php.

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

ReplacementArray::$fss = false

Definition at line 250 of file StringUtils.php.


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

Generated on Sat Sep 5 02:08:45 2009 for MediaWiki by  doxygen 1.5.9