jqScheduler __construct(
[type
$conn = null]
)
|
|
Main constructor
Parameters:
string arr2css(
array
$arr
)
|
|
Convert array to css string
Parameters:
API Tags:
string arr2htmloption(
array
$arr, [string
$selected = '']
)
|
|
Convert array to html option string. When $selected is set the element becom a atribute selected
Parameters:
array |
$arr: |
associative array containing data. the key is the values in the select |
string |
$selected: |
a |
API Tags:
array composeSearch(
[string
$stype = 'simple']
)
|
|
Composes a data either from a simple or advanced search.
Parameters:
string |
$stype: |
the type of search. Can be simple or complex |
API Tags:
Return: | which wirast element is the string used in prepare statement. The second parameter are the values for the prepared statement. |
Access: | protected |
array. convertDateFormat(
type
$phpformat
)
|
|
Converts a PHP date format to datepicker and fullcalender date format
Parameters:
API Tags:
Return: | The first element is the fulcalendar format, the second is the datepicker |
Access: | public |
Export the calendar. The method is used in renderer
API Tags:
type getOption(
string
$option
)
|
|
Retun the option the calendar
Parameters:
API Tags:
array getStringForGroup(
object
$group, array
$prm
)
|
|
Recursivley build the sql query from a json object
Parameters:
object |
$group: |
the object to parse |
array |
$prm: |
parameters array |
API Tags:
Return: | - first element is the where clause secon is the array of values to pass |
Access: | protected |
Print the result either as html or as pdf depending on the printformat variable
API Tags:
string render(
[boolean
$script = true], [boolean
$echo = true]
)
|
|
Main method where all things are happend
Parameters:
boolean |
$script: |
if true a javascript tag is outputed |
boolean |
$echo: |
if false a the builded string is returned |
API Tags:
bolean setEvent(
string
$event, string
$code
)
|
|
Set a valid calenndar event
Parameters:
string |
$event: |
- valid calendar event |
string |
$code: |
Javascript code which will be executed when the event raises |
API Tags:
void setLocale(
string
$lng
)
|
|
Set the language used in the calender.
Should be a 5 leter code - the first is the language, the second is the country.
Parameters:
API Tags:
jqChart setOption(
mixed
$option, [
$value = null], mixed
$mixvalue
)
|
|
Options regarding the calender.
Parameters:
mixed |
$option: |
the option name for the calender. Can be a string or array. When used as array a key value pair should be defined, where the key is the name |
mixed |
$mixvalue: |
is the value option in case the $option is string |
|
$value: |
|
API Tags:
Return: | instance |
Access: | public |
void setPdfOptions(
array
$apdf
)
|
|
Set options for PDF export.
Parameters:
API Tags:
void setTemplate(
string
$html, [string
$css = '']
)
|
|
Set the template and css files used for the editing the events
Parameters:
string |
$html: |
|
string |
$css: |
|
API Tags:
void setUrl(
string
$curl
)
|
|
Set the url from where to get the data
Parameters:
API Tags:
void setUser(
integer
$user_id, [boolean
$usesession = true]
)
|
|
Set the current user used in event calendar.
The function uses sessions to store the current user. This is done if the second parameter is set to true. Be a carefull when use this type of storing the user.
Parameters:
integer |
$user_id: |
the user |
boolean |
$usesession: |
is set to true a session is used, otherwiese a custom mechanism should be used |
API Tags:
void setUserDateFormat(
string
$newformat
)
|
|
Set the user date format used use a php convensions
Parameters:
API Tags:
void setUserNames(
type
$anames
)
|
|
Set the names of the currently used calendar (users)
Parameters:
API Tags:
array _buildSearch(
[
$prm = null], [
$str_filter = '']
)
|
|
Builds the search where clause when the user perform a search Return arrray the first element is a strinng with the where clause, the second element is array containing the value parameters passed to the sql.
Parameters:
array |
$prm: |
- parameters passed to the sql |
|
$str_filter: |
|
API Tags:
void _Response(
$response
)
|
|
Parameters:
API Tags: