src/Jaspersoft/Service/JobService.php
public function createOrUpdateCalendar(BaseCalendar $calendar, $calendarName, $replace = false, $updateTriggers = false)
    {
        $url = $this->service_url . '/jobs/calendars/' . rawurlencode($calendarName) . '?' .
            Util::query_suffix(array("replace" => $replace, "updateTriggers" => $updateTriggers));
        $body = $calendar->toJSON();
        $this->service->prepAndSend($url, array(200), 'PUT', $body, false);
    }
public function createOrUpdateCalendar(BaseCalendar $calendar, $calendarName, $replace = false, $updateTriggers = false)
    {
        $url = $this->service_url . '/jobs/calendars/' . rawurlencode($calendarName) . '?' .
            Util::query_suffix(array("replace" => $replace, "updateTriggers" => $updateTriggers));
        $body = $calendar->toJSON();
        $this->service->prepAndSend($url, array(200), 'PUT', $body, false);
    }
public function createOrUpdateCalendar ( BaseCalendar $ calendar , $ calendarName , $ replace = false , $ updateTriggers = false ) { $ url = $ this -> service_url . '/jobs/calendars/' . rawurlencode ( $ calendarName ) . '?' . Util :: query_suffix ( array ( "replace" => $ replace , "updateTriggers" => $ updateTriggers ) ) ; $ body = $ calendar -> toJSON ( ) ; $ this -> service -> prepAndSend ( $ url , array ( 200 ) , 'PUT' , $ body , false ) ; }
Create or Update a calendar

@param BaseCalendar $calendar A DTO representing the new or altered calendar
@param string $calendarName Name of the calendar to create or update
@param bool $replace Should an existing calendar of the same name be overwritten?
@param bool $updateTriggers Should an existing jobs using this calendar adhere to the changes made?
Create or Update a calendar