Firesphere\SolrSearch\Helpers\FieldResolver
Class FieldResolver Some additional introspection tools that are used often by the fulltext search code
Synopsis
class FieldResolver
{
- // members
- protected static array $ancestry = ;
- protected static array $hierarchy = ;
- // methods
- public static bool isSubclassOf()
- public array resolveField()
- protected array getBuildSources()
- protected array getNext()
- protected array resolveRelation()
- private string getSourceName()
- public static array getHierarchy()
- protected static array getHierarchyClasses()
- private static array getSubClasses()
- private static array excludeDataObjectIDx()
- protected string|array|null getRelationData()
- protected array getFieldOptions()
- protected array findOrigin()
- protected string getType()
- protected array getOriginForType()
- private array getFoundOriginData()
- protected array resolveNext()
- // Inherited methods from GetSetSearchResolverTrait
- public BaseIndex getIndex()
- public $this setIndex()
Hierarchy
Tasks
Line | Task |
---|---|
117 | remove repetition |
203+ | clean this up to be more compatible with PHP features |
Members
protected
- $ancestry — array
- $hierarchy — array
- $index — Firesphere\SolrSearch\Indexes\BaseIndex
Methods
private
- excludeDataObjectIDx() — Objects to exclude from the index
- getFoundOriginData() — FoundOriginData is a helper to make sure the options are properly set.
- getSourceName() — This is used to clean the source name from suffix suffixes are needed to support multiple relations with the same name on different page types
- getSubClasses() — Get the subclasses for the given class Should be replaced with PHP native methods
protected
- findOrigin() — Find the origin of a field
- getBuildSources() — Get the sources to build in to a Solr field
- getFieldOptions() — Create field options for the given index field
- getHierarchyClasses() — Get the hierarchy for a class
- getNext() — Get the next lookup item from the buildSources
- getOriginForType() — Extraction to find the origin for a specific type field
- getRelationData() — Relational data
- getType() — Get the type of this field
- resolveNext() — Resolve the next item in line to be indexed
- resolveRelation() — Resolve relations if possible
public
- getHierarchy() — Get all the classes involved in a DataObject hierarchy - both super and optionally subclasses
- isSubclassOf() — Check if class is subclass of (a) the class in $instanceOf, or (b) any of the classes in the array $instanceOf
- resolveField() — Resolve a field ancestry
Inherited from Firesphere\SolrSearch\Traits\GetSetSearchResolverTrait
public
- getIndex() — Get the current index
- setIndex() — Set the current index