Documentation

Horde_Date_Parser_Locale_Base_Repeater
in package

Tags
author

Chuck Hagenbuch chuck@horde.org

author

Jan Schneider jan@horde.org

category

Horde

copyright

2008-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL

Table of Contents

$dayNameScanner  : mixed
$dayPortionScanner  : mixed
$monthNameScanner  : mixed
$timeRegex  : mixed
$unitScanner  : mixed
scan()  : mixed
scanForDayNames()  : mixed
scanForDayPortions()  : mixed
scanForMonthNames()  : mixed
scanForTimes()  : mixed
scanForUnits()  : mixed

Properties

$dayNameScanner

public mixed $dayNameScanner = array('/^m[ou]n(day)?$/i' => 'monday', '/^t(ue|eu|oo|u|)s(day)?$/i' => 'tuesday', '/^tue$/i' => 'tuesday', '/^we(dnes|nds|nns)day$/i' => 'wednesday', '/^wed$/i' => 'wednesday', '/^th(urs|ers)day$/i' => 'thursday', '/^thu$/i' => 'thursday', '/^fr[iy](day)?$/i' => 'friday', '/^sat(t?[ue]rday)?$/i' => 'saturday', '/^su[nm](day)?$/i' => 'sunday')

$dayPortionScanner

public mixed $dayPortionScanner = array('/^ams?$/i' => 'am', '/^pms?$/i' => 'pm', '/^mornings?$/i' => 'morning', '/^afternoons?$/i' => 'afternoon', '/^evenings?$/i' => 'evening', '/^(night|nite)s?$/i' => 'night')

$monthNameScanner

public mixed $monthNameScanner = array('/^jan\\.?(uary)?$/i' => 'january', '/^feb\\.?(ruary)?$/i' => 'february', '/^mar\\.?(ch)?$/i' => 'march', '/^apr\\.?(il)?$/i' => 'april', '/^may$/i' => 'may', '/^jun\\.?e?$/i' => 'june', '/^jul\\.?y?$/i' => 'july', '/^aug\\.?(ust)?$/i' => 'august', '/^sep\\.?(t\\.?|tember)?$/i' => 'september', '/^oct\\.?(ober)?$/i' => 'october', '/^nov\\.?(ember)?$/i' => 'november', '/^dec\\.?(ember)?$/i' => 'december')

$timeRegex

public mixed $timeRegex = '/^\\d{1,2}(:?\\d{2})?([\\.:]?\\d{2})?$/'

$unitScanner

public mixed $unitScanner = array('/^years?$/i' => 'year', '/^seasons?$/i' => 'season', '/^months?$/i' => 'month', '/^fortnights?$/i' => 'fortnight', '/^weeks?$/i' => 'week', '/^weekends?$/i' => 'weekend', '/^days?$/i' => 'day', '/^hours?$/i' => 'hour', '/^minutes?$/i' => 'minute', '/^seconds?$/i' => 'second')

Methods

scan()

public scan(mixed $tokens, mixed $options) : mixed
Parameters
$tokens : mixed
$options : mixed
Return values
mixed

scanForDayNames()

public scanForDayNames(mixed $token) : mixed
Parameters
$token : mixed
Return values
mixed

scanForDayPortions()

public scanForDayPortions(mixed $token) : mixed
Parameters
$token : mixed
Return values
mixed

scanForMonthNames()

public scanForMonthNames(mixed $token) : mixed
Parameters
$token : mixed
Return values
mixed

scanForTimes()

public scanForTimes(mixed $token, mixed $options) : mixed
Parameters
$token : mixed
$options : mixed
Return values
mixed

scanForUnits()

public scanForUnits(mixed $token) : mixed
Parameters
$token : mixed
Return values
mixed

Search results