Show:

Db_Range Class

Module: Db

This class lets you use make range queries, in a structured way.

Constructor

Db_Range

(
  • $min
  • $includeMin
  • $includeMax
  • $max
)

Parameters:

  • $min Mixed

    Minimal value of the range. Pass null to skip the min.

  • $includeMin Boolean

    Whether the range extends to include the minimum value

  • $includeMax Boolean

    Whether the range extends to include the maximum value

  • $max Mixed

    Maximal value of the range. Pass null to skip the max. If boolean true is passed here, then $max is set to $min with the last character incremented to the next ASCII value.

Item Index

Properties

$includeMax

Boolean

Wheather maximum value shall be included to the range

$includeMin

Boolean

Wheather minimum value shall be included to the range

$max

Mixed

Maximal value of the range

$min

Mixed

Minimal value of the range