想100个cookies / xedule-to-array
此包已被废弃且不再维护。未建议替代包。
从roosters.xedule.nl网站获取任何信息
v1.2.1
2016-01-15 14:13 UTC
Requires
- php: >=5.5.0
- lib-curl: *
- nesbot/carbon: ^1.21
- sunra/php-simple-html-dom-parser: ^1.5
This package is not auto-updated.
Last update: 2020-01-24 16:04:41 UTC
README
此项目已被弃用,因为Xedule决定关闭其API
Xedule-To-Array
将roosters.xedule.nl上的任何时间表转换为数组
注意:以下参数名称必须按给定顺序输入
方法
构造函数
构造函数可以有一个非必需的参数,即基本URL。标准的基本URL为 https://roosters.xedule.nl
getAllOrgs
获取所有组织
getOrgID
需要参数$orgName,从给定名称的组织中获取ID
getAllLocations
需要参数$orgId,获取给定ID的组织所有位置
getLocationID
需要参数$locationName, $orgId,从给定名称的位置中获取ID
getAllGroups
需要参数$locationID,获取给定ID的位置所有组
getGroupID
需要参数$groupName, $locationID,从给定名称的组中获取ID
getGroupSchedule
需要参数$groupId, $week, $year,以以下格式获取任何时间表
array( array( 'DESCRIPTION' => 'some class' 'START' => Carbon Object, 'END' => Carbon Object ), array( 'DESCRIPTION' => 'some class' 'START' => Carbon Object, 'END' => Carbon Object ) )