classes/Events/API/Event.php
public function move($params) {
		//update the event
		$this->all_day = elgg_extract('all_day', $params, false);
		$this->start_timestamp = $params['new_start_timestamp'];
		$this->end_timestamp = $params['new_end_timestamp'];
		$this->start_date = $params['new_start_date'];
		$this->end_date = $params['new_end_date'];
		$this->start_time = $params['new_start_time'];
		$this->end_time = $params['new_end_time'];
		$this->end_delta = $params['new_end_timestamp'] - $params['new_start_timestamp']; // how long this is in seconds
		
		$this->repeat_end_timestamp = $this->calculateRepeatEndTimestamp();
		
		// rebuild reminders for the next 2 days
		$time = time();
		$this->removeReminders(null, null, true); // remove all reminders
		$this->buildReminders($time, $time + (Util::SECONDS_IN_A_DAY * 2));

		return true;
	}
public function move($params) {
		//update the event
		$this->all_day = elgg_extract('all_day', $params, false);
		$this->start_timestamp = $params['new_start_timestamp'];
		$this->end_timestamp = $params['new_end_timestamp'];
		$this->start_date = $params['new_start_date'];
		$this->end_date = $params['new_end_date'];
		$this->start_time = $params['new_start_time'];
		$this->end_time = $params['new_end_time'];
		$this->end_delta = $params['new_end_timestamp'] - $params['new_start_timestamp']; // how long this is in seconds
		
		$this->repeat_end_timestamp = $this->calculateRepeatEndTimestamp();
		
		// rebuild reminders for the next 2 days
		$time = time();
		$this->removeReminders(null, null, true); // remove all reminders
		$this->buildReminders($time, $time + (Util::SECONDS_IN_A_DAY * 2));

		return true;
	}
public function move ( $ params ) { //update the event $ this -> all_day = elgg_extract ( 'all_day' , $ params , false ) ; $ this -> start_timestamp = $ params [ 'new_start_timestamp' ] ; $ this -> end_timestamp = $ params [ 'new_end_timestamp' ] ; $ this -> start_date = $ params [ 'new_start_date' ] ; $ this -> end_date = $ params [ 'new_end_date' ] ; $ this -> start_time = $ params [ 'new_start_time' ] ; $ this -> end_time = $ params [ 'new_end_time' ] ; $ this -> end_delta = $ params [ 'new_end_timestamp' ] - $ params [ 'new_start_timestamp' ] ; // how long this is in seconds $ this -> repeat_end_timestamp = $ this -> calculateRepeatEndTimestamp ( ) ; // rebuild reminders for the next 2 days $ time = time ( ) ; $ this -> removeReminders ( null , null , true ) ; // remove all reminders $ this -> buildReminders ( $ time , $ time + ( Util :: SECONDS_IN_A_DAY * 2 ) ) ; return true ; }
Perform a move action with calculated parameters

@param array $params New event parameters
@return boolean
Perform a move action with calculated parameters