2016-12-11 13:06:36 +01:00
|
|
|
Plugin: booked
|
|
|
|
|
|
|
|
Description::
|
|
|
|
Plugin for booked PHP reservation system
|
|
|
|
::
|
|
|
|
|
2016-12-11 20:58:36 +01:00
|
|
|
Version: 0.2
|
2016-12-11 13:06:36 +01:00
|
|
|
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/booked
|
|
|
|
Web: https://github.com/limosek/zaf-plugins
|
|
|
|
|
|
|
|
Parameters::
|
|
|
|
url http://localhost/booked/Services/index.php
|
|
|
|
timezone UTC
|
|
|
|
username zaf
|
|
|
|
password
|
|
|
|
::
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
Depends-dpkg: php5-cli
|
|
|
|
Depends-opkg: php
|
|
|
|
Depends-bin: php
|
|
|
|
|
|
|
|
# Install
|
|
|
|
Install-files: bookedapi.php bookedapiconfig.php
|
|
|
|
Install-bin: getr.php
|
|
|
|
|
|
|
|
Item num_reservations:
|
|
|
|
Return: int
|
|
|
|
Parameters::
|
|
|
|
from 'now' ''
|
|
|
|
to '+1 hour' ''
|
2016-12-11 20:58:36 +01:00
|
|
|
start_only 'no' ''
|
2016-12-11 13:06:36 +01:00
|
|
|
::
|
|
|
|
Description::
|
2016-12-11 20:58:36 +01:00
|
|
|
Get number of reservations in given time range. If start_only is not null, report even reservations which ends after to.
|
2016-12-11 13:06:36 +01:00
|
|
|
::
|
2016-12-11 20:58:36 +01:00
|
|
|
Cmd: php getr.php "$from" "$to" "$start_only"
|
2016-12-11 13:06:36 +01:00
|
|
|
/Item
|
|
|
|
|
2016-12-16 13:25:26 +01:00
|
|
|
Item is_first:
|
|
|
|
Return: int
|
|
|
|
Parameters::
|
|
|
|
time 'now' ''
|
|
|
|
range1 'day' ''
|
|
|
|
range2 'no' ''
|
|
|
|
::
|
|
|
|
Description::
|
|
|
|
Returns 1 if registration in time is first at given interval. Range can be day, hour or two dates (from range1 to range2)
|
|
|
|
::
|
|
|
|
Cmd: php isfirst.php "$time" "$range1" "$range2"
|
|
|
|
/Item
|
|
|
|
|
|
|
|
|