Create a new display cell
BookingCell
BookingCell
(
&$book, [
integer $start =
START_BOOKING], [
integer $rows =
1],
TimeSlot $booking)
-
TimeSlot
$booking: the timeslot (Booking or Vacancy object) to be represented
-
integer
$start: type of cell (START_BOOKING, START_BOOKING_DAY, MIDDLE_BOOKING)
-
integer
$rows: number of rows this cell should occupy
-
&$book
use a number of different html/css classes for displaying cells
(unused?)
void
addRotateClass
(array $arr, string $roton)
-
array
$arr: list of class names
-
string
$roton: data on which to rotate through classes
html/css class to use if this day is today
void
addTodayClass
(string $c)
prepare html representation of the cell
void
display
(string $class, string $href, [boolean $popup = false], boolean $isadmin)
-
string
$class: class name to use for the cell
-
string
$href: base href to be used for making links to book/edit
-
boolean
$popup: provide a popup layer with extra details of the booking
-
boolean
$isadmin: provide an admin view of the data