return NULL;
}
- /**
- * Possibly unused function.
- *
- * @todo - could not find any instances where this is called
- *
- * @param bool $relative
- * @param string $from
- * @param string $to
- *
- * @return string|NULL
- */
- public function dateDisplay($relative, $from, $to) {
- list($from, $to) = $this->getFromTo($relative, $from, $to);
-
- if ($from) {
- $clauses[] = CRM_Utils_Date::customFormat($from, NULL, array('m', 'M'));
- }
- else {
- $clauses[] = 'Past';
- }
-
- if ($to) {
- $clauses[] = CRM_Utils_Date::customFormat($to, NULL, array('m', 'M'));
- }
- else {
- $clauses[] = 'Today';
- }
-
- if (!empty($clauses)) {
- return implode(' - ', $clauses);
- }
-
- return NULL;
- }
-
/**
* Get values for from and to for date ranges.
*