|
ILIAS
Release_3_10_x_branch Revision 61812
|
Stores calendar categories. More...
Collaboration diagram for ilCalendarCategory: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 | |
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 | ) |
Constructor.
public
Definition at line 56 of file class.ilCalendarCategory.php.
References read().
Here is the call graph for this function:
|
static |
get instance by obj_id
| int | obj_id |
Definition at line 73 of file class.ilCalendarCategory.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilCalendarAppEventListener\updateCategory().
Here is the caller graph for this function:| ilCalendarCategory::add | ( | ) |
add new category
public
Definition at line 207 of file class.ilCalendarCategory.php.
References $cat_id, getColor(), getObjId(), getTitle(), and getType().
Here is the call graph for this function:| ilCalendarCategory::delete | ( | ) |
delete
public
Definition at line 244 of file class.ilCalendarCategory.php.
References ilCalendarEntry\_delete(), ilCalendarCategoryAssignments\_deleteByCategoryId(), ilCalendarHidden\_deleteCategories(), and ilCalendarCategoryAssignments\_getAssignedAppointments().
Here is the call graph for this function:| ilCalendarCategory::getCategoryID | ( | ) |
get category id
public
Definition at line 95 of file class.ilCalendarCategory.php.
References $cat_id.
Referenced by read().
Here is the caller graph for this function:| ilCalendarCategory::getColor | ( | ) |
get color
public
Definition at line 141 of file class.ilCalendarCategory.php.
References $color.
Referenced by add(), update(), and validate().
Here is the caller graph for this function:| ilCalendarCategory::getObjId | ( | ) |
| ilCalendarCategory::getObjType | ( | ) |
| ilCalendarCategory::getTitle | ( | ) |
get title
public
Definition at line 118 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
public
Definition at line 163 of file class.ilCalendarCategory.php.
References $type.
Referenced by add(), read(), update(), and validate().
Here is the caller graph for this function:
|
private |
read
protected
Definition at line 278 of file class.ilCalendarCategory.php.
References $res, ilObject\_lookupTitle(), ilObject\_lookupType(), DB_FETCHMODE_OBJECT, getCategoryID(), getObjId(), getType(), and TYPE_OBJ.
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
public
| string | color |
Definition at line 130 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setObjId | ( | $a_obj_id | ) |
set obj id
public
| int | obj_id |
Definition at line 174 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setTitle | ( | $a_title | ) |
set title
public
| string | title |
Definition at line 107 of file class.ilCalendarCategory.php.
| ilCalendarCategory::setType | ( | $a_type | ) |
set type
public
| int | type |
Definition at line 152 of file class.ilCalendarCategory.php.
| ilCalendarCategory::update | ( | ) |
update
public
Definition at line 226 of file class.ilCalendarCategory.php.
References getColor(), getObjId(), getTitle(), and getType().
Here is the call graph for this function:| ilCalendarCategory::validate | ( | ) |
validate
public
Definition at line 268 of file class.ilCalendarCategory.php.
References getColor(), getTitle(), and getType().
Here is the call graph for this function:
|
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(), ilCalendarCategoryTableGUI\parse(), read(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readSelectedCategories(), 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().