Let users submit appointments from frontend. You can view & manage them in backend.
The Booking Plugin is a simple but nice, clean frontend form. Users can submit appointments. The entries are managable in the backend. Perfect for any kind of appointment requests. E.g. if you are a Hairdresser your customers can submit their wished dates. If you are a musician, this is perfect to do your bookings. You can manage them in the Backend and view all bookings in a sortable, clean table. You can set the Appointment to "done", rate it, count how many times you've met that user, how many bookings were successful and many, many more.
Class covers both, backend & frontend functionality. See Methods Summary for Details!
Copyright: 2009-2016 Daniel Retzl
License: GNU/GPL 2.0
Author: Daniel Retzl firstname.lastname@example.org
Booking Plugin is perfect if you want to let your customers submit appointments from frontend. Entries can be viewed, setup and monitored in the backend.
Located at system/plugins/booking/classes/booking.php
public countVisits( object
count and return how many successful booking an email adress made
public getStats( array
get statistics from all bookings
public toggleBan( object
set a booking to banned (to see clearly: nope, we dont want this) this is useful to detect and handle fake bookings, fun bookings, nonsense entries...
public toggleOutdated( object
$id) : boolean
toggle a booking to outdated.
public inviteUser( object
$name) : boolean
if you like, you can invite users to a private member area. allow users to register and become members after they did a successful booking. Whatever you put in your members area (eg. vip club) is on your own.
$lang) : string
draw (output) html of the frontend form. This is displayed to the user. He will use to place a booking
public getBackendTable( object
$value) : string
get data and draw (output) html backend table of all bookings
public save( object
$db) : boolean
save (update) booking data
public toggleOffline( object
$success) : boolean
toggle a booking online or offline
public loadProperties( object
load booking data into object properties
public static getMaxId( object
$db) : string|boolean
get highest ID from booking table
public getProperty( object
$property) : string|boolean
return any booking property
public delete( object
$id) : boolean
delete a single booking
public create( object
create a new booking
public $lang : string
public $day : string
public $month : string
public $time : string
public $id : string
public $uid : string
user ID who booked
public $gid : string
public $date_created : string
date when the booking was created
public $date_confirmed : integer
0|1 is this a confirmed booking?
public $name : string
public $email : string
booking email address
public $phone : string
booking phone number
public $text : string
public $success : integer
0|1 was the booking successful?
public $grade : integer
internal voting for this booking (school grades)
public $visits : integer
how often has this client (email adress) successful booked?
public $comment : string
internal comment for this booking (max 255 chars)
public $ip : string
IP Address of the user who booked
public $hostname : string
public $income : integer
how much is this booking worth?
public $confirmed : integer
0|1 is this booking confirmed?
public $datewish_time : string
user booking time
public $datewish_month : string
user booking month
public $datewish_day : string
user booking day
public $datewish_year : string
user booking year
public $date_wish : string
user booking date wish (full)
public $alternative_time : string
alternative user booking time
public $alternative_month : string
alternative user booking month
public $alternative_day : string
alternative user booking day
public $alternative_year : string
alternative user booking year
public $date_alternative : string
alternative user booking date (full)
public $message : string
user booking message
public $useragent : string
the complete useragent
public $referer : string
referer: where did the user came from? (last url)
public $outstanding_sum : integer
expected money from outstanding bookings
public $outdated : integer
0|1 is this booking set to outdated?
public $ban : integer
0|1 is this user (email adress) banned?
public $invited : integer
0|1 is this user invited?