ILIAS
release_4-3 Revision
|
Stores calendar categories. More...
Public Member Functions | |
__construct ($a_cat_id=0) | |
Constructor. | |
getCategoryID () | |
get category id | |
setTitle ($a_title) | |
set title | |
getTitle () | |
get title | |
setColor ($a_color) | |
set color | |
getColor () | |
get color | |
setType ($a_type) | |
set type | |
getType () | |
get type | |
setObjId ($a_obj_id) | |
set obj id | |
getObjId () | |
get obj_id | |
getObjType () | |
get type | |
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. | |
getRemoteSyncLastExecution () | |
Get last execution date of remote sync. | |
add () | |
add new category | |
update () | |
update | |
delete () | |
delete | |
validate () | |
validate |
Static Public Member Functions | |
static | _getInstanceByObjId ($a_obj_id) |
get instance by obj_id | |
static | getInstanceByCategoryId ($a_cat_id) |
Get instance by category id. | |
static | lookupCategorySortIndex ($a_type_id) |
Lookup sort index of calendar type. | |
static | lookupAppointments ($a_category_id) |
get all assigned appointment ids |
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 |
Static Private Attributes | |
static | $instances = null |
ilCalendarCategory::__construct | ( | $a_cat_id = 0 | ) |
Constructor.
public
Definition at line 78 of file class.ilCalendarCategory.php.
References read().
|
static |
get instance by obj_id
int | obj_id |
Definition at line 95 of file class.ilCalendarCategory.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilCalendarAppEventListener\updateCategory().
ilCalendarCategory::add | ( | ) |
add new category
public
Definition at line 331 of file class.ilCalendarCategory.php.
References $cat_id, $query, getColor(), getLocationType(), getObjId(), getRemotePass(), getRemoteSyncLastExecution(), getRemoteUrl(), getRemoteUser(), getTitle(), getType(), IL_CAL_DATETIME, and ilTimeZone\UTC.
ilCalendarCategory::delete | ( | ) |
delete
public
Definition at line 388 of file class.ilCalendarCategory.php.
References $query, $res, ilCalendarEntry\_delete(), ilCalendarCategoryAssignments\_deleteByCategoryId(), ilCalendarHidden\_deleteCategories(), and ilCalendarCategoryAssignments\_getAssignedAppointments().
ilCalendarCategory::getCategoryID | ( | ) |
get category id
public
Definition at line 157 of file class.ilCalendarCategory.php.
References $cat_id.
Referenced by ilCalendarRemoteReader\importIcal(), and read().
ilCalendarCategory::getColor | ( | ) |
get color
public
Definition at line 203 of file class.ilCalendarCategory.php.
References $color.
Referenced by add(), update(), and validate().
|
static |
Get instance by category id.
int | $a_cat_id |
Definition at line 115 of file class.ilCalendarCategory.php.
Referenced by ilCalendarExport\buildAppointmentUrl().
ilCalendarCategory::getLocationType | ( | ) |
Definition at line 262 of file class.ilCalendarCategory.php.
References $location.
Referenced by add(), update(), and validate().
ilCalendarCategory::getObjId | ( | ) |
ilCalendarCategory::getObjType | ( | ) |
ilCalendarCategory::getRemotePass | ( | ) |
Definition at line 297 of file class.ilCalendarCategory.php.
References $remote_pass.
Referenced by add(), ilCalendarCategoryGUI\doSynchronisation(), and update().
ilCalendarCategory::getRemoteSyncLastExecution | ( | ) |
Get last execution date of remote sync.
Definition at line 315 of file class.ilCalendarCategory.php.
References $remote_sync.
Referenced by add(), and update().
ilCalendarCategory::getRemoteUrl | ( | ) |
Definition at line 277 of file class.ilCalendarCategory.php.
References $remote_url.
Referenced by add(), ilCalendarCategoryGUI\doSynchronisation(), update(), and validate().
ilCalendarCategory::getRemoteUser | ( | ) |
Definition at line 287 of file class.ilCalendarCategory.php.
References $remote_user.
Referenced by add(), ilCalendarCategoryGUI\doSynchronisation(), and update().
ilCalendarCategory::getTitle | ( | ) |
get title
public
Definition at line 180 of file class.ilCalendarCategory.php.
References $title.
Referenced by add(), update(), and validate().
ilCalendarCategory::getType | ( | ) |
get type
public
Definition at line 225 of file class.ilCalendarCategory.php.
References $type.
Referenced by add(), read(), update(), and validate().
|
static |
get all assigned appointment ids
object | $a_category_id |
Definition at line 136 of file class.ilCalendarCategory.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
|
static |
Lookup sort index of calendar type.
Definition at line 127 of file class.ilCalendarCategory.php.
Referenced by ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarCategoryTableGUI\parse(), and ilCalendarManageTableGUI\parse().
|
private |
read
protected
Definition at line 432 of file class.ilCalendarCategory.php.
References $query, $res, $row, ilObject\_lookupTitle(), ilObject\_lookupType(), DB_FETCHMODE_OBJECT, getCategoryID(), getObjId(), getType(), and IL_CAL_DATETIME.
Referenced by __construct().
ilCalendarCategory::setColor | ( | $a_color | ) |
set color
public
string | color |
Definition at line 192 of file class.ilCalendarCategory.php.
ilCalendarCategory::setLocationType | ( | $a_type | ) |
Definition at line 267 of file class.ilCalendarCategory.php.
ilCalendarCategory::setObjId | ( | $a_obj_id | ) |
set obj id
public
int | obj_id |
Definition at line 236 of file class.ilCalendarCategory.php.
ilCalendarCategory::setRemotePass | ( | $a_pass | ) |
Definition at line 292 of file class.ilCalendarCategory.php.
ilCalendarCategory::setRemoteSyncLastExecution | ( | ilDateTime | $dt = null | ) |
Set remote sync last execution.
ilDateTime | $dt |
Definition at line 306 of file class.ilCalendarCategory.php.
ilCalendarCategory::setRemoteUrl | ( | $a_url | ) |
Definition at line 272 of file class.ilCalendarCategory.php.
ilCalendarCategory::setRemoteUser | ( | $a_user | ) |
Definition at line 282 of file class.ilCalendarCategory.php.
ilCalendarCategory::setTitle | ( | $a_title | ) |
set title
public
string | title |
Definition at line 169 of file class.ilCalendarCategory.php.
ilCalendarCategory::setType | ( | $a_type | ) |
set type
public
int | type |
Definition at line 214 of file class.ilCalendarCategory.php.
ilCalendarCategory::update | ( | ) |
update
public
Definition at line 363 of file class.ilCalendarCategory.php.
References $query, $res, getColor(), getLocationType(), getObjId(), getRemotePass(), getRemoteSyncLastExecution(), getRemoteUrl(), getRemoteUser(), getTitle(), getType(), IL_CAL_DATETIME, and ilTimeZone\UTC.
ilCalendarCategory::validate | ( | ) |
validate
public
Definition at line 414 of file class.ilCalendarCategory.php.
References getColor(), getLocationType(), getRemoteUrl(), getTitle(), getType(), and LTYPE_REMOTE.
|
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(), ilCalendarCategoryGUI\details(), ilCalendarManageTableGUI\fillRow(), ilBookingReservation\getCalendarEntry(), ilCalendarAppointmentPanelGUI\getHTML(), ilObjBookingPoolGUI\processBooking(), ilCalendarCategories\readBookingCalendar(), ilCalendarCategoryGUI\readPermissions(), and ilCalendarSelectionBlockGUI\renderItem().
const ilCalendarCategory::TYPE_CH = 4 |
Definition at line 45 of file class.ilCalendarCategory.php.
Referenced by ilCalendarAppointmentGUI\bookconfirmed(), ilCalendarAppointmentGUI\cancelBooking(), ilCalendarAppointmentGUI\cancelConfirmed(), ilConsultationHoursGUI\createAppointments(), ilCalendarCategoryGUI\details(), ilCalendarManageTableGUI\fillRow(), ilConsultationHourAppointments\getAppointmentIds(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategories\readConsultationHoursCalendar(), ilCalendarCategoryGUI\readPermissions(), ilBookingEntry\removeObsoleteEntries(), ilCalendarAppointmentsTableGUI\setAppointments(), ilCalendarDayGUI\showAppointment(), ilCalendarWeekGUI\showAppointment(), and ilCalendarMonthGUI\showEvents().
const ilCalendarCategory::TYPE_GLOBAL = 3 |
Definition at line 44 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategoryGUI\details(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPublicCalendars(), 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(), ilCalendarCategoryGUI\details(), ilCalendarAppointmentGUI\distributeNotifications(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCalendarSelectionBlockGUI\getCalendars(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategories\getNotificationCalendars(), ilCalendarAppointmentGUI\initForm(), ilCalendarCategoryTableGUI\parse(), ilCalendarManageTableGUI\parse(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSelectedCategories(), ilCalendarSelectionBlockGUI\renderItem(), ilCalendarAppointmentGUI\save(), and ilCalendarAppointmentGUI\showInfoScreen().
const ilCalendarCategory::TYPE_USR = 1 |
Definition at line 42 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategories\_isOwner(), ilCalendarAppointmentGUI\createDefaultCalendar(), ilCalendarCategoryGUI\details(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarDataSet\importRecord(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategories\lookupPrivateCategories(), ilCalendarCategories\prepareCategoriesOfUserForSelection(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPrivateCalendars(), ilCalendarSelectionBlockGUI\renderItem(), and ilCalendarCategoryGUI\save().