Exemple #1
0
 /**
  * @static
  * @param SavedReport $report
  * @return string
  */
 public static function Serialize(SavedReport $report)
 {
     $template = 'usage=%s;selection=%s;groupby=%s;range=%s;range_start=%s;range_end=%s;resourceid=%s;scheduleid=%s;userid=%s;groupid=%s;accessoryid=%s;participantid=%s';
     return sprintf($template, $report->Usage(), $report->Selection(), $report->GroupBy(), $report->Range(), $report->RangeStart()->ToDatabase(), $report->RangeEnd()->ToDatabase(), $report->ResourceId(), $report->ScheduleId(), $report->UserId(), $report->GroupId(), $report->AccessoryId(), $report->ParticipantId());
 }