classes/Events/API/Event.php
public function getResizeParams($day_delta = 0, $minute_delta = 0) {
		// calculate new dates
		$end_timestamp = $this->getEndTimestamp();

		$new_end_timestamp = $end_timestamp + ($day_delta * Util::SECONDS_IN_A_DAY) + ($minute_delta * Util::SECONDS_IN_A_MINUTE);

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

		return $params;
	}
public function getResizeParams($day_delta = 0, $minute_delta = 0) {
		// calculate new dates
		$end_timestamp = $this->getEndTimestamp();

		$new_end_timestamp = $end_timestamp + ($day_delta * Util::SECONDS_IN_A_DAY) + ($minute_delta * Util::SECONDS_IN_A_MINUTE);

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

		return $params;
	}
public function getResizeParams ( $ day_delta = 0 , $ minute_delta = 0 ) { // calculate new dates $ end_timestamp = $ this -> getEndTimestamp ( ) ; $ new_end_timestamp = $ end_timestamp + ( $ day_delta * Util :: SECONDS_IN_A_DAY ) + ( $ minute_delta * Util :: SECONDS_IN_A_MINUTE ) ; $ params = array ( 'entity' => $ this , 'new_end_timestamp' => $ new_end_timestamp , 'new_end_date' => date ( 'Y-m-d' , $ new_end_timestamp ) , 'new_end_time' => date ( 'g:ia' , $ new_end_timestamp ) ) ; return $ params ; }
Calculates parameters for the resize action

@param int $day_delta    Positive or negative number of days from the original event end
@param int $minute_delta Positive or negative number of minutes from the original event end
@return array
Calculates parameters for the resize action