Documentation

hols.php

Functions for listing, adding and editing holidays

Tags
category

JARS

author

MikePrice mike@price.org

licence

for internal use by Amtek only - copyright Amtek

Table of Contents

Constants

SHOW_MY_HOLIDAYS  = "<input type='button' style='margin:0 3em' class='pseudobtn_s' value=\"Show My Holidays\" " . " onclick=\"window.open('hols-details.php','','width=800,height=400,status=no,toolbar=no,menubar=no,scrollbars=1')\">"

Functions

hols()  : null
Request holiday form
parsedates()  : sql
Parse Date
whatday()  : the
Get a day from a datetime
Do_addhol()  : null
Add a holiday to the database
howmanydays()  : mixed
viewhols()  : mixed
showevents()  : mixed
approve()  : null
TODO add description etc
GetUser()  : mixed
GetHolEntitlement()  : mixed

Constants

SHOW_MY_HOLIDAYS

public mixed SHOW_MY_HOLIDAYS = "<input type='button' style='margin:0 3em' class='pseudobtn_s' value=\"Show My Holidays\" " . " onclick=\"window.open('hols-details.php','','width=800,height=400,status=no,toolbar=no,menubar=no,scrollbars=1')\">"

Functions

hols()

Request holiday form

hols([mixed $msg = '' ]) : null
Parameters
$msg : mixed = ''

string if there is an error - show in the add holiday form

Return values
null

parsedates()

Parse Date

parsedates(mixed $start, mixed $end, mixed $id, mixed $type, mixed $enhanced) : sql
Parameters
$start : mixed

unknown

$end : mixed

unknown

$id : mixed

unknown

$type : mixed

unknown

$enhanced : mixed

unknown

Return values
sql

condition unknown

whatday()

Get a day from a datetime

whatday(mixed $date) : the
Parameters
$date : mixed

the date for which the day of the week is to be fetched

Return values
the

day in eg 'Fri' from a given datetime

Do_addhol()

Add a holiday to the database

Do_addhol() : null
Return values
null

howmanydays()

howmanydays(mixed $userid, mixed $Startdate) : mixed
Parameters
$userid : mixed
$Startdate : mixed

viewhols()

viewhols() : mixed

showevents()

showevents(mixed $actday, mixed $firstDay) : mixed
Parameters
$actday : mixed
$firstDay : mixed

approve()

TODO add description etc

approve() : null
Return values
null

GetUser()

GetUser(mixed $id) : mixed
Parameters
$id : mixed

GetHolEntitlement()

GetHolEntitlement(mixed $id) : mixed
Parameters
$id : mixed

        
On this page

Search results