Documentation

Horde_Date_Parser_Locale_Pt_Repeater extends 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('/^seg$/' => 'monday', '/^ter$/' => 'tuesday', '/^qua$/' => 'wednesday', '/^qui$/' => 'thursday', '/^sex$/' => 'friday', '/^sab$/' => 'saturday', '/^dom$/' => 'sunday', '/^segunda$/' => 'monday', '/^terca$/' => 'tuesday', '/^quarta$/' => 'wednesday', '/^quinta$/' => 'thursday', '/^sexta$/' => 'friday', '/^sab(ado)?$/' => 'saturday', '/^dom(ingo)?$/' => 'sunday')

$dayPortionScanner

public mixed $dayPortionScanner = array('/^(\\d*)\\s?ams?$/' => 'am', '/^(\\d*)\\s?pms?$/' => 'pm', '/^(?:de|na|a|durante\\s+a) (manh[aã]|madrugada)$/' => 'morning', '/^(?:de|na|a|durante\\s+a) tarde$/' => 'afternoon', '/^((fim\\s(d[ea]\\s)tarde)|anoitecer)$/' => 'evening', '/^noite$/' => 'night', '/^ams?$/' => 'am', '/^pms?$/' => 'pm', '/^mornings?$/' => 'morning', '/^afternoons?$/' => 'afternoon', '/^evenings?$/' => 'evening', '/^(night|nite)s?$/' => 'night')

$monthNameScanner

public mixed $monthNameScanner = array('/^jan(eiro)?$/' => 'january', '/^fev(ereiro)?$/' => 'february', '/^mar(co)?$/' => 'march', '/^abr(il)?$/' => 'april', '/^mai(o)?$/' => 'may', '/^jun(ho)?$/' => 'june', '/^jul(ho)?$/' => 'july', '/^ago(sto)?$/' => 'august', '/^set(embro)?$/' => 'september', '/^out(ubro)?$/' => 'october', '/^nov(embro)?$/' => 'november', '/^dez(embro)?$/' => 'december')

$timeRegex

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

$unitScanner

public mixed $unitScanner = array('/^anos?$/' => 'year', '/^(estacao|epoca)$/' => 'season', '/^mes$/' => 'month', '/^quinzena$/' => 'fortnight', '/^semanas?$/' => 'week', '/^(fds|fim( |( |\\-)de( |\\-))semana)?$/' => 'weekend', '/^dias?$/' => 'day', '/^horas?$/' => 'hour', '/^minutos?$/' => 'minute', '/^segundos?$/' => 'second', '/^years?$/' => 'year', '/^seasons?$/' => 'season', '/^months?$/' => 'month', '/^fortnights?$/' => 'fortnight', '/^weeks?$/' => 'week', '/^weekends?$/' => 'weekend', '/^days?$/' => 'day', '/^hours?$/' => 'hour', '/^minutes?$/' => 'minute', '/^seconds?$/' => '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