MediaWiki  1.23.13
LikeMatch Class Reference

Used by DatabaseBase::buildLike() to represent characters that have special meaning in SQL LIKE clauses and thus need no escaping. More...

Collaboration diagram for LikeMatch:

Public Member Functions

 __construct ( $s)
 Store a string into a LikeMatch marker object. More...
 
 toString ()
 Return the original stored string. More...
 

Private Attributes

string $str
 

Detailed Description

Used by DatabaseBase::buildLike() to represent characters that have special meaning in SQL LIKE clauses and thus need no escaping.

Don't instantiate it manually, use DatabaseBase::anyChar() and anyString() instead.

Definition at line 296 of file DatabaseUtility.php.

Constructor & Destructor Documentation

◆ __construct()

LikeMatch::__construct (   $s)

Store a string into a LikeMatch marker object.

Parameters
string$s

Definition at line 304 of file DatabaseUtility.php.

References $s.

Member Function Documentation

◆ toString()

LikeMatch::toString ( )

Return the original stored string.

Returns
string

Definition at line 313 of file DatabaseUtility.php.

References $str.

Member Data Documentation

◆ $str

string LikeMatch::$str
private

Definition at line 297 of file DatabaseUtility.php.

Referenced by toString().


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