booked/lib/Application/Schedule/ScheduleReservationList.php
/**
	 * @param Date $endingTime
	 * @return int index of $_layoutItems which has the corresponding $endingTime
	 */
@param Date $endingTime
@return int index of $_layoutItems which has the corresponding $endingTime
@param Date $endingTime @return int index of $_layoutItems which has the corresponding $endingTime
private function GetLayoutIndexEndingAt(Date $endingTime)
	{
		$timeKey = $endingTime->Timestamp();
		if (array_key_exists($timeKey, $this->_layoutIndexByEndTime))
		{
			return $this->_layoutIndexByEndTime[$timeKey];
		}
		return $this->FindClosestLayoutIndexBeforeEndingTime($endingTime);
	}
private function GetLayoutIndexEndingAt ( Date $ endingTime ) { $ timeKey = $ endingTime -> Timestamp ( ) ; if ( array_key_exists ( $ timeKey , $ this -> _layoutIndexByEndTime ) ) { return $ this -> _layoutIndexByEndTime [ $ timeKey ] ; } return $ this -> FindClosestLayoutIndexBeforeEndingTime ( $ endingTime ) ; }
@param Date $endingTime
 @return int index of $_layoutItems which has the corresponding $endingTime
@param Date $endingTime @return int index of $_layoutItems which has the corresponding $endingTime