ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilObjCourse. More...
Public Member Functions | |
ilObjCourse ($a_id=0, $a_call_by_reference=true) | |
Constructor public. | |
getImportantInformation () | |
setImportantInformation ($a_info) | |
getSyllabus () | |
setSyllabus ($a_syllabus) | |
getContactName () | |
setContactName ($a_cn) | |
getContactConsultation () | |
setContactConsultation ($a_value) | |
getContactPhone () | |
setContactPhone ($a_value) | |
getContactEmail () | |
setContactEmail ($a_value) | |
getContactResponsibility () | |
setContactResponsibility ($a_value) | |
getActivationType () | |
setActivationType ($a_type) | |
getActivationUnlimitedStatus () | |
getActivationStart () | |
setActivationStart ($a_value) | |
getActivationEnd () | |
setActivationEnd ($a_value) | |
getOfflineStatus () | |
getSubscriptionLimitationType () | |
setSubscriptionLimitationType ($a_type) | |
getSubscriptionUnlimitedStatus () | |
getSubscriptionStart () | |
setSubscriptionStart ($a_value) | |
getSubscriptionEnd () | |
setSubscriptionEnd ($a_value) | |
getSubscriptionType () | |
setSubscriptionType ($a_value) | |
getSubscriptionPassword () | |
setSubscriptionPassword ($a_value) | |
enabledObjectiveView () | |
enabledWaitingList () | |
enableWaitingList ($a_status) | |
inSubscriptionTime () | |
enableSessionLimit ($a_status) | |
en/disable limited number of sessions | |
isSessionLimitEnabled () | |
enableSubscriptionMembershipLimitation ($a_status) | |
enable max members | |
setNumberOfPreviousSessions ($a_num) | |
Set number of previous sessions. | |
getNumberOfPreviousSessions () | |
Set number of previous sessions. | |
setNumberOfNextSessions ($a_num) | |
Set number of previous sessions. | |
getNumberOfNextSessions () | |
Set number of previous sessions. | |
isSubscriptionMembershipLimited () | |
is membership limited | |
getSubscriptionMaxMembers () | |
setSubscriptionMaxMembers ($a_value) | |
getSubItems ($a_admin_panel_enabled=false, $a_include_side_block=false) | |
Get subitems of container. | |
getSubscriptionNotify () | |
setSubscriptionNotify ($a_value) | |
setViewMode ($a_mode) | |
getViewMode () | |
Get container view mode. | |
_lookupViewMode ($a_id) | |
_lookupAboStatus ($a_id) | |
getArchiveStart () | |
setArchiveStart ($a_value) | |
getArchiveEnd () | |
setArchiveEnd ($a_value) | |
getArchiveType () | |
setArchiveType ($a_value) | |
setAboStatus ($a_status) | |
getAboStatus () | |
setShowMembers ($a_status) | |
getShowMembers () | |
getMessage () | |
setMessage ($a_message) | |
appendMessage ($a_message) | |
getMembers () | |
isActivated ($a_check_archive=false) | |
_isActivated ($a_obj_id) | |
Is activated. | |
_registrationEnabled ($a_obj_id) | |
Registration enabled? Method is in Access class, since it is needed by Access/ListGUI. | |
isArchived () | |
allowAbo () | |
read ($a_force_db=false) | |
read object data from db into object | |
create ($a_upload=false) | |
setLatitude ($a_latitude) | |
Set Latitude. | |
getLatitude () | |
Get Latitude. | |
setLongitude ($a_longitude) | |
Set Longitude. | |
getLongitude () | |
Get Longitude. | |
setLocationZoom ($a_locationzoom) | |
Set LocationZoom. | |
getLocationZoom () | |
Get LocationZoom. | |
setEnableCourseMap ($a_enablemap) | |
Set Enable Course Map. | |
getEnableCourseMap () | |
Get Enable Course Map. | |
cloneObject ($a_target_id, $a_copy_id=0) | |
Clone course (no member data) | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies (start objects, preconditions) | |
cloneAutoGeneratedRoles ($new_obj) | |
Clone automatic genrated roles (permissions and template permissions) | |
validate () | |
validateInfoSettings () | |
hasContactData () | |
delete () | |
delete course and all related data | |
update () | |
update complete object | |
updateSettings () | |
cloneSettings ($new_obj) | |
Clone entries in settings table. | |
__createDefaultSettings () | |
__readSettings () | |
initWaitingList () | |
initCourseMemberObject () | |
initCourseItemObject ($a_child_id=0) | |
getCourseItemObject () | |
get course item object | |
initCourseArchiveObject () | |
initDefaultRoles () | |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public | |
__setCourseStatus () | |
set course status | |
__getCrsNonMemberTemplateId () | |
get course non-member template private | |
getLocalCourseRoles ($a_translate=false) | |
get ALL local roles of course, also those created and defined afterwards only fetch data once from database. | |
getDefaultCourseRoles ($a_crs_id="") | |
get default course roles, returns the defaultlike create roles il_crs_tutor, il_crs_admin and il_crs_member public | |
__getLocalRoles () | |
__deleteSettings () | |
getDefaultMemberRole () | |
getDefaultTutorRole () | |
getDefaultAdminRole () | |
_checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id=0) | |
_deleteUser ($a_usr_id) | |
handleECSSettings ($a_export, $a_owner, $a_mids) | |
Save ECS settings (add- update- deleteResource) | |
MDUpdateListener ($a_element) | |
Overwriten Metadata update listener for ECS functionalities. | |
updateECSContent () | |
Update ECS Content. | |
addAdditionalSubItemInformation (&$a_item_data) | |
Add additional information to sub item, e.g. | |
Public Member Functions inherited from ilContainer | |
ilContainer ($a_id=0, $a_call_by_reference=true) | |
Constructor public. | |
createContainerDirectory () | |
Create directory for the container. | |
getContainerDirectory () | |
Get the container directory. | |
_getContainerDirectory ($a_id) | |
Get the container directory. | |
getBigIconPath () | |
Get path for big icon. | |
getSmallIconPath () | |
Get path for small icon. | |
getTinyIconPath () | |
Get path for tiny icon. | |
setHiddenFilesFound ($a_hiddenfilesfound) | |
Set Found hidden files (set by getSubItems). | |
getHiddenFilesFound () | |
Get Found hidden files (set by getSubItems). | |
getStyleSheetId () | |
get ID of assigned style sheet object | |
setStyleSheetId ($a_style_id) | |
set ID of assigned style sheet object | |
_lookupContainerSetting ($a_id, $a_keyword) | |
Lookup a container setting. | |
_writeContainerSetting ($a_id, $a_keyword, $a_value) | |
_lookupIconPath ($a_id, $a_size="big") | |
lookup icon path | |
saveIcons ($a_big_icon, $a_small_icon, $a_tiny_icon) | |
save container icons | |
removeBigIcon () | |
remove big icon | |
removeSmallIcon () | |
remove small icon | |
removeTinyIcon () | |
remove tiny icon | |
getFirstColumn () | |
Get right column. | |
cloneAllObject ($session_id, $client_id, $new_type, $ref_id, $clone_source, $options, $soap_call=false) | |
clone all objects according to this container | |
getOrderType () | |
Get order type default implementation. | |
setOrderType ($a_value) | |
gotItems () | |
Check whether we got any items. | |
getGroupedObjTypes () | |
Get grouped repository object types. | |
enablePageEditing () | |
Check whether page editing is allowed for container. | |
create () | |
Create. | |
read () | |
read | |
Public Member Functions inherited from ilObject | |
ilObject ($a_id=0, $a_reference=true) | |
Constructor public. | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) | |
getId () | |
get object id public | |
setId ($a_id) | |
set object id public | |
setRefId ($a_id) | |
set reference id public | |
getRefId () | |
get reference id public | |
getType () | |
get object type public | |
setType ($a_type) | |
set object type public | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions | |
getTitle () | |
get object title public | |
getUntranslatedTitle () | |
get untranslated object title public | |
setTitle ($a_title) | |
set object title | |
getDescription () | |
get object description | |
setDescription ($a_desc) | |
set object description | |
getLongDescription () | |
get object long description (stored in object_description) | |
getImportId () | |
get import id | |
setImportId ($a_import_id) | |
set import id | |
_lookupObjIdByImportId ($a_import_id) | |
getOwner () | |
get object owner | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id | |
setOwner ($a_owner) | |
set object owner | |
getCreateDate () | |
get create date public | |
getLastUpdateDate () | |
get last update date public | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
createMetaData () | |
create meta data entry | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_getAllReferences ($a_id) | |
get all reference ids of object | |
_lookupOwner ($a_id) | |
lookup object owner | |
_lookupDescription ($a_id) | |
lookup object description | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_lookupDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash | |
_lookupObjectId ($a_ref_id) | |
lookup object id | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? | |
setPermissions ($a_parent_ref) | |
set permissions of object | |
createReference () | |
creates reference for object | |
countReferences () | |
count references of object | |
createRoleFolder () | |
creates a local role folder | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event passed, each object may decide how it reacts. | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getXMLZip () | |
getHTMLDirectory () | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. | |
cloneMetaData ($target_obj) | |
Copy meta data. |
Static Public Member Functions | |
static | _isSubscriptionNotificationEnabled ($a_course_id) |
Check if subscription notification is enabled. |
Data Fields | |
const | CAL_REG_START = 1 |
const | CAL_REG_END = 2 |
const | CAL_ACTIVATION_START = 3 |
const | CAL_ACTIVATION_END = 4 |
$members_obj | |
$archives_obj | |
$items_obj | |
Data Fields inherited from ilContainer | |
const | VIEW_SESSIONS = 0 |
const | VIEW_OBJECTIVE = 1 |
const | VIEW_TIMING = 2 |
const | VIEW_ARCHIVE = 3 |
const | VIEW_SIMPLE = 4 |
const | VIEW_BY_TYPE = 5 |
const | VIEW_INHERIT = 6 |
const | VIEW_ILINC = 7 |
const | SORT_TITLE = 0 |
const | SORT_MANUAL = 1 |
const | SORT_ACTIVATION = 2 |
Data Fields inherited from ilObject | |
$ilias | |
$lng | |
$id | |
$ref_id | |
$type | |
$title | |
$untranslatedTitle | |
$desc | |
$long_desc | |
$owner | |
$create_date | |
$last_update | |
$import_id | |
$register = false | |
$referenced | |
$objectList | |
$max_title | |
$max_desc | |
$add_dots | |
$obj_data_record | |
object_data record |
Protected Member Functions | |
prepareAppointments ($a_mode= 'create') | |
Prepare calendar appointments. |
Private Attributes | |
$latitude = '' | |
$longitude = '' | |
$locationzoom = 0 | |
$enablemap = 0 | |
$session_limit = 0 | |
$session_prev = -1 | |
$session_next = -1 |
Additional Inherited Members | |
Protected Attributes inherited from ilContainer | |
$order_type = 0 | |
$hiddenfilesfound = false |
Class ilObjCourse.
Definition at line 34 of file class.ilObjCourse.php.
ilObjCourse::__createDefaultSettings | ( | ) |
Definition at line 1094 of file class.ilObjCourse.php.
References $ilDB, $query, $res, __readSettings(), getActivationEnd(), getActivationStart(), getArchiveEnd(), getArchiveStart(), getContactConsultation(), getContactEmail(), getContactName(), getContactPhone(), getContactResponsibility(), getEnableCourseMap(), ilObject\getId(), getLatitude(), getLocationZoom(), getLongitude(), getNumberOfPreviousSessions(), getSubscriptionEnd(), getSubscriptionMaxMembers(), getSubscriptionPassword(), getSubscriptionStart(), getSyllabus(), IL_CRS_ACTIVATION_OFFLINE, IL_CRS_ARCHIVE_NONE, IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_DIRECT, isSessionLimitEnabled(), and ilContainer\SORT_MANUAL.
Referenced by create(), and updateSettings().
ilObjCourse::__deleteSettings | ( | ) |
Definition at line 1535 of file class.ilObjCourse.php.
References $ilDB, $query, $res, and ilObject\getId().
Referenced by delete().
ilObjCourse::__getCrsNonMemberTemplateId | ( | ) |
get course non-member template private
return | obj_id of roletemplate containing permissionsettings for non-member roles of a course. |
Definition at line 1421 of file class.ilObjCourse.php.
References $ilDB, $q, $res, $row, and DB_FETCHMODE_ASSOC.
Referenced by __setCourseStatus().
ilObjCourse::__getLocalRoles | ( | ) |
Definition at line 1524 of file class.ilObjCourse.php.
References ilObject\getRefId().
Referenced by getDefaultAdminRole(), getDefaultMemberRole(), and getDefaultTutorRole().
ilObjCourse::__readSettings | ( | ) |
Definition at line 1150 of file class.ilObjCourse.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, enableSessionLimit(), enableSubscriptionMembershipLimitation(), enableWaitingList(), ilObject\getId(), setAboStatus(), setActivationEnd(), setActivationStart(), setActivationType(), setArchiveEnd(), setArchiveStart(), setArchiveType(), setContactConsultation(), setContactEmail(), setContactName(), setContactPhone(), setContactResponsibility(), setEnableCourseMap(), setImportantInformation(), setLatitude(), setLocationZoom(), setLongitude(), setNumberOfNextSessions(), setNumberOfPreviousSessions(), setShowMembers(), setSubscriptionEnd(), setSubscriptionLimitationType(), setSubscriptionMaxMembers(), setSubscriptionNotify(), setSubscriptionPassword(), setSubscriptionStart(), setSubscriptionType(), setSyllabus(), and setViewMode().
Referenced by __createDefaultSettings(), and read().
ilObjCourse::__setCourseStatus | ( | ) |
set course status
Grants permissions on the course object for all parent roles. Each permission is granted by computing the intersection of the role template il_crs_non_member and the permission template of the parent role.
Creates linked roles in the local role folder object for all parent roles and initializes their permission templates. Each permission template is initialized by computing the intersection of the role template il_crs_non_member and the permission template of the parent role.
private
Definition at line 1346 of file class.ilObjCourse.php.
References __getCrsNonMemberTemplateId(), getDefaultCourseRoles(), and ilObject\getRefId().
Referenced by initDefaultRoles().
ilObjCourse::_checkCondition | ( | $a_obj_id, | |
$a_operator, | |||
$a_value, | |||
$a_usr_id = 0 |
|||
) |
Definition at line 1598 of file class.ilObjCourse.php.
References ilParticipants\_hasPassed().
ilObjCourse::_deleteUser | ( | $a_usr_id | ) |
Definition at line 1616 of file class.ilObjCourse.php.
Referenced by ilObjUser\delete().
ilObjCourse::_isActivated | ( | $a_obj_id | ) |
Is activated.
Method is in Access class, since it is needed by Access/ListGUI.
int | id of user |
Definition at line 574 of file class.ilObjCourse.php.
Referenced by ilObjCourseReferenceAccess\_checkAccess(), and ilRepositoryExplorer\isClickable().
|
static |
Check if subscription notification is enabled.
public
int | course_id |
Definition at line 354 of file class.ilObjCourse.php.
ilObjCourse::_lookupAboStatus | ( | $a_id | ) |
Definition at line 466 of file class.ilObjCourse.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjSessionGUI\modifyItemGUI(), ilObjGroupGUI\modifyItemGUI(), and ilObjFolderGUI\modifyItemGUI().
ilObjCourse::_lookupViewMode | ( | $a_id | ) |
Definition at line 453 of file class.ilObjCourse.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLPObjSettings\_checkObjectives(), ilObjCourseGUI\_modifyItemGUI(), ilObjFolderGUI\forwardToTimingsView(), and ilObjGroup\getViewMode().
ilObjCourse::_registrationEnabled | ( | $a_obj_id | ) |
Registration enabled? Method is in Access class, since it is needed by Access/ListGUI.
int | id of user |
Definition at line 586 of file class.ilObjCourse.php.
ilObjCourse::addAdditionalSubItemInformation | ( | & | $a_item_data | ) |
Add additional information to sub item, e.g.
used in courses for timings information etc.
Reimplemented from ilContainer.
Definition at line 1720 of file class.ilObjCourse.php.
References $ilBench, and initCourseItemObject().
ilObjCourse::allowAbo | ( | ) |
Definition at line 605 of file class.ilObjCourse.php.
ilObjCourse::appendMessage | ( | $a_message | ) |
Definition at line 528 of file class.ilObjCourse.php.
References getMessage().
Referenced by validate().
ilObjCourse::cloneAutoGeneratedRoles | ( | $new_obj | ) |
Clone automatic genrated roles (permissions and template permissions)
public
object | new course object |
Definition at line 806 of file class.ilObjCourse.php.
References $ilLog, getDefaultAdminRole(), getDefaultMemberRole(), getDefaultTutorRole(), and ilObject\getRefId().
Referenced by cloneObject().
ilObjCourse::cloneDependencies | ( | $a_target_id, | |
$a_copy_id | |||
) |
Clone object dependencies (start objects, preconditions)
public
int | target ref id of new course |
int | copy id |
Reimplemented from ilContainer.
Definition at line 772 of file class.ilObjCourse.php.
References $start, ilObject\getId(), ilObject\getRefId(), and initCourseItemObject().
ilObjCourse::cloneObject | ( | $a_target_id, | |
$a_copy_id = 0 |
|||
) |
Clone course (no member data)
public
int | target ref_id |
int | copy id |
Reimplemented from ilContainer.
Definition at line 724 of file class.ilObjCourse.php.
References $ilDB, $ilLog, ilCourseDefinedFieldDefinition\_clone(), ilCourseFile\_cloneFiles(), cloneAutoGeneratedRoles(), ilObject\cloneMetaData(), cloneSettings(), ilContainer\getBigIconPath(), ilObject\getId(), ilContainer\getSmallIconPath(), ilContainer\getTinyIconPath(), and IL_CRS_ADMIN.
ilObjCourse::cloneSettings | ( | $new_obj | ) |
Clone entries in settings table.
public
object | new course object |
Definition at line 1060 of file class.ilObjCourse.php.
References enabledWaitingList(), getAboStatus(), getActivationEnd(), getActivationStart(), getActivationType(), getArchiveEnd(), getArchiveStart(), getArchiveType(), getContactConsultation(), getContactEmail(), getContactName(), getContactPhone(), getContactResponsibility(), getImportantInformation(), getNumberOfNextSessions(), getNumberOfPreviousSessions(), ilContainer\getOrderType(), getShowMembers(), getSubscriptionEnd(), getSubscriptionLimitationType(), getSubscriptionMaxMembers(), getSubscriptionNotify(), getSubscriptionPassword(), getSubscriptionStart(), getSubscriptionType(), getSyllabus(), getViewMode(), isSessionLimitEnabled(), and isSubscriptionMembershipLimited().
Referenced by cloneObject().
ilObjCourse::create | ( | $a_upload = false | ) |
Definition at line 616 of file class.ilObjCourse.php.
References __createDefaultSettings(), ilContainer\create(), ilObject\createMetaData(), ilObject\getId(), and prepareAppointments().
ilObjCourse::delete | ( | ) |
delete course and all related data
public
Reimplemented from ilObject.
Definition at line 927 of file class.ilObjCourse.php.
References __deleteSettings(), ilObjCourseGrouping\_deleteAll(), ilCourseObjective\_deleteAll(), ilParticipants\_deleteAllEntries(), ilCourseDefinedFieldDefinition\_deleteByContainer(), ilCourseFile\_deleteByCourse(), ilObject\deleteMetaData(), ilObject\getId(), initCourseArchiveObject(), initCourseItemObject(), and prepareAppointments().
ilObjCourse::enabledObjectiveView | ( | ) |
Definition at line 233 of file class.ilObjCourse.php.
References IL_CRS_VIEW_OBJECTIVE.
ilObjCourse::enabledWaitingList | ( | ) |
Definition at line 238 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::enableSessionLimit | ( | $a_status | ) |
en/disable limited number of sessions
object | $a_status |
Definition at line 266 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::enableSubscriptionMembershipLimitation | ( | $a_status | ) |
enable max members
public
bool | status |
Definition at line 283 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::enableWaitingList | ( | $a_status | ) |
Definition at line 243 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::getAboStatus | ( | ) |
Definition at line 507 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getActivationEnd | ( | ) |
Definition at line 174 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), isActivated(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getActivationStart | ( | ) |
Definition at line 166 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), isActivated(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getActivationType | ( | ) |
Definition at line 152 of file class.ilObjCourse.php.
Referenced by cloneSettings(), updateSettings(), and validate().
ilObjCourse::getActivationUnlimitedStatus | ( | ) |
Definition at line 160 of file class.ilObjCourse.php.
References IL_CRS_ACTIVATION_UNLIMITED.
Referenced by isActivated(), and prepareAppointments().
ilObjCourse::getArchiveEnd | ( | ) |
Definition at line 487 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), isArchived(), updateSettings(), and validate().
ilObjCourse::getArchiveStart | ( | ) |
Definition at line 479 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), isArchived(), updateSettings(), and validate().
ilObjCourse::getArchiveType | ( | ) |
Definition at line 495 of file class.ilObjCourse.php.
References IL_CRS_ARCHIVE_DOWNLOAD, and IL_CRS_ARCHIVE_NONE.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getContactConsultation | ( | ) |
Definition at line 119 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), and updateSettings().
ilObjCourse::getContactEmail | ( | ) |
Definition at line 135 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), updateSettings(), and validateInfoSettings().
ilObjCourse::getContactName | ( | ) |
Definition at line 111 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), and updateSettings().
ilObjCourse::getContactPhone | ( | ) |
Definition at line 127 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), and updateSettings().
ilObjCourse::getContactResponsibility | ( | ) |
Definition at line 143 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), and updateSettings().
ilObjCourse::getCourseItemObject | ( | ) |
get course item object
public
@return | object |
Definition at line 1232 of file class.ilObjCourse.php.
References $items_obj, and initCourseItemObject().
ilObjCourse::getDefaultAdminRole | ( | ) |
Definition at line 1580 of file class.ilObjCourse.php.
References __getLocalRoles(), and ilObjectFactory\getInstanceByObjId().
Referenced by cloneAutoGeneratedRoles().
ilObjCourse::getDefaultCourseRoles | ( | $a_crs_id = "" | ) |
get default course roles, returns the defaultlike create roles il_crs_tutor, il_crs_admin and il_crs_member public
returns | the obj_ids of course specific roles in an associative array. key=descripiton of the role (i.e. "il_crs_tutor", "il_crs_admin", "il_crs_member". value=obj_id of the role |
Definition at line 1481 of file class.ilObjCourse.php.
References ilObject\getRefId().
Referenced by __setCourseStatus().
ilObjCourse::getDefaultMemberRole | ( | ) |
Definition at line 1548 of file class.ilObjCourse.php.
References __getLocalRoles(), and ilObjectFactory\getInstanceByObjId().
Referenced by cloneAutoGeneratedRoles().
ilObjCourse::getDefaultTutorRole | ( | ) |
Definition at line 1564 of file class.ilObjCourse.php.
References __getLocalRoles(), and ilObjectFactory\getInstanceByObjId().
Referenced by cloneAutoGeneratedRoles().
ilObjCourse::getEnableCourseMap | ( | ) |
Get Enable Course Map.
Definition at line 711 of file class.ilObjCourse.php.
References $enablemap.
Referenced by __createDefaultSettings(), and updateSettings().
ilObjCourse::getImportantInformation | ( | ) |
Definition at line 95 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getLatitude | ( | ) |
Get Latitude.
Definition at line 651 of file class.ilObjCourse.php.
References $latitude.
Referenced by __createDefaultSettings(), and updateSettings().
ilObjCourse::getLocalCourseRoles | ( | $a_translate = false | ) |
get ALL local roles of course, also those created and defined afterwards only fetch data once from database.
info is stored in object variable public
Definition at line 1438 of file class.ilObjCourse.php.
References ilObjRole\_getTranslation(), and ilObject\getRefId().
ilObjCourse::getLocationZoom | ( | ) |
Get LocationZoom.
Definition at line 691 of file class.ilObjCourse.php.
References $locationzoom.
Referenced by __createDefaultSettings(), and updateSettings().
ilObjCourse::getLongitude | ( | ) |
Get Longitude.
Definition at line 671 of file class.ilObjCourse.php.
References $longitude.
Referenced by __createDefaultSettings(), and updateSettings().
ilObjCourse::getMembers | ( | ) |
Definition at line 537 of file class.ilObjCourse.php.
ilObjCourse::getMessage | ( | ) |
Definition at line 520 of file class.ilObjCourse.php.
Referenced by appendMessage(), and validate().
ilObjCourse::getNumberOfNextSessions | ( | ) |
Set number of previous sessions.
Definition at line 321 of file class.ilObjCourse.php.
References $session_next.
Referenced by cloneSettings(), getSubItems(), and updateSettings().
ilObjCourse::getNumberOfPreviousSessions | ( | ) |
Set number of previous sessions.
Definition at line 302 of file class.ilObjCourse.php.
References $session_prev.
Referenced by __createDefaultSettings(), cloneSettings(), getSubItems(), and updateSettings().
ilObjCourse::getOfflineStatus | ( | ) |
Definition at line 182 of file class.ilObjCourse.php.
References IL_CRS_ACTIVATION_OFFLINE.
Referenced by isActivated(), and prepareAppointments().
ilObjCourse::getShowMembers | ( | ) |
Definition at line 515 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getSubItems | ( | $a_admin_panel_enabled = false , |
|
$a_include_side_block = false |
|||
) |
Get subitems of container.
bool | $a_admin_panel_enabled,[optional] | |
bool | $a_include_side_block,[optional] |
Reimplemented from ilContainer.
Definition at line 371 of file class.ilObjCourse.php.
References $key, getNumberOfNextSessions(), getNumberOfPreviousSessions(), IL_CAL_DATE, IL_CAL_UNIX, isSessionLimitEnabled(), and ilUtil\sortArray().
ilObjCourse::getSubscriptionEnd | ( | ) |
Definition at line 208 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), inSubscriptionTime(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getSubscriptionLimitationType | ( | ) |
Definition at line 188 of file class.ilObjCourse.php.
Referenced by cloneSettings(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getSubscriptionMaxMembers | ( | ) |
Definition at line 337 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), updateSettings(), and validate().
ilObjCourse::getSubscriptionNotify | ( | ) |
Definition at line 434 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getSubscriptionPassword | ( | ) |
Definition at line 225 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), updateSettings(), and validate().
ilObjCourse::getSubscriptionStart | ( | ) |
Definition at line 200 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), inSubscriptionTime(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getSubscriptionType | ( | ) |
Definition at line 216 of file class.ilObjCourse.php.
References IL_CRS_SUBSCRIPTION_DIRECT.
Referenced by cloneSettings(), updateSettings(), and validate().
ilObjCourse::getSubscriptionUnlimitedStatus | ( | ) |
Definition at line 196 of file class.ilObjCourse.php.
References IL_CRS_SUBSCRIPTION_UNLIMITED.
Referenced by inSubscriptionTime().
ilObjCourse::getSyllabus | ( | ) |
Definition at line 103 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), and updateSettings().
ilObjCourse::getViewMode | ( | ) |
Get container view mode.
Reimplemented from ilContainer.
Definition at line 448 of file class.ilObjCourse.php.
Referenced by cloneSettings(), isArchived(), updateSettings(), and validate().
ilObjCourse::handleECSSettings | ( | $a_export, | |
$a_owner, | |||
$a_mids | |||
) |
Save ECS settings (add- update- deleteResource)
public
bool | Export flag |
int | owner mid |
array | array of participant mids |
Definition at line 1640 of file class.ilObjCourse.php.
ilObjCourse::hasContactData | ( | ) |
Definition at line 911 of file class.ilObjCourse.php.
References getContactConsultation(), getContactEmail(), getContactName(), getContactPhone(), and getContactResponsibility().
ilObjCourse::ilObjCourse | ( | $a_id = 0 , |
|
$a_call_by_reference = true |
|||
) |
Constructor public.
integer | reference_id or object_id |
boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 61 of file class.ilObjCourse.php.
References initCourseMemberObject().
ilObjCourse::initCourseArchiveObject | ( | ) |
Definition at line 1243 of file class.ilObjCourse.php.
Referenced by delete().
ilObjCourse::initCourseItemObject | ( | $a_child_id = 0 | ) |
Definition at line 1214 of file class.ilObjCourse.php.
Referenced by addAdditionalSubItemInformation(), cloneDependencies(), delete(), and getCourseItemObject().
ilObjCourse::initCourseMemberObject | ( | ) |
Definition at line 1207 of file class.ilObjCourse.php.
References ilCourseParticipants\_getInstanceByObjId(), and ilObject\getId().
Referenced by ilObjCourse(), and validate().
ilObjCourse::initDefaultRoles | ( | ) |
init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public
Reimplemented from ilObject.
Definition at line 1257 of file class.ilObjCourse.php.
References $ilDB, $query, $res, __setCourseStatus(), ilObject\createRoleFolder(), DB_FETCHMODE_OBJECT, ilObject\getId(), and ilObject\getRefId().
ilObjCourse::initWaitingList | ( | ) |
Definition at line 1195 of file class.ilObjCourse.php.
References ilObject\getId().
ilObjCourse::inSubscriptionTime | ( | ) |
Definition at line 248 of file class.ilObjCourse.php.
References getSubscriptionEnd(), getSubscriptionStart(), and getSubscriptionUnlimitedStatus().
ilObjCourse::isActivated | ( | $a_check_archive = false | ) |
Definition at line 543 of file class.ilObjCourse.php.
References getActivationEnd(), getActivationStart(), getActivationUnlimitedStatus(), getOfflineStatus(), and isArchived().
ilObjCourse::isArchived | ( | ) |
Definition at line 592 of file class.ilObjCourse.php.
References getArchiveEnd(), getArchiveStart(), getViewMode(), and IL_CRS_VIEW_ARCHIVE.
Referenced by isActivated().
ilObjCourse::isSessionLimitEnabled | ( | ) |
Definition at line 271 of file class.ilObjCourse.php.
References $session_limit.
Referenced by __createDefaultSettings(), cloneSettings(), getSubItems(), and updateSettings().
ilObjCourse::isSubscriptionMembershipLimited | ( | ) |
is membership limited
public
@return |
Definition at line 332 of file class.ilObjCourse.php.
Referenced by cloneSettings(), updateSettings(), and validate().
ilObjCourse::MDUpdateListener | ( | $a_element | ) |
Overwriten Metadata update listener for ECS functionalities.
public
Reimplemented from ilObject.
Definition at line 1668 of file class.ilObjCourse.php.
References $ilLog, and updateECSContent().
|
protected |
Prepare calendar appointments.
protected
string | mode UPDATE|CREATE|DELETE |
Definition at line 1740 of file class.ilObjCourse.php.
References getActivationEnd(), getActivationStart(), getActivationUnlimitedStatus(), ilObject\getLongDescription(), getOfflineStatus(), getSubscriptionEnd(), getSubscriptionLimitationType(), getSubscriptionStart(), ilObject\getTitle(), IL_CAL_TRANSLATION_SYSTEM, IL_CAL_UNIX, and IL_CRS_SUBSCRIPTION_LIMITED.
Referenced by create(), delete(), and update().
ilObjCourse::read | ( | $a_force_db = false | ) |
read object data from db into object
boolean | public |
Reimplemented from ilObject.
Definition at line 610 of file class.ilObjCourse.php.
References __readSettings(), and ilContainer\read().
ilObjCourse::setAboStatus | ( | $a_status | ) |
Definition at line 503 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setActivationEnd | ( | $a_value | ) |
Definition at line 178 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setActivationStart | ( | $a_value | ) |
Definition at line 170 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setActivationType | ( | $a_type | ) |
Definition at line 156 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setArchiveEnd | ( | $a_value | ) |
Definition at line 491 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setArchiveStart | ( | $a_value | ) |
Definition at line 483 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setArchiveType | ( | $a_value | ) |
Definition at line 499 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactConsultation | ( | $a_value | ) |
Definition at line 123 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactEmail | ( | $a_value | ) |
Definition at line 139 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactName | ( | $a_cn | ) |
Definition at line 115 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactPhone | ( | $a_value | ) |
Definition at line 131 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactResponsibility | ( | $a_value | ) |
Definition at line 147 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setEnableCourseMap | ( | $a_enablemap | ) |
Set Enable Course Map.
boolean | $a_enablemap | Enable Course Map |
Definition at line 701 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setImportantInformation | ( | $a_info | ) |
Definition at line 99 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setLatitude | ( | $a_latitude | ) |
Set Latitude.
string | $a_latitude | Latitude |
Definition at line 641 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setLocationZoom | ( | $a_locationzoom | ) |
Set LocationZoom.
int | $a_locationzoom | LocationZoom |
Definition at line 681 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setLongitude | ( | $a_longitude | ) |
Set Longitude.
string | $a_longitude | Longitude |
Definition at line 661 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setMessage | ( | $a_message | ) |
Definition at line 524 of file class.ilObjCourse.php.
Referenced by validate().
ilObjCourse::setNumberOfNextSessions | ( | $a_num | ) |
Set number of previous sessions.
int | $a_num |
Definition at line 312 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setNumberOfPreviousSessions | ( | $a_num | ) |
Set number of previous sessions.
int | $a_num |
Definition at line 293 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setShowMembers | ( | $a_status | ) |
Definition at line 511 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionEnd | ( | $a_value | ) |
Definition at line 212 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionLimitationType | ( | $a_type | ) |
Definition at line 192 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionMaxMembers | ( | $a_value | ) |
Definition at line 341 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionNotify | ( | $a_value | ) |
Definition at line 439 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionPassword | ( | $a_value | ) |
Definition at line 229 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionStart | ( | $a_value | ) |
Definition at line 204 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionType | ( | $a_value | ) |
Definition at line 221 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSyllabus | ( | $a_syllabus | ) |
Definition at line 107 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setViewMode | ( | $a_mode | ) |
Definition at line 444 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::update | ( | ) |
update complete object
Reimplemented from ilContainer.
Definition at line 980 of file class.ilObjCourse.php.
References $ilLog, ilObject\getId(), ilContainer\getOrderType(), prepareAppointments(), ilObject\updateMetaData(), and updateSettings().
ilObjCourse::updateECSContent | ( | ) |
Update ECS Content.
public
Definition at line 1691 of file class.ilObjCourse.php.
References $ilLog, and ilECSSettings\_getInstance().
Referenced by MDUpdateListener().
ilObjCourse::updateSettings | ( | ) |
Definition at line 1001 of file class.ilObjCourse.php.
References $ilDB, $query, $res, __createDefaultSettings(), enabledWaitingList(), getAboStatus(), getActivationEnd(), getActivationStart(), getActivationType(), getArchiveEnd(), getArchiveStart(), getArchiveType(), getContactConsultation(), getContactEmail(), getContactName(), getContactPhone(), getContactResponsibility(), getEnableCourseMap(), ilObject\getId(), getImportantInformation(), getLatitude(), getLocationZoom(), getLongitude(), getNumberOfNextSessions(), getNumberOfPreviousSessions(), getShowMembers(), getSubscriptionEnd(), getSubscriptionLimitationType(), getSubscriptionMaxMembers(), getSubscriptionNotify(), getSubscriptionPassword(), getSubscriptionStart(), getSubscriptionType(), getSyllabus(), getViewMode(), isSessionLimitEnabled(), and isSubscriptionMembershipLimited().
Referenced by update().
ilObjCourse::validate | ( | ) |
Definition at line 844 of file class.ilObjCourse.php.
References appendMessage(), getActivationEnd(), getActivationStart(), getActivationType(), getArchiveEnd(), getArchiveStart(), getMessage(), getSubscriptionEnd(), getSubscriptionLimitationType(), getSubscriptionMaxMembers(), getSubscriptionPassword(), getSubscriptionStart(), getSubscriptionType(), getViewMode(), IL_CRS_ACTIVATION_LIMITED, IL_CRS_SUBSCRIPTION_LIMITED, IL_CRS_SUBSCRIPTION_PASSWORD, IL_CRS_VIEW_ARCHIVE, initCourseMemberObject(), isSubscriptionMembershipLimited(), and setMessage().
ilObjCourse::validateInfoSettings | ( | ) |
Definition at line 892 of file class.ilObjCourse.php.
References $error, $ilErr, getContactEmail(), ilObjUser\getUserIdByLogin(), and ilUtil\is_email().
ilObjCourse::$archives_obj |
Definition at line 42 of file class.ilObjCourse.php.
|
private |
Definition at line 49 of file class.ilObjCourse.php.
Referenced by getEnableCourseMap().
ilObjCourse::$items_obj |
Definition at line 43 of file class.ilObjCourse.php.
Referenced by getCourseItemObject().
|
private |
Definition at line 46 of file class.ilObjCourse.php.
Referenced by getLatitude().
|
private |
Definition at line 48 of file class.ilObjCourse.php.
Referenced by getLocationZoom().
|
private |
Definition at line 47 of file class.ilObjCourse.php.
Referenced by getLongitude().
ilObjCourse::$members_obj |
Definition at line 41 of file class.ilObjCourse.php.
|
private |
Definition at line 51 of file class.ilObjCourse.php.
Referenced by isSessionLimitEnabled().
|
private |
Definition at line 53 of file class.ilObjCourse.php.
Referenced by getNumberOfNextSessions().
|
private |
Definition at line 52 of file class.ilObjCourse.php.
Referenced by getNumberOfPreviousSessions().
const ilObjCourse::CAL_ACTIVATION_END = 4 |
Definition at line 39 of file class.ilObjCourse.php.
const ilObjCourse::CAL_ACTIVATION_START = 3 |
Definition at line 38 of file class.ilObjCourse.php.
const ilObjCourse::CAL_REG_END = 2 |
Definition at line 37 of file class.ilObjCourse.php.
const ilObjCourse::CAL_REG_START = 1 |
Definition at line 36 of file class.ilObjCourse.php.