GNU GPL v2+
- Since
- 3.2
- Author
- mwjames
◆ if()
SMW\Schema\Rule::if |
( |
string |
$key, |
|
|
|
$default = null |
|
) |
| |
- Since
- 3.2
- Parameters
-
- Returns
- mixed
◆ incrFilterScore()
SMW\Schema\Rule::incrFilterScore |
( |
| ) |
|
When using a chained filter, the score allows to find the best filter rule by comparing the score on the matched filter condition.
For example, if an entity is annotated with [[Category:Lorem ipsum]]
both rules would apply but when the entity is part of the SMW_NS_PROPERTY
namespace, the second filter rule would get a higher score as its matches both the category
and namespace
filter.
"if": {
"category": "Lorem ipsum"
}
vs.
"if": {
"namespace": "SMW_NS_PROPERTY",
"category": "Lorem ipsum"
}
- Since
- 3.2
◆ then()
SMW\Schema\Rule::then |
( |
string |
$key, |
|
|
|
$default = null |
|
) |
| |
- Since
- 3.2
- Parameters
-
- Returns
- mixed
The documentation for this class was generated from the following file: