
Public Member Functions | ||||
| __construct ($start=null, $end=null) | ||||
| __clone () | ||||
| setStart ($start) | ||||
| ||||
| setEnd ($end) | ||||
| ||||
| lazySet ($start=null, $end=null) | ||||
| ||||
| dropStart () | ||||
| ||||
| dropEnd () | ||||
| ||||
| isEmpty () | ||||
| getStart () | ||||
| ||||
| getEnd () | ||||
| ||||
| toDateString ($internalDelimiter= '-', $dateDelimiter= '- ') | ||||
| toString ($delimiter= '- ') | ||||
| overlaps (DateRange $range) | ||||
| contains ($date) | ||||
| split () | ||||
| isNeighbour (DateRange $range) | ||||
| isOpen () | ||||
| enlarge (DateRange $range) | ||||
| enlarges $this by given $range, if last one is wider | ||||
| clip (DateRange $range) | ||||
| intersection of $this and given $range | ||||
| lightCopyOnClip (DateRange $range) | ||||
| result is read-only, no error checking | ||||
| getStartStamp () | ||||
| getEndStamp () | ||||
| isOneDay () | ||||
Static Public Member Functions | ||||
| static | create ($start=null, $end=null) | |||
| ||||
| static | merge ($array) | |||
| static | compare (DateRange $left, DateRange $right) | |||
Protected Member Functions | ||||
| checkType ($value) | ||||
| getObjectName () | ||||
Private Attributes | ||||
| $start = null | ||||
| $end = null | ||||
| $dayStartStamp = null | ||||
| $dayEndStamp = null | ||||
Definition at line 21 of file DateRange.class.php.
| DateRange::__construct | ( | $ | start = null, |
|
| $ | end = null | |||
| ) |
Definition at line 37 of file DateRange.class.php.
References $end, $start, setEnd(), and setStart().

| static DateRange::create | ( | $ | start = null, |
|
| $ | end = null | |||
| ) | [static] |
Definition at line 32 of file DateRange.class.php.
Referenced by CalendarMonthWeekly::__construct(), lightCopyOnClip(), and DateRangeList::makeRange().
| DateRange::__clone | ( | ) |
Definition at line 46 of file DateRange.class.php.
| DateRange::setStart | ( | $ | start | ) |
| WrongArgumentException |
Definition at line 59 of file DateRange.class.php.
References $start, and checkType().
Referenced by __construct(), and lazySet().

| DateRange::setEnd | ( | $ | end | ) |
| WrongArgumentException |
Definition at line 78 of file DateRange.class.php.
References $end, and checkType().
Referenced by __construct(), and lazySet().

| DateRange::lazySet | ( | $ | start = null, |
|
| $ | end = null | |||
| ) |
Definition at line 95 of file DateRange.class.php.
References $end, $start, checkType(), setEnd(), and setStart().

| DateRange::dropStart | ( | ) |
| DateRange::dropEnd | ( | ) |
| DateRange::isEmpty | ( | ) |
| DateRange::getStart | ( | ) |
| DateRange::getEnd | ( | ) |
| DateRange::toDateString | ( | $ | internalDelimiter = '-', |
|
| $ | dateDelimiter = ' - ' | |||
| ) |
Definition at line 159 of file DateRange.class.php.
| DateRange::toString | ( | $ | delimiter = ' - ' |
) |
Definition at line 177 of file DateRange.class.php.
| DateRange::overlaps | ( | DateRange $ | range | ) |
Definition at line 192 of file DateRange.class.php.
References getEndStamp(), getStartStamp(), and isEmpty().
Referenced by clip(), and isNeighbour().

| DateRange::contains | ( | $ | date | ) |
Implements SingleRange.
Definition at line 246 of file DateRange.class.php.
References $end, $start, checkType(), getEndStamp(), and getStartStamp().

| DateRange::split | ( | ) |
Definition at line 265 of file DateRange.class.php.
References $start, Assert::isFalse(), isOpen(), and Date::modify().

| static DateRange::merge | ( | $ | array | ) | [static] |
Definition at line 289 of file DateRange.class.php.
References $out, and isNeighbour().

| DateRange::isNeighbour | ( | DateRange $ | range | ) |
Definition at line 309 of file DateRange.class.php.
References isOpen(), Assert::isTrue(), and overlaps().
Referenced by merge().

| DateRange::isOpen | ( | ) |
Definition at line 328 of file DateRange.class.php.
Referenced by isNeighbour(), isOneDay(), and split().
| DateRange::enlarge | ( | DateRange $ | range | ) |
enlarges $this by given $range, if last one is wider
Definition at line 338 of file DateRange.class.php.
| DateRange::clip | ( | DateRange $ | range | ) |
intersection of $this and given $range
Definition at line 364 of file DateRange.class.php.
References Assert::isTrue(), and overlaps().

| DateRange::lightCopyOnClip | ( | DateRange $ | range | ) |
result is read-only, no error checking
Definition at line 396 of file DateRange.class.php.
References create().

| DateRange::getStartStamp | ( | ) |
Definition at line 427 of file DateRange.class.php.
Referenced by PrimitiveDateRange::checkRanges(), compare(), contains(), and overlaps().
| DateRange::getEndStamp | ( | ) |
Definition at line 440 of file DateRange.class.php.
Referenced by PrimitiveDateRange::checkRanges(), compare(), contains(), and overlaps().
Definition at line 453 of file DateRange.class.php.
References getEndStamp(), getStartStamp(), and isEmpty().

| DateRange::isOneDay | ( | ) |
Definition at line 495 of file DateRange.class.php.
References isOpen().

| DateRange::checkType | ( | $ | value | ) | [protected] |
Definition at line 501 of file DateRange.class.php.
References getObjectName(), ClassUtils::isInstanceOf(), and Assert::isTrue().
Referenced by contains(), lazySet(), setEnd(), and setStart().

| DateRange::getObjectName | ( | ) | [protected] |
Reimplemented in TimestampRange.
Definition at line 508 of file DateRange.class.php.
Referenced by checkType().
DateRange::$start = null [private] |
Definition at line 23 of file DateRange.class.php.
Referenced by __construct(), contains(), create(), lazySet(), setStart(), and split().
DateRange::$end = null [private] |
Definition at line 24 of file DateRange.class.php.
Referenced by __construct(), contains(), create(), lazySet(), and setEnd().
DateRange::$dayStartStamp = null [private] |
Definition at line 26 of file DateRange.class.php.
DateRange::$dayEndStamp = null [private] |
Definition at line 27 of file DateRange.class.php.
1.5.4