Firesphere\SolrSubsites\States\SubsiteState
Class \Firesphere\SolrSubsites\States\SubsiteState
Apply states for Subsites
Synopsis
class SubsiteState
extends SiteState
implements
SiteStateInterface
{
- // methods
- public bool stateIsApplicable()
- public mixed setDefaultState()
- public string|null currentState()
- public void activateState()
- public void updateQuery()
- protected void addSubsiteFilter()
Hierarchy
Extends
- Firesphere\SolrSearch\States\SiteState
Implements
- Firesphere\SolrSearch\Interfaces\SiteStateInterface
Methods
protected
- addSubsiteFilter() — Add the Subsite specific filter if the class has the extension applied
public
- activateState() — Activate a given state. This should only be done if the state is applicable In the case of Subsites, we just want to disable the filter
- currentState() — Return the current state of the site The current state does not need to be reset in any way for pages
- setDefaultState() — Reset the SiteState to it's default state In case of subsites, we don't care about it, as it's handled at query time
- stateIsApplicable() — Is this state applicable to this extension In case of subsites, only apply if there actually are subsites
- updateQuery() — Method to alter the query. Can be no-op.