public static function schoolYear() {
		static::loadData();
		foreach(static::$arrDBCalendar as $sy) {
			//return graduation year of current school year if available
			if($sy['start'] < time() && $sy['end'] > time()) return date('Y',$sy['end']);
			//else - if a school year is found which begins later than now but already in the current calendar year, return the end year
			//-> summer holidays := following school year
			elseif($sy['start'] > time() && date('Y',$sy['start']) == date('Y')) return date('Y',$sy['end']);
		}
		return false;
	}
public static function schoolYear() {
		static::loadData();
		foreach(static::$arrDBCalendar as $sy) {
			//return graduation year of current school year if available
			if($sy['start'] < time() && $sy['end'] > time()) return date('Y',$sy['end']);
			//else - if a school year is found which begins later than now but already in the current calendar year, return the end year
			//-> summer holidays := following school year
			elseif($sy['start'] > time() && date('Y',$sy['start']) == date('Y')) return date('Y',$sy['end']);
		}
		return false;
	}
public static function schoolYear ( ) { static :: loadData ( ) ; foreach ( static :: $ arrDBCalendar as $ sy ) { //return graduation year of current school year if available if ( $ sy [ 'start' ] < time ( ) && $ sy [ 'end' ] > time ( ) ) return date ( 'Y' , $ sy [ 'end' ] ) ; //else - if a school year is found which begins later than now but already in the current calendar year, return the end year //-> summer holidays := following school year elseif ( $ sy [ 'start' ] > time ( ) && date ( 'Y' , $ sy [ 'start' ] ) == date ( 'Y' ) ) return date ( 'Y' , $ sy [ 'end' ] ) ; } return false ; }
Get graduation year of current school year
@return int
Get graduation year of current school year