ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilCalendarRecurrenceExclusions Class Reference

calendar exclusions More...

+ Collaboration diagram for ilCalendarRecurrenceExclusions:

Static Public Member Functions

static getExclusionDates ($a_cal_id)
 Read exclusion dates.
static delete ($a_cal_id)
 Delete exclusion dates of calendar entry.

Detailed Description

calendar exclusions

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 35 of file class.ilCalendarRecurrenceExclusions.php.

Member Function Documentation

static ilCalendarRecurrenceExclusions::delete (   $a_cal_id)
static

Delete exclusion dates of calendar entry.

Parameters
integer$a_cal_id
Returns

Definition at line 63 of file class.ilCalendarRecurrenceExclusions.php.

References $ilDB, and $query.

{
global $ilDB;
$query = "DELETE FROM cal_rec_exclusion ".
"WHERE cal_id = ".$ilDB->quote($a_cal_id,'integer');
$ilDB->manipulate($query);
}
static ilCalendarRecurrenceExclusions::getExclusionDates (   $a_cal_id)
static

Read exclusion dates.

Parameters
object$a_cal_id
Returns

Definition at line 43 of file class.ilCalendarRecurrenceExclusions.php.

References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.

Referenced by ilCalendarExport\createRecurrences().

{
global $ilDB;
$query = "SELECT excl_id FROM cal_rec_exclusion ".
"WHERE cal_id = ".$ilDB->quote($a_cal_id,'integer');
$res = $ilDB->query($query);
$exclusions = array();
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$exclusions[] = new ilCalendarRecurrenceExclusion($row->excl_id);
}
return $exclusions;
}

+ Here is the caller graph for this function:


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