/** * Generates the label for a date * @depricated * @param array $params * @return string */ public static function getDatelabel($params) { switch ($params['period']) { case "day": return sprintf("%s, %d%s %s", owa_lib::get_month_label($params['month']), $params['day'], owa_lib::setDaySuffix($params['day']), $params['year']); break; case "month": return sprintf("%s %s", owa_lib::get_month_label($params['month']), $params['year']); break; case "year": return sprintf("%s", $params['year']); break; case "date_range": return sprintf("%s, %d%s %s - %s, %d%s %s", owa_lib::get_month_label($params['month']), $params['day'], owa_lib::setDaySuffix($params['day']), $params['year'], owa_lib::get_month_label($params['month2']), $params['day2'], owa_lib::setDaySuffix($params['day2']), $params['year2']); break; } return false; }