Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5971350
LikeMatch.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
587 B
Referenced Files
None
Subscribers
None
LikeMatch.php
View Options
<?php
namespace
Wikimedia\Rdbms
;
/**
* 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.
*/
class
LikeMatch
{
/** @var string */
private
$str
;
/**
* Store a string into a LikeMatch marker object.
*
* @param string $s
*/
public
function
__construct
(
$s
)
{
$this
->
str
=
$s
;
}
/**
* Return the original stored string.
*
* @return string
*/
public
function
toString
()
{
return
$this
->
str
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 15:07 (6 h, 54 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
55/57/190e8a5b1db15d58f5ba93a508da
Default Alt Text
LikeMatch.php (587 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment