1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-12 09:44:38 +02:00

Various fixes and improvements related to Selectors and the find operators

This commit is contained in:
Ryan Cramer
2020-07-06 14:39:49 -04:00
parent 6acb8028e3
commit 5b285ebc8c
9 changed files with 369 additions and 144 deletions

View File

@@ -1585,6 +1585,7 @@ class PageFinder extends Wire {
$q = $this->wire(new DatabaseQuerySelect());
}
/** @var PageFinderDatabaseQuerySelect $q */
$q->set('field', $field); // original field if required by the fieldtype
$q->set('group', $group); // original group of the field, if required by the fieldtype
$q->set('selector', $selector); // original selector if required by the fieldtype
@@ -3214,3 +3215,14 @@ class PageFinder extends Wire {
}
}
/**
* Typehinting class for DatabaseQuerySelect object passed to Fieldtype::getMatchQuery()
*
* @property Field $field Original field
* @property string $group Original group of the field
* @property Selector $selector Original Selector object
* @property Selectors $selectors Original Selectors object
* @property DatabaseQuerySelect $parentQuery Parent database query
*/
abstract class PageFinderDatabaseQuerySelect extends DatabaseQuerySelect { }