Sage Intacct SDK for PHP
AbstractDateTimeClass Class Reference
Inheritance diagram for AbstractDateTimeClass:
AbstractComparison ComparisonInterface ConditionInterface QueryInterface AbstractDate AbstractDateTime EqualToDate GreaterThanDate GreaterThanOrEqualToDate LessThanDate LessThanOrEqualToDate EqualToDateTime GreaterThanDateTime GreaterThanOrEqualToDateTime LessThanDateTime LessThanOrEqualToDateTime

Public Member Functions

 __construct (string $format)
 
 getValue ()
 
 setValue ($value)
 
 getFormat ()
 
 setFormat ($format)
 
- Public Member Functions inherited from AbstractComparison
 getField ()
 
 setField (string $field)
 
 isNegate ()
 
 setNegate (bool $negate)
 
- Public Member Functions inherited from QueryInterface
 __toString ()
 

Data Fields

const IA_DATE_FORMAT = 'm/d/Y'
 
const IA_DATE_TIME_FORMAT = 'm/d/Y H:i:s'
 

Protected Attributes

 $value
 
 $format
 
- Protected Attributes inherited from AbstractComparison
 $field
 
 $negate = false
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $format)

AbstractDateTimeClass constructor.

Parameters
string$format

Reimplemented in AbstractDateTime, and AbstractDate.

Member Function Documentation

◆ getFormat()

getFormat ( )
Returns
string

◆ getValue()

getValue ( )
Returns
\DateTime

Implements ComparisonInterface.

◆ setFormat()

setFormat (   $format)
Parameters
string$format

◆ setValue()

setValue (   $value)
Parameters
\DateTime$value

Implements ComparisonInterface.

Field Documentation

◆ $format

$format
protected

◆ $value

$value
protected

◆ IA_DATE_FORMAT

const IA_DATE_FORMAT = 'm/d/Y'

◆ IA_DATE_TIME_FORMAT

const IA_DATE_TIME_FORMAT = 'm/d/Y H:i:s'