dolibarr 20.0.0
CdavLib Class Reference

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

Public Member Functions

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

Detailed Description

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

Definition at line 29 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 53 of file dav.class.php.

References user.

Member Function Documentation

◆ getFullCalendarObjects()

CdavLib::getFullCalendarObjects ( $calendarId,
$bCalendarData )

getFullCalendarObjects

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

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

References getSqlCalEvents(), toVCalendar(), and user.

◆ 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 68 of file dav.class.php.

References getEntity().

Referenced by getFullCalendarObjects().

◆ toVCalendar()

CdavLib::toVCalendar ( $calid,
$obj )

Convert calendar row to VCalendar string.

Parameters
int$calidCalendar id
Object$objObject id
Returns
string

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

Referenced by getFullCalendarObjects().


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