ICanBoogie/Facets master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Facets
      • Criterion
      • CriterionValue
      • Fetcher
      • RecordCollection

Classes

  • IntervalCriterionValue
  • SetCriterionValue

Class SetCriterionValue

Representation of a set of values, suitable for the SQL IN() function.

A set of values is created by concatenating values with the pipe sign ("|") e.g. "1|2|3".

ICanBoogie\Facets\CriterionValue\SetCriterionValue implements ICanBoogie\ToArray, Countable
Namespace: ICanBoogie\Facets\CriterionValue
Located at CriterionValue/SetCriterionValue.php

Methods summary

public static ICanBoogie\Facets\CriterionValue\SetCriterionValue|null
# from( mixed $value )

Instantiate a ICanBoogie\Facets\CriterionValue\SetCriterionValue instance from a value.

Instantiate a ICanBoogie\Facets\CriterionValue\SetCriterionValue instance from a value.

Parameters

$value

Returns

ICanBoogie\Facets\CriterionValue\SetCriterionValue|null
public
# __construct( array $set )
public string
# __toString( )

Formats the set into a string.

Formats the set into a string.

Returns

string
public integer
# count( )

Returns the number of members in the set.

Returns the number of members in the set.

Returns

integer

Implementation of

Countable::count()
public array
# to_array( )

Returns the set as an array.

Returns the set as an array.

Returns

array

Constants summary

string SEPARATOR
# '|'

Properties summary

protected $set
#
ICanBoogie/Facets master API documentation generated by ApiGen