ILIAS
Release_4_0_x_branch Revision 61816
|
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 | 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 |
Protected Attributes | |
$cat_id | |
$color | |
$type = self::TYPE_USR | |
$obj_id | |
$obj_type = null | |
$title | |
$db |
Private Member Functions | |
read () | |
read |
ilCalendarCategory::__construct | ( | $a_cat_id = 0 | ) |
|
static |
get instance by obj_id
int | obj_id |
Definition at line 73 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 226 of file class.ilCalendarCategory.php.
References $cat_id, $ilDB, $query, $res, getColor(), getObjId(), getTitle(), and getType().
ilCalendarCategory::delete | ( | ) |
delete
public
Definition at line 272 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 114 of file class.ilCalendarCategory.php.
References $cat_id.
Referenced by read().
ilCalendarCategory::getColor | ( | ) |
get color
public
Definition at line 160 of file class.ilCalendarCategory.php.
References $color.
Referenced by add(), update(), and validate().
ilCalendarCategory::getObjId | ( | ) |
ilCalendarCategory::getObjType | ( | ) |
ilCalendarCategory::getTitle | ( | ) |
get title
public
Definition at line 137 of file class.ilCalendarCategory.php.
References $title.
Referenced by add(), update(), and validate().
ilCalendarCategory::getType | ( | ) |
get type
public
Definition at line 182 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 93 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
|
private |
read
protected
Definition at line 308 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 149 of file class.ilCalendarCategory.php.
ilCalendarCategory::setObjId | ( | $a_obj_id | ) |
set obj id
public
int | obj_id |
Definition at line 193 of file class.ilCalendarCategory.php.
ilCalendarCategory::setTitle | ( | $a_title | ) |
set title
public
string | title |
Definition at line 126 of file class.ilCalendarCategory.php.
ilCalendarCategory::setType | ( | $a_type | ) |
set type
public
int | type |
Definition at line 171 of file class.ilCalendarCategory.php.
ilCalendarCategory::update | ( | ) |
update
public
Definition at line 252 of file class.ilCalendarCategory.php.
References $ilDB, $query, $res, getColor(), getObjId(), getTitle(), and getType().
ilCalendarCategory::validate | ( | ) |
validate
public
Definition at line 298 of file class.ilCalendarCategory.php.
References getColor(), getTitle(), and getType().
|
protected |
Definition at line 41 of file class.ilCalendarCategory.php.
Referenced by add(), and getCategoryID().
|
protected |
Definition at line 42 of file class.ilCalendarCategory.php.
Referenced by getColor().
|
protected |
Definition at line 48 of file class.ilCalendarCategory.php.
|
protected |
Definition at line 44 of file class.ilCalendarCategory.php.
Referenced by getObjId().
|
protected |
Definition at line 45 of file class.ilCalendarCategory.php.
Referenced by getObjType().
|
protected |
Definition at line 46 of file class.ilCalendarCategory.php.
Referenced by getTitle().
|
protected |
Definition at line 43 of file class.ilCalendarCategory.php.
Referenced by getType().
const ilCalendarCategory::DEFAULT_COLOR = '#04427e' |
Definition at line 35 of file class.ilCalendarCategory.php.
Referenced by ilCalendarAppointmentGUI\createDefaultCalendar().
const ilCalendarCategory::TYPE_GLOBAL = 3 |
Definition at line 39 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategoryGUI\edit(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPublicCalendars(), and ilCalendarCategoryGUI\save().
const ilCalendarCategory::TYPE_OBJ = 2 |
Definition at line 38 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategories\_lookupCategoryIdByObjId(), ilCalendarAppEventListener\createCategory(), ilCalendarCategoryGUI\edit(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarAppointmentGUI\initForm(), ilCalendarCategoryTableGUI\parse(), read(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSelectedCategories(), ilCalendarAppointmentGUI\save(), and ilCalendarAppointmentGUI\showInfoScreen().
const ilCalendarCategory::TYPE_USR = 1 |
Definition at line 37 of file class.ilCalendarCategory.php.
Referenced by ilCalendarCategories\_isOwner(), ilCalendarAppointmentGUI\createDefaultCalendar(), ilCalendarCategoryGUI\edit(), ilCalendarCategoryTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilCalendarCategoryGUI\initFormCategory(), ilCalendarCategories\prepareCategoriesOfUserForSelection(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPrivateCalendars(), and ilCalendarCategoryGUI\save().