Page MenuHomeWickedGov Phorge

LikeMatch.php
No OneTemporary

Size
587 B
Referenced Files
None
Subscribers
None

LikeMatch.php

<?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

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)

Event Timeline