Abstract Class yii\debug\components\search\matchers\Base
| Inheritance | yii\ |
|---|---|
| Implements | yii\ |
| Subclasses | yii\ |
| Available since extension's version | 2.0 |
| Source Code | https://github.com/yiisoft/yii2-debug/blob/master/src/components/search/matchers/Base.php |
Base class for matchers that are used in a filter.
Protected Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $baseValue | mixed | Base value to check | yii\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| hasValue() | Checks if base value is set | yii\ |
| match() | Checks if the value passed matches base value. | yii\ |
| setValue() | Sets base value to match against | yii\ |
Property Details
Method Details
Checks if base value is set
| public boolean hasValue ( ) | ||
| return | boolean |
If base value is set |
|---|---|---|
public function hasValue()
{
return !empty($this->baseValue) || ($this->baseValue === '0');
}
Defined in:
yii\
Checks if the value passed matches base value.
| public abstract boolean match ( mixed $value ) | ||
| $value | mixed |
Value to be matched |
| return | boolean |
If there is a match |
|---|---|---|
public function match($value);