[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/calendar/inc/ -> class.uiforms.inc.php (sommaire)

(pas de description)

Poids: 1238 lignes (45 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 calendar/inc/class.uical.inc.php

Définit 1 class

uiforms:: (12 méthodes):
  uiforms()
  view()
  default_add_event()
  process_edit()
  custom_mail()
  edit()
  conflicts()
  freetimesearch()
  freetime()
  split_freetime_daywise()
  export()
  import()


Classe: uiforms  - X-Ref

calendar UserInterface forms: view and edit events, freetime search

The new UI, BO and SO classes have a strikt definition, in which time-zone they operate:
UI only operates in user-time, so there have to be no conversation at all !!!
BO's functions take and return user-time only (!), they convert internaly everything to servertime, because
SO operates only on server-time

The state of the UI elements is managed in the uical class, which all UI classes extend.

All permanent debug messages of the calendar-code should done via the debug-message method of the bocal class !!!

uiforms()   X-Ref
Constructor


view()   X-Ref
View a calendar event


default_add_event()   X-Ref
Create a default event (adding a new event) by evaluating certain _GET vars

return: array event-array

process_edit($content)   X-Ref
Process the edited event and evtl. call edit to redisplay it

param: array $content posted eTemplate content

custom_mail($event,$added)   X-Ref
return javascript to open felamimail compose window with preset content to mail all participants

param: array $event
param: boolean $added
return: string javascript window.open command

edit($event=null,$preserv=null,$msg='',$js = 'window.focus()   X-Ref
Edit a calendar event

param: array $event=null Event to edit, if not $_GET['cal_id'] contains the event-id
param: array $perserv=null following keys:
param: string $msg='' msg to display
param: string $js='window.focus();' javascript to include in the page
param: mixed $link_to_id='' $content from or for the link-widget

conflicts($event,$conflicts,$preserv)   X-Ref
displays a sheduling conflict

param: array $event
param: array $conflicts array with conflicting events, the events are not garantied to be readable by the user!
param: array $preserv data to preserv

freetimesearch($content = null)   X-Ref
Freetime search

As the function is called in a popup via javascript, parametes get initialy transfered via the url
param: array $content=null array with parameters or false (default) to use the get-params
param: string start[str] start-date
param: string start[hour] start-hour
param: string start[min] start-minutes
param: string end[str] end-date
param: string end[hour] end-hour
param: string end[min] end-minutes
param: string participants ':' delimited string of user-id's

freetime($participants,$start,$end,$duration=1,$cal_id=0)   X-Ref
calculate the freetime of given $participants in a certain time-span

param: array $participants user-id's
param: int $start start-time timestamp in user-time
param: int $end end-time timestamp in user-time
param: int $duration min. duration in sec, default 1
param: int $cal_id own id for existing events, to exclude them from being busy-time, default 0
return: array of free time-slots: array with start and end values

split_freetime_daywise($freetime,$duration,$weekdays,$start_time,$end_time,&$sel_options)   X-Ref
split the freetime in daywise slot, taking into account weekdays, start- and stop-times

If the duration is bigger then the difference of start- and end_time, the end_time is ignored

param: array $freetime free time-slots: array with start and end values
param: int $duration min. duration in sec
param: int $weekdays allowed weekdays, bitfield of MCAL_M_...
param: int $start_time minimum start-hour 0-23
param: int $end_time maximum end-hour 0-23, or 0 for none
param: array $sel_options on return options for start-time selectbox
return: array of free time-slots: array with start and end values

export($content=0,$return_error=false)   X-Ref
Export events as vCalendar version 2.0 files (iCal)

param: int/array $content=0 numeric cal_id or submitted content from etempalte::exec
param: boolean $return_error=false should an error-msg be returned or a regular page with it generated (default)
return: string error-msg if $return_error

import($content=null)   X-Ref
Import events as vCalendar version 2.0 files (iCal)

param: array $content=null submitted content from etempalte::exec



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7