classes/Events/API/Event.php
public function getMoveParams($day_delta, $minute_delta, $all_day = false) {
		// calculate new dates
		$start_timestamp = $this->getStartTimestamp();
		$end_timestamp = $this->getEndTimestamp();

		$time_diff = $end_timestamp - $start_timestamp;
		$new_start_timestamp = $start_timestamp + ($day_delta * Util::SECONDS_IN_A_DAY) + ($minute_delta * Util::SECONDS_IN_A_MINUTE);
		$new_end_timestamp = $new_start_timestamp + $time_diff;

		$params = array(
			'entity' => $this,
			'new_start_timestamp' => $new_start_timestamp,
			'new_end_timestamp' => $new_end_timestamp,
			'new_start_date' => date('Y-m-d', $new_start_timestamp),
			'new_end_date' => date('Y-m-d', $new_end_timestamp),
			'new_start_time' => date('g:ia', $new_start_timestamp),
			'new_end_time' => date('g:ia', $new_end_timestamp),
			'all_day' => $all_day
		);

		return $params;
	}
public function getMoveParams($day_delta, $minute_delta, $all_day = false) {
		// calculate new dates
		$start_timestamp = $this->getStartTimestamp();
		$end_timestamp = $this->getEndTimestamp();

		$time_diff = $end_timestamp - $start_timestamp;
		$new_start_timestamp = $start_timestamp + ($day_delta * Util::SECONDS_IN_A_DAY) + ($minute_delta * Util::SECONDS_IN_A_MINUTE);
		$new_end_timestamp = $new_start_timestamp + $time_diff;

		$params = array(
			'entity' => $this,
			'new_start_timestamp' => $new_start_timestamp,
			'new_end_timestamp' => $new_end_timestamp,
			'new_start_date' => date('Y-m-d', $new_start_timestamp),
			'new_end_date' => date('Y-m-d', $new_end_timestamp),
			'new_start_time' => date('g:ia', $new_start_timestamp),
			'new_end_time' => date('g:ia', $new_end_timestamp),
			'all_day' => $all_day
		);

		return $params;
	}
public function getMoveParams ( $ day_delta , $ minute_delta , $ all_day = false ) { // calculate new dates $ start_timestamp = $ this -> getStartTimestamp ( ) ; $ end_timestamp = $ this -> getEndTimestamp ( ) ; $ time_diff = $ end_timestamp - $ start_timestamp ; $ new_start_timestamp = $ start_timestamp + ( $ day_delta * Util :: SECONDS_IN_A_DAY ) + ( $ minute_delta * Util :: SECONDS_IN_A_MINUTE ) ; $ new_end_timestamp = $ new_start_timestamp + $ time_diff ; $ params = array ( 'entity' => $ this , 'new_start_timestamp' => $ new_start_timestamp , 'new_end_timestamp' => $ new_end_timestamp , 'new_start_date' => date ( 'Y-m-d' , $ new_start_timestamp ) , 'new_end_date' => date ( 'Y-m-d' , $ new_end_timestamp ) , 'new_start_time' => date ( 'g:ia' , $ new_start_timestamp ) , 'new_end_time' => date ( 'g:ia' , $ new_end_timestamp ) , 'all_day' => $ all_day ) ; return $ params ; }
Calculates parameters for a move action

@param int  $day_delta    Positive or negative number of days from the original event day
@param int  $minute_delta Position or negative number of minutes from the origin event time
@param bool $all_day      All day event?
@return array
Calculates parameters for a move action