ILIAS
Release_4_1_x_branch Revision 61804
|
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 | |
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 | lookupAppointments ($a_category_id) |
get all assigned appointment ids |
Data Fields | |
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 | |
$db |
Private Member Functions | |
read () | |
read |
Static Private Attributes | |
static | $instances = null |
ilCalendarCategory::__construct | ( | $a_cat_id = 0 | ) |
|
static |
get instance by obj_id
int | obj_id |
Definition at line 77 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilCalendarAppEventListener\updateCategory().
ilCalendarCategory::add | ( | ) |
add new category
public
Definition at line 245 of file class.ilCalendarCategory.php.
References $cat_id, $ilDB, $query, $res, getColor(), getObjId(), getTitle(), and getType().
ilCalendarCategory::delete | ( | ) |
delete
public
Definition at line 291 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, ilCalendarEntry\_delete(), ilCalendarCategoryAssignments\_deleteByCategoryId(), ilCalendarHidden\_deleteCategories(), and ilCalendarCategoryAssignments\_getAssignedAppointments().
ilCalendarCategory::getCategoryID | ( | ) |
get category id
public
Definition at line 133 of file class.ilCalendarCategory.php.
References $cat_id.
Referenced by read().
ilCalendarCategory::getColor | ( | ) |
get color
public
Definition at line 179 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 97 of file class.ilCalendarCategory.php.
Referenced by ilCalendarExport\buildAppointmentUrl().
ilCalendarCategory::getObjId | ( | ) |
ilCalendarCategory::getObjType | ( | ) |
ilCalendarCategory::getTitle | ( | ) |
get title
public
Definition at line 156 of file class.ilCalendarCategory.php.
References $title.
Referenced by add(), update(), and validate().
ilCalendarCategory::getType | ( | ) |
get type
public
Definition at line 201 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 112 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
|
private |
read
protected
Definition at line 327 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, $row, ilObject\_lookupTitle(), ilObject\_lookupType(), DB_FETCHMODE_OBJECT, getCategoryID(), getObjId(), getType(), and TYPE_OBJ.
Referenced by __construct().
ilCalendarCategory::setColor | ( | $a_color | ) |
set color
public
string | color |
Definition at line 168 of file class.ilCalendarCategory.php.
ilCalendarCategory::setObjId | ( | $a_obj_id | ) |
set obj id
public
int | obj_id |
Definition at line 212 of file class.ilCalendarCategory.php.
ilCalendarCategory::setTitle | ( | $a_title | ) |
set title
public
string | title |
Definition at line 145 of file class.ilCalendarCategory.php.
ilCalendarCategory::setType | ( | $a_type | ) |
set type
public
int | type |
Definition at line 190 of file class.ilCalendarCategory.php.
ilCalendarCategory::update | ( | ) |
update
public
Definition at line 271 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, getColor(), getObjId(), getTitle(), and getType().
ilCalendarCategory::validate | ( | ) |
validate
public
Definition at line 317 of file class.ilCalendarCategory.php.
References getColor(), getTitle(), and getType().
|
protected |
Definition at line 45 of file class.ilCalendarCategory.php.
Referenced by add(), and getCategoryID().
|
protected |
Definition at line 46 of file class.ilCalendarCategory.php.
Referenced by getColor().
|
protected |
Definition at line 52 of file class.ilCalendarCategory.php.
|
staticprivate |
Definition at line 35 of file class.ilCalendarCategory.php.
|
protected |
Definition at line 48 of file class.ilCalendarCategory.php.
Referenced by getObjId().
|
protected |
Definition at line 49 of file class.ilCalendarCategory.php.
Referenced by getObjType().
|
protected |
Definition at line 50 of file class.ilCalendarCategory.php.
Referenced by getTitle().
|
protected |
Definition at line 47 of file class.ilCalendarCategory.php.
Referenced by getType().
const ilCalendarCategory::DEFAULT_COLOR = '#04427e' |
Definition at line 37 of file class.ilCalendarCategory.php.
Referenced by ilCalendarAppointmentGUI\createDefaultCalendar(), and ilCalendarUtil\initDefaultCalendarByType().
const ilCalendarCategory::TYPE_BOOK = 5 |
Definition at line 43 of file class.ilCalendarCategory.php.
Referenced by ilCalendarAppointmentGUI\cancelBooking(), ilCalendarAppointmentGUI\cancelConfirmed(), ilObjBookingPoolGUI\confirmedBookingObject(), ilCalendarCategoryGUI\details(), ilCalendarManageTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategories\readBookingCalendar(), ilCalendarCategoryGUI\readPermissions(), and ilObjBookingPoolGUI\rsvCancelObject().
const ilCalendarCategory::TYPE_CH = 4 |
Definition at line 42 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 41 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategoryGUI\details(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPublicCalendars(), and ilCalendarCategoryGUI\save().
const ilCalendarCategory::TYPE_OBJ = 2 |
Definition at line 40 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategories\_lookupCategoryIdByObjId(), ilCalendarExport\buildAppointmentUrl(), ilCalendarAppEventListener\createCategory(), ilCalendarCategoryGUI\details(), ilCalendarAppointmentGUI\distributeNotifications(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategories\getNotificationCalendars(), ilCalendarAppointmentGUI\initForm(), ilCalendarCategoryTableGUI\parse(), ilCalendarManageTableGUI\parse(), read(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSelectedCategories(), ilCalendarAppointmentGUI\save(), and ilCalendarAppointmentGUI\showInfoScreen().
const ilCalendarCategory::TYPE_USR = 1 |
Definition at line 39 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategories\_isOwner(), ilCalendarAppointmentGUI\createDefaultCalendar(), ilCalendarCategoryGUI\details(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarManageTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategories\prepareCategoriesOfUserForSelection(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPrivateCalendars(), and ilCalendarCategoryGUI\save().