MediaWiki REL1_39
Wikimedia\Rdbms\LikeMatch Class Reference

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

Public Member Functions

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

Detailed Description

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

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

Definition at line 10 of file LikeMatch.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\LikeMatch::__construct ( $s)

Store a string into a LikeMatch marker object.

Parameters
string$s

Definition at line 19 of file LikeMatch.php.

References $s.

Member Function Documentation

◆ toString()

Wikimedia\Rdbms\LikeMatch::toString ( )

Return the original stored string.

Returns
string

Definition at line 28 of file LikeMatch.php.


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