want100cookies/xedule-to-array

This package is abandoned and no longer maintained. No replacement package was suggested.

Get any information from the roosters.xedule.nl website

v1.2.1 2016-01-15 14:13 UTC

This package is not auto-updated.

Last update: 2020-01-24 16:04:41 UTC


README

This project is deprecated because Xedule has decided to close down it's API

Xedule-To-Array

Convert any schedule from roosters.xedule.nl to an array

Note: the paremeters named below must be entered in the given order

Methods

constructor

The constructor can have a non required parameter with the base URL. Standard the base URL is https://roosters.xedule.nl

getAllOrgs

Get all the organisations

getOrgID

Needs parameter $orgName Get the ID from the organisation with the given name

getAllLocations

Needs parameter $orgId Get all the locations for the organisation with the given ID

getLocationID

Needs parameters $locationName, $orgId Get the ID from the location with the given name

getAllGroups

Needs parameter $locationID Get all groups from the location with the given ID

getGroupID

Needs parameters $groupName, $locationID Get the ID from the group with the given Name

getGroupSchedule

Needs parameters $groupId, $week, $year Get any schedule in the following format:

array(
	array(
		'DESCRIPTION' 	=> 'some class'
		'START' 		=> Carbon Object,
		'END' 			=> Carbon Object
	),
	array(
		'DESCRIPTION' 	=> 'some class'
		'START' 		=> Carbon Object,
		'END' 			=> Carbon Object
	)
)