- /**
- * Return all days by period
- *
- * @return array
- */
- function getAllDays() {
- $ret_array = array();
- if ($this->startDate->before($this->endDate)) {
- $d = $this->getBegin();
- while ($d->before($this->getEnd())) {
- array_push($ret_array, $d);
- $d = $d->nextDate();
- }
- array_push($ret_array, $d);
- } else {
- array_push($ret_array, $this->startDate);
- }
- return $ret_array;
- }
-