ICanBoogie
  • Documentation
  • API Reference
  • Facets v0.3.1
Namespaces
  • ICanBoogie
    • Facets
      • RecordCollection
Classes
  • BooleanCriterion
  • Criterion
  • CriterionList
  • CriterionNotDefined
  • CriterionValue
  • Fetcher
  • IntervalCriterionValue
  • QueryString
  • QueryStringWord
  • RecordCollection
  • SetCriterionValue
Interfaces
  • CriterionInterface
  • FetcherInterface
Traits
  • CriterionTrait
  • FetcherTrait
  • HumanizePairsTrait
  • ParseQueryStringTrait

Class QueryString

Representation of a query string.

ICanBoogie\Facets\QueryString implements IteratorAggregate uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\Facets
Located at QueryString.php

Methods summary

public __construct( $query_string )
public __toString( void )
public getIterator( void )

Implementation of

IteratorAggregate::getIterator()
public search( string $phrase ) : ICanBoogie\Facets\QueryStringWord[]|null

Search the phrase in the query string.

Search the phrase in the query string.

Parameters

$phrase

Returns

ICanBoogie\Facets\QueryStringWord[]|null
public before( ICanBoogie\Facets\QueryStringWord $word ) : ICanBoogie\Facets\QueryStringWord|null

Returns the word before the specified query string word, if any.

Returns the word before the specified query string word, if any.

Parameters

$word

Returns

ICanBoogie\Facets\QueryStringWord|null
public after( ICanBoogie\Facets\QueryStringWord $word ) : ICanBoogie\Facets\QueryStringWord|null

Returns the word after the specified query string word, if any.

Returns the word after the specified query string word, if any.

Parameters

$word

Returns

ICanBoogie\Facets\QueryStringWord|null
protected get_matched( void ) : ICanBoogie\Facets\QueryStringWord[]

Returns the query string words that have a match.

Returns the query string words that have a match.

Returns

ICanBoogie\Facets\QueryStringWord[]
protected get_not_matched( void ) : ICanBoogie\Facets\QueryStringWord[]

Returns the query string words that have no match.

Returns the query string words that have no match.

Returns

ICanBoogie\Facets\QueryStringWord[]
protected get_matches( void ) : ICanBoogie\Facets\QueryStringWord[]

Returns the query string words that have a match.

Returns the query string words that have a match.

Returns

ICanBoogie\Facets\QueryStringWord[]

Properties summary

protected $query_string

		
protected $words

		

Magic properties

public read-only $matched : ICanBoogie\Facets\QueryStringWord[]

Query string words for which a match was found.

public read-only $not_matched : ICanBoogie\Facets\QueryStringWord[]

Query string words for which no match was found.

Facets v0.3.1 – Check on GitHub – API documentation generated by ApiGen