예제 #1
0
 /**
  * A method to set the span according to specific dates.
  *
  * @param Date $oStartDate The start date of the span.
  * @param Date $oEndDate The end date of the span.
  */
 function setSpanDays($oStartDate, $oEndDate)
 {
     $this->oStartDate = new Date();
     $this->oStartDate->copy($oStartDate);
     $this->_setStartDate($this->oStartDate);
     $this->oEndDate = new Date();
     $this->oEndDate->copy($oEndDate);
     $this->_setEndDate($this->oEndDate);
 }