Class KeywordStringParser

Description

KeywordStringParser matches keywords to common times.

Valid keywords:

Now

  • now
Today
  • today
  • current
Tomorrow
  • tomorrow
Yesterday
  • yesterday

Located in /harmoni/core/Primitives/Chronology/StringParser/KeywordStringParser.class.php (line 44)

SObject
   |
   --StringParser
      |
      --KeywordStringParser
Method Summary
boolean canHandle ()
array nowArray ()
void parse ()
array todayArray ()
array tomorrowArray ()
array yesterdayArray ()
Variables
Methods
canHandle (line 59)

Answer True if this parser can handle the format of the string passed.

  • since: 5/24/05
  • access: public
boolean canHandle ()

Redefinition of:
StringParser::canHandle()
Answer True if this parser can handle the format of the string passed.
nowArray (line 115)

Answer the array of keywords that refer to now.

  • since: 5/24/05
  • access: protected
array nowArray ()
parse (line 78)

Parse the input string and set our elements based on the contents of the input string. Elements not found in the string will be null.

  • since: 5/24/05
  • access: private
void parse ()

Redefinition of:
StringParser::parse()
Parse the input string and set our elements based on the contents of the input string. Elements not found in the string will be null.
todayArray (line 128)

Answer the array of keywords that refer to tomorrow.

  • since: 5/24/05
  • access: protected
array todayArray ()
tomorrowArray (line 142)

Answer the array of keywords that refer to tomorrow.

  • since: 5/24/05
  • access: protected
array tomorrowArray ()
yesterdayArray (line 155)

Answer the array of keywords that refer to yesterday.

  • since: 5/24/05
  • access: protected
array yesterdayArray ()

Inherited Methods

Inherited From StringParser

StringParser::StringParser()
StringParser::canHandle()
StringParser::day()
StringParser::getParserFor()
StringParser::hour()
StringParser::minute()
StringParser::month()
StringParser::offsetHour()
StringParser::offsetMinute()
StringParser::offsetSecond()
StringParser::parse()
StringParser::second()
StringParser::setDay()
StringParser::setHour()
StringParser::setMinute()
StringParser::setMonth()
StringParser::setOffsetHour()
StringParser::setOffsetMinute()
StringParser::setOffsetSecond()
StringParser::setSecond()
StringParser::setYear()
StringParser::year()

Inherited From SObject

SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()

Documentation generated on Wed, 19 Sep 2007 10:24:46 -0400 by phpDocumentor 1.3.0RC3