|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Stores calendar categories. More...
Collaboration diagram for ilCalendarCategory:Public Member Functions | |
| __construct ($a_cat_id=0) | |
| Constructor. More... | |
| getCategoryID () | |
| get category id More... | |
| setTitle ($a_title) | |
| set title More... | |
| getTitle () | |
| get title More... | |
| setColor ($a_color) | |
| set color More... | |
| getColor () | |
| get color More... | |
| setType ($a_type) | |
| set type More... | |
| getType () | |
| get type More... | |
| setObjId ($a_obj_id) | |
| set obj id More... | |
| getObjId () | |
| get obj_id More... | |
| getObjType () | |
| get type More... | |
| getLocationType () | |
| setLocationType ($a_type) | |
| setRemoteUrl ($a_url) | |
| getRemoteUrl () | |
| setRemoteUser ($a_user) | |
| getRemoteUser () | |
| setRemotePass ($a_pass) | |
| getRemotePass () | |
| setRemoteSyncLastExecution (ilDateTime $dt=null) | |
| Set remote sync last execution. More... | |
| getRemoteSyncLastExecution () | |
| Get last execution date of remote sync. More... | |
| add () | |
| add new category More... | |
| update () | |
| update More... | |
| delete () | |
| delete More... | |
| validate () | |
| validate More... | |
Static Public Member Functions | |
| static | _getInstanceByObjId ($a_obj_id) |
| get instance by obj_id More... | |
| static | getInstanceByCategoryId ($a_cat_id) |
| Get instance by category id. More... | |
| static | lookupCategorySortIndex ($a_type_id) |
| Lookup sort index of calendar type. More... | |
| static | lookupAppointments ($a_category_id) |
| get all assigned appointment ids More... | |
Data Fields | |
| const | LTYPE_LOCAL = 1 |
| const | LTYPE_REMOTE = 2 |
| const | DEFAULT_COLOR = '#04427e' |
| const | TYPE_USR = 1 |
| const | TYPE_OBJ = 2 |
| const | TYPE_GLOBAL = 3 |
| const | TYPE_CH = 4 |
| const | TYPE_BOOK = 5 |
Protected Attributes | |
| $cat_id | |
| $color | |
| $type = self::TYPE_USR | |
| $obj_id | |
| $obj_type = null | |
| $title | |
| $location = self::LTYPE_LOCAL | |
| $remote_url | |
| $remote_user | |
| $remote_pass | |
| $remote_sync = null | |
| $db | |
Static Protected Attributes | |
| static | $SORTED_TYPES |
Private Member Functions | |
| read () | |
| read More... | |
Static Private Attributes | |
| static | $instances = null |
| ilCalendarCategory::__construct | ( | $a_cat_id = 0 | ) |
Constructor.
@access public
Definition at line 78 of file class.ilCalendarCategory.php.
Here is the call graph for this function:
|
static |
get instance by obj_id
| int | obj_id |
Definition at line 95 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarAppEventListener\createCategory(), ilCalendarSubscriptionGUI\show(), and ilCalendarAppEventListener\updateCategory().
Here is the caller graph for this function:| ilCalendarCategory::add | ( | ) |
add new category
@access public
Definition at line 327 of file class.ilCalendarCategory.php.
References $cat_id, $ilDB, $query, getColor(), getLocationType(), getObjId(), getRemotePass(), getRemoteSyncLastExecution(), getRemoteUrl(), getRemoteUser(), getTitle(), getType(), IL_CAL_DATETIME, and ilTimeZone\UTC.
Here is the call graph for this function:| ilCalendarCategory::delete | ( | ) |
delete
@access public
Definition at line 384 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, ilCalendarEntry\_delete(), ilCalendarCategoryAssignments\_deleteByCategoryId(), ilCalendarVisibility\_deleteCategories(), and ilCalendarCategoryAssignments\_getAssignedAppointments().
Here is the call graph for this function:| ilCalendarCategory::getCategoryID | ( | ) |
get category id
@access public
Definition at line 154 of file class.ilCalendarCategory.php.
References $cat_id.
Referenced by ilCalendarRemoteReader\importIcal(), and read().
Here is the caller graph for this function:| ilCalendarCategory::getColor | ( | ) |
get color
@access public
Definition at line 200 of file class.ilCalendarCategory.php.
References $color.
Referenced by add(), update(), and validate().
Here is the caller graph for this function:
|
static |
Get instance by category id.
| int | $a_cat_id |
Definition at line 114 of file class.ilCalendarCategory.php.
Referenced by ilCalendarExport\buildAppointmentUrl(), ilDownloadFilesBackgroundTask\collectFiles(), ilAppointmentBaseFileHandler\getCatInfo(), ilCalendarAppointmentBaseFactory\getClassBaseName(), ilDownloadFilesBackgroundTask\getEventFileNameFromId(), ilAppointmentFileHandlerFactory\getInstance(), ilAppointmentPresentationFactory\getInstance(), ilCalendarScheduleFilterBookingPool\isBookingPoolCategory(), ilCalendarScheduleFilterExercise\isExerciseCategory(), and ilAppointmentPresentationGUI\readObjIdForAppointment().
Here is the caller graph for this function:| ilCalendarCategory::getLocationType | ( | ) |
Definition at line 259 of file class.ilCalendarCategory.php.
References $location.
Referenced by add(), update(), and validate().
Here is the caller graph for this function:| ilCalendarCategory::getObjId | ( | ) |
| ilCalendarCategory::getObjType | ( | ) |
get type
@access public
Definition at line 254 of file class.ilCalendarCategory.php.
References $obj_type.
| ilCalendarCategory::getRemotePass | ( | ) |
Definition at line 294 of file class.ilCalendarCategory.php.
References $remote_pass.
Referenced by add(), ilCalendarCategoryGUI\doSynchronisation(), and update().
Here is the caller graph for this function:| ilCalendarCategory::getRemoteSyncLastExecution | ( | ) |
Get last execution date of remote sync.
Definition at line 312 of file class.ilCalendarCategory.php.
References $remote_sync.
Referenced by add(), and update().
Here is the caller graph for this function:| ilCalendarCategory::getRemoteUrl | ( | ) |
Definition at line 274 of file class.ilCalendarCategory.php.
References $remote_url.
Referenced by add(), ilCalendarCategoryGUI\doSynchronisation(), update(), and validate().
Here is the caller graph for this function:| ilCalendarCategory::getRemoteUser | ( | ) |
Definition at line 284 of file class.ilCalendarCategory.php.
References $remote_user.
Referenced by add(), ilCalendarCategoryGUI\doSynchronisation(), and update().
Here is the caller graph for this function:| ilCalendarCategory::getTitle | ( | ) |
get title
@access public
Definition at line 177 of file class.ilCalendarCategory.php.
References $title.
Referenced by add(), update(), and validate().
Here is the caller graph for this function:| ilCalendarCategory::getType | ( | ) |
get type
@access public
Definition at line 222 of file class.ilCalendarCategory.php.
References $type.
Referenced by add(), read(), update(), and validate().
Here is the caller graph for this function:
|
static |
get all assigned appointment ids
| object | $a_category_id |
Definition at line 134 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
Lookup sort index of calendar type.
Definition at line 125 of file class.ilCalendarCategory.php.
Referenced by ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarCategoryTableGUI\parse(), and ilCalendarManageTableGUI\parse().
Here is the caller graph for this function:
|
private |
read
@access protected
Definition at line 425 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, $row, ilObject\_lookupTitle(), ilObject\_lookupType(), ilDBConstants\FETCHMODE_OBJECT, getCategoryID(), getObjId(), getType(), and IL_CAL_DATETIME.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarCategory::setColor | ( | $a_color | ) |
set color
@access public
| string | color |
Definition at line 189 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setLocationType | ( | $a_type | ) |
Definition at line 264 of file class.ilCalendarCategory.php.
References $a_type.
| ilCalendarCategory::setObjId | ( | $a_obj_id | ) |
set obj id
@access public
| int | obj_id |
Definition at line 233 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setRemotePass | ( | $a_pass | ) |
Definition at line 289 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setRemoteSyncLastExecution | ( | ilDateTime | $dt = null | ) |
Set remote sync last execution.
| ilDateTime | $dt |
Definition at line 303 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setRemoteUrl | ( | $a_url | ) |
Definition at line 269 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setRemoteUser | ( | $a_user | ) |
Definition at line 279 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setTitle | ( | $a_title | ) |
set title
@access public
| string | title |
Definition at line 166 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setType | ( | $a_type | ) |
set type
@access public
| int | type |
Definition at line 211 of file class.ilCalendarCategory.php.
References $a_type.
| ilCalendarCategory::update | ( | ) |
update
@access public
Definition at line 359 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, getColor(), getLocationType(), getObjId(), getRemotePass(), getRemoteSyncLastExecution(), getRemoteUrl(), getRemoteUser(), getTitle(), getType(), IL_CAL_DATETIME, and ilTimeZone\UTC.
Here is the call graph for this function:| ilCalendarCategory::validate | ( | ) |
validate
@access public
Definition at line 409 of file class.ilCalendarCategory.php.
References getColor(), getLocationType(), getRemoteUrl(), getTitle(), getType(), and LTYPE_REMOTE.
Here is the call graph for this function:
|
protected |
Definition at line 57 of file class.ilCalendarCategory.php.
Referenced by add(), and getCategoryID().
|
protected |
Definition at line 58 of file class.ilCalendarCategory.php.
Referenced by getColor().
|
protected |
Definition at line 70 of file class.ilCalendarCategory.php.
|
staticprivate |
Definition at line 38 of file class.ilCalendarCategory.php.
|
protected |
Definition at line 64 of file class.ilCalendarCategory.php.
Referenced by getLocationType().
|
protected |
Definition at line 60 of file class.ilCalendarCategory.php.
Referenced by getObjId().
|
protected |
Definition at line 61 of file class.ilCalendarCategory.php.
Referenced by getObjType().
|
protected |
Definition at line 67 of file class.ilCalendarCategory.php.
Referenced by getRemotePass().
|
protected |
Definition at line 68 of file class.ilCalendarCategory.php.
Referenced by getRemoteSyncLastExecution().
|
protected |
Definition at line 65 of file class.ilCalendarCategory.php.
Referenced by getRemoteUrl().
|
protected |
Definition at line 66 of file class.ilCalendarCategory.php.
Referenced by getRemoteUser().
|
staticprotected |
Definition at line 48 of file class.ilCalendarCategory.php.
|
protected |
Definition at line 62 of file class.ilCalendarCategory.php.
Referenced by getTitle().
|
protected |
Definition at line 59 of file class.ilCalendarCategory.php.
Referenced by getType().
| const ilCalendarCategory::DEFAULT_COLOR = '#04427e' |
Definition at line 40 of file class.ilCalendarCategory.php.
Referenced by ilCalendarAppointmentGUI\createDefaultCalendar(), and ilCalendarUtil\initDefaultCalendarByType().
| const ilCalendarCategory::LTYPE_LOCAL = 1 |
Definition at line 35 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategoryGUI\initFormCategory().
| const ilCalendarCategory::LTYPE_REMOTE = 2 |
Definition at line 36 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategories\readPrivateCalendars(), ilCalendarCategories\readPublicCalendars(), ilCalendarCategoryGUI\save(), validate(), and ilICalParser\writeEvent().
| const ilCalendarCategory::TYPE_BOOK = 5 |
Definition at line 46 of file class.ilCalendarCategory.php.
Referenced by ilCalendarAppointmentGUI\cancelBooking(), ilCalendarAppointmentGUI\cancelConfirmed(), ilCalendarManageTableGUI\fillRow(), ilBookingReservation\getCalendarEntry(), ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarAppointmentBaseFactory\getClassBaseName(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarScheduleFilterBookingPool\isBookingPoolCategory(), ilCalendarPresentationGUI\prepareOutput(), ilObjBookingPoolGUI\processBooking(), ilCalendarCategories\readBookingCalendar(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSingleCalendar(), and ilCalendarSelectionBlockGUI\renderItem().
| const ilCalendarCategory::TYPE_CH = 4 |
Definition at line 45 of file class.ilCalendarCategory.php.
Referenced by ilConsultationHourUtils\bookAppointment(), ilConsultationHourUtils\cancelBooking(), ilCalendarAppointmentGUI\cancelBooking(), ilCalendarAppointmentGUI\cancelConfirmed(), ilConsultationHoursGUI\createAppointments(), ilCalendarManageTableGUI\fillRow(), ilConsultationHourUtils\findCalendarAppointmentsForBooking(), ilConsultationHourAppointments\getAppointmentIds(), ilConsultationHourAppointments\getAppointmentIdsByGroup(), ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarAppointmentBaseFactory\getClassBaseName(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarPresentationGUI\initAndRedirectToConsultationHours(), ilBookingEntry\lookupBookableUsersForObject(), ilCalendarPresentationGUI\prepareOutput(), ilCalendarCategories\readConsultationHoursCalendar(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSingleCalendar(), ilBookingEntry\removeObsoleteEntries(), ilCalendarSelectionBlockGUI\renderItem(), and ilCalendarAppointmentsTableGUI\setAppointments().
| const ilCalendarCategory::TYPE_GLOBAL = 3 |
Definition at line 44 of file class.ilCalendarCategory.php.
Referenced by ilCalendarActions\checkDeleteCal(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilAppointmentBaseFileHandler\getCatInfo(), ilCalendarAppointmentBaseFactory\getClassBaseName(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarPresentationGUI\prepareOutput(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPublicCalendars(), ilCalendarCategories\readSingleCalendar(), ilCalendarSelectionBlockGUI\renderItem(), and ilCalendarCategoryGUI\save().
| const ilCalendarCategory::TYPE_OBJ = 2 |
Definition at line 43 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategories\_lookupCategoryIdByObjId(), ilCalendarExport\buildAppointmentUrl(), ilCalendarAppEventListener\createCategory(), ilCalendarAppointmentGUI\distributeNotifications(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCalendarSelectionBlockGUI\getCalendars(), ilAppointmentBaseFileHandler\getCatInfo(), ilCalendarAppointmentBaseFactory\getClassBaseName(), ilDownloadFilesBackgroundTask\getEventFileNameFromId(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategories\getNotificationCalendars(), ilCalendarAppointmentGUI\initForm(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarScheduleFilterExercise\isExerciseCategory(), ilCalendarVisibility\isHidden(), ilCalendarCategoryTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilCalendarPresentationGUI\prepareOutput(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSelectedCalendar(), ilCalendarCategories\readSelectedCategories(), ilCalendarCategories\readSingleCalendar(), ilCalendarSelectionBlockGUI\renderItem(), ilCalendarAppointmentGUI\save(), ilCalendarAppointmentGUI\showInfoScreen(), and ilCalendarCategoryGUI\update().
| const ilCalendarCategory::TYPE_USR = 1 |
Definition at line 42 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategories\_isOwner(), ilCalendarActions\checkDeleteCal(), ilCalendarActions\checkShareCal(), ilCalendarAppointmentGUI\createDefaultCalendar(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCalendarSelectionBlockGUI\getCalendars(), ilAppointmentBaseFileHandler\getCatInfo(), ilCalendarAppointmentBaseFactory\getClassBaseName(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarDataSet\importRecord(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategories\lookupPrivateCategories(), ilCalendarCategories\prepareCategoriesOfUserForSelection(), ilCalendarPresentationGUI\prepareOutput(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPrivateCalendars(), ilCalendarCategories\readSingleCalendar(), ilCalendarSelectionBlockGUI\renderItem(), and ilCalendarCategoryGUI\save().