update() public method

Set the new start and end date
public update ( integer $startDate, integer $endDate )
$startDate integer
$endDate integer
Example #1
0
 /**
  * @return bool
  */
 public function handle()
 {
     $this->form->cleanupFields();
     if (!$this->form->isSubmitted() || !$this->isValid()) {
         return false;
     }
     $fields = $this->form->getFields();
     $newStartDate = Model::getUTCTimestamp($fields['start_date']);
     $newEndDate = Model::getUTCTimestamp($fields['end_date']);
     $this->dateRange->update($newStartDate, $newEndDate);
     return true;
 }