[ 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.uical.inc.php (sommaire)

(pas de description)

Poids: 748 lignes (27 kb)
Inclus ou requis: 3 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

uical:: (10 méthodes):
  uical()
  check_owners_access()
  do_header()
  manage_states()
  event_icons()
  _select_box()
  add_link()
  popup()
  sidebox_menu()
  load_cal()


Classe: uical  - X-Ref

Shared base-class of all calendar UserInterface classes

It manages eg. the state of the controls in the UI and generated the calendar navigation (sidebox-menu)

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

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

uical($use_bocalupdate=false,$set_states=NULL)   X-Ref
Constructor

param: boolean $use_bocalupdate use bocalupdate as parenent instead of bocal
param: array $set_states=null to manualy set / change one of the states, default NULL = use $_REQUEST

check_owners_access()   X-Ref
Checks and terminates (or returns for home) with a message if $this->owner include a user/resource we have no read-access to

If currentapp == 'home' we return the error instead of terminating with it !!!

return: boolean/string false if there's no error or string with error-message

do_header()   X-Ref
show the egw-framework plus possible messages ($_GET['msg'] and $this->group_warning from check_owner_access)


manage_states($set_states=NULL)   X-Ref
Manages the states of certain controls in the UI: date shown, category selected, ...

The state of all these controls is updated if they are set in $_REQUEST or $set_states and saved in the session.
The following states are used:
- date or year, month, day: the actual date of the period displayed
- cat_id: the selected category
- owner: the owner of the displayed calendar
- save_owner: the overriden owner of the planner
- filter: the used filter: no filter / all or only privat, NOT used atm.
- sortby: category or user of planner
- view: the actual view, where dialogs should return to or which they refresh
param: set_states array to manualy set / change one of the states, default NULL = use $_REQUEST

event_icons($event)   X-Ref
gets the icons displayed for a given event

param: $event array
return: array of 'img' / 'title' pairs

_select_box($title,$name,$options,$baseurl='')   X-Ref
Create a select-box item in the sidebox-menu


add_link($content,$date=null,$hour=null,$minute=0)   X-Ref
Generate a link to add an event, incl. the necessary popup

param: string $content content of the link
param: string $date=null which date should be used as start- and end-date, default null=$this->date
param: int $hour=null which hour should be used for the start, default null=$this->hour
param: int $minute=0 start-minute
return: string the link incl. content

popup($link,$target='_blank',$width=750,$height=410)   X-Ref
returns javascript to open a popup window: window.open(...)

param: string $link link or this.href
param: string $target='_blank' name of target or this.target
param: int $width=750 width of the window
param: int $height=400 height of the window
return: string javascript (using single quotes)

sidebox_menu()   X-Ref
creates the content for the sidebox-menu, called as hook


load_cal(url,id)   X-Ref
Pas de description



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