classes/Events/API/Calendar.php
public static function getCalendars($container, $count = false) {
		if (!$container instanceof ElggEntity) {
			return false;
		}

		$options = array(
			'type' => 'object',
			'subtype' => 'calendar',
			'container_guid' => $container->guid,
			'limit' => false
		);

		if ($count) {
			$options['count'] = true;
			return elgg_get_entities($options);
		}

		return new ElggBatch('elgg_get_entities', $options);
	}
public static function getCalendars($container, $count = false) {
		if (!$container instanceof ElggEntity) {
			return false;
		}

		$options = array(
			'type' => 'object',
			'subtype' => 'calendar',
			'container_guid' => $container->guid,
			'limit' => false
		);

		if ($count) {
			$options['count'] = true;
			return elgg_get_entities($options);
		}

		return new ElggBatch('elgg_get_entities', $options);
	}
public static function getCalendars ( $ container , $ count = false ) { if ( ! $ container instanceof ElggEntity ) { return false ; } $ options = array ( 'type' => 'object' , 'subtype' => 'calendar' , 'container_guid' => $ container -> guid , 'limit' => false ) ; if ( $ count ) { $ options [ 'count' ] = true ; return elgg_get_entities ( $ options ) ; } return new ElggBatch ( 'elgg_get_entities' , $ options ) ; }
Retrieves all calendars for a container

@param type $container
@param type $count
Retrieves all calendars for a container