past) { $output['past'] = 1; } else { $output['past'] = 0; } $output['cfevents'] = $this->cfeventswithrepeat; // conflict free plot with repeat $output['cfplotwithrepeat'] = ''; // conflict plot with repeat if(count($this->overlapswithrepeat) == 0) { $output['withrepeat'] = -1; } else { $output['withrepeat'] = ''; } // conflict plot without repeat if(count($this->overlapswithoutrepeat) == 0) { $output['withoutrepeat'] = -1; } echo json_encode($output); ?>