code/pages/WikiPage.php
public function updatelock($data) {
		if ($this->data()->ID && $this->data()->canEdit()) {
			$lock = $this->getEditingLocks($this->data(), true);
			$response = new stdClass();
			$response->status = 1;
			if ($lock != null && $lock['user'] != Member::currentUser()->Email) {
				// someone else has stolen it !
				$response->status = 0;
				$response->message = _t('WikiPage.LOCK_STOLEN', "Another user (" . $lock['user'] . ") has forcefully taken this lock");
			}
			return Convert::raw2json($response);
		}
	}
public function updatelock($data) {
		if ($this->data()->ID && $this->data()->canEdit()) {
			$lock = $this->getEditingLocks($this->data(), true);
			$response = new stdClass();
			$response->status = 1;
			if ($lock != null && $lock['user'] != Member::currentUser()->Email) {
				// someone else has stolen it !
				$response->status = 0;
				$response->message = _t('WikiPage.LOCK_STOLEN', "Another user (" . $lock['user'] . ") has forcefully taken this lock");
			}
			return Convert::raw2json($response);
		}
	}
public function updatelock ( $ data ) { if ( $ this -> data ( ) -> ID && $ this -> data ( ) -> canEdit ( ) ) { $ lock = $ this -> getEditingLocks ( $ this -> data ( ) , true ) ; $ response = new stdClass ( ) ; $ response -> status = 1 ; if ( $ lock != null && $ lock [ 'user' ] != Member :: currentUser ( ) -> Email ) { // someone else has stolen it ! $ response -> status = 0 ; $ response -> message = _t ( 'WikiPage.LOCK_STOLEN' , "Another user (" . $ lock [ 'user' ] . ") has forcefully taken this lock" ) ; } return Convert :: raw2json ( $ response ) ; } }
Updates the lock timeout for the given object

@param <type> $data
Updates the lock timeout for the given object