dolibarr  16.0.5
Public Member Functions | List of all members
CdavLib Class Reference

Define Common function to access calendar items and format it in vCalendar. More...

Public Member Functions

 __construct ($user, $db, $langs)
 Constructor. More...
 
 getSqlCalEvents ($calid, $oid=false, $ouri=false)
 Base sql request for calendar events. More...
 
 toVCalendar ($calid, $obj)
 Convert calendar row to VCalendar string. More...
 
 getFullCalendarObjects ($calendarId, $bCalendarData)
 getFullCalendarObjects More...
 

Detailed Description

Define Common function to access calendar items and format it in vCalendar.

Definition at line 28 of file dav.class.php.

Constructor & Destructor Documentation

◆ __construct()

CdavLib::__construct (   $user,
  $db,
  $langs 
)

Constructor.

Parameters
User$useruser
DoliDB$dbDatabase handler
Translate$langstranslation

Definition at line 44 of file dav.class.php.

References db, and user.

Member Function Documentation

◆ getFullCalendarObjects()

CdavLib::getFullCalendarObjects (   $calendarId,
  $bCalendarData 
)

getFullCalendarObjects

Parameters
int$calendarIdCalendar id
int$bCalendarDataAdd calendar data
Returns
array|string[][]

Definition at line 250 of file dav.class.php.

◆ getSqlCalEvents()

CdavLib::getSqlCalEvents (   $calid,
  $oid = false,
  $ouri = false 
)

Base sql request for calendar events.

Parameters
int$calidCalendard id
int | boolean$oidOid
int | boolean$ouriOuri
Returns
string

Definition at line 59 of file dav.class.php.

◆ toVCalendar()

CdavLib::toVCalendar (   $calid,
  $obj 
)

Convert calendar row to VCalendar string.

Parameters
int$calidCalendar id
Object$objObject id
Returns
string

Definition at line 119 of file dav.class.php.


The documentation for this class was generated from the following file: