mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Update LikeCondition::setEscapingReplacements() phpdoc (#19830)
This commit is contained in:
@ -18,8 +18,8 @@ use yii\base\InvalidArgumentException;
|
|||||||
class LikeCondition extends SimpleCondition
|
class LikeCondition extends SimpleCondition
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var array|null|false map of chars to their replacements, false if characters should not be escaped
|
* @var array|null|false map of chars to their replacements, `false` if characters should not be escaped
|
||||||
* or either null or empty array if escaping is condition builder responsibility.
|
* or either `null` or empty array if escaping is condition builder responsibility.
|
||||||
* By default it's set to `null`.
|
* By default it's set to `null`.
|
||||||
*/
|
*/
|
||||||
protected $escapingReplacements;
|
protected $escapingReplacements;
|
||||||
@ -40,9 +40,10 @@ class LikeCondition extends SimpleCondition
|
|||||||
/**
|
/**
|
||||||
* This method allows to specify how to escape special characters in the value(s).
|
* This method allows to specify how to escape special characters in the value(s).
|
||||||
*
|
*
|
||||||
* @param array an array of mappings from the special characters to their escaped counterparts.
|
* @param array|null|false an array of mappings from the special characters to their escaped counterparts.
|
||||||
* You may use `false` or an empty array to indicate the values are already escaped and no escape
|
* You may use `false` to indicate the values are already escaped and no escape should be applied,
|
||||||
* should be applied. Note that when using an escape mapping (or the third operand is not provided),
|
* or either `null` or empty array if escaping is condition builder responsibility.
|
||||||
|
* Note that when using an escape mapping (or the third operand is not provided),
|
||||||
* the values will be automatically enclosed within a pair of percentage characters.
|
* the values will be automatically enclosed within a pair of percentage characters.
|
||||||
*/
|
*/
|
||||||
public function setEscapingReplacements($escapingReplacements)
|
public function setEscapingReplacements($escapingReplacements)
|
||||||
@ -51,7 +52,7 @@ class LikeCondition extends SimpleCondition
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array|false
|
* @return array|null|false
|
||||||
*/
|
*/
|
||||||
public function getEscapingReplacements()
|
public function getEscapingReplacements()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user