Class craft\elements\db\ElementRelationParamParser
- Inheritance
- craft\elements\db\ElementRelationParamParser
- Available since version
- 3.0
- Source Code
- https://github.com/craftcms/cms/blob/master/src/elements/db/ElementRelationParamParser.php
Parses a relatedTo param on an ElementQuery.
Method | Description | Defined By |
---|---|---|
parse() |
Parses a relatedTo element query param and returns the condition that should
be applied back on the element query, or false if there's an issue. |
craft\elements\db\ElementRelationParamParser |
Constant | Value | Description | Defined By |
---|---|---|---|
DIR_FORWARD |
0 | craft\elements\db\ElementRelationParamParser | |
DIR_REVERSE |
1 | craft\elements\db\ElementRelationParamParser |
Method Details
parse()
public method
#
Parses a relatedTo
element query param and returns the condition that should
be applied back on the element query, or false
if there's an issue.
public array, false parse ( $relatedToParam )
$relatedToParam |
mixed |