ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilObjCourse. More...
Public Member Functions | |
__construct ($a_id=0, $a_call_by_reference=true) | |
Constructor public. More... | |
getShowMembersExport () | |
setShowMembersExport ($a_mem_export) | |
getRegistrationAccessCode () | |
get access code More... | |
setRegistrationAccessCode ($a_code) | |
Set refistration access code. More... | |
isRegistrationAccessCodeEnabled () | |
Check if access code is enabled. More... | |
enableRegistrationAccessCode ($a_status) | |
En/disable registration access code. More... | |
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) | |
getActivationUnlimitedStatus () | |
get activation unlimited no start or no end More... | |
getActivationStart () | |
setActivationStart ($a_value) | |
getActivationEnd () | |
setActivationEnd ($a_value) | |
setActivationVisibility ($a_value) | |
getActivationVisibility () | |
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 More... | |
isSessionLimitEnabled () | |
enableSubscriptionMembershipLimitation ($a_status) | |
enable max members More... | |
setNumberOfPreviousSessions ($a_num) | |
Set number of previous sessions. More... | |
getNumberOfPreviousSessions () | |
Set number of previous sessions. More... | |
setNumberOfNextSessions ($a_num) | |
Set number of previous sessions. More... | |
getNumberOfNextSessions () | |
Set number of previous sessions. More... | |
isSubscriptionMembershipLimited () | |
is membership limited More... | |
getSubscriptionMaxMembers () | |
setSubscriptionMaxMembers ($a_value) | |
getSubItems ($a_admin_panel_enabled=false, $a_include_side_block=false, $a_get_single=0) | |
Get subitems of container. More... | |
getSubscriptionNotify () | |
setSubscriptionNotify ($a_value) | |
setViewMode ($a_mode) | |
getViewMode () | |
setTimingMode ($a_mode) | |
getTimingMode () | |
getArchiveStart () | |
setArchiveStart ($a_value) | |
getArchiveEnd () | |
setArchiveEnd ($a_value) | |
getArchiveType () | |
setArchiveType ($a_value) | |
setAboStatus ($a_status) | |
getAboStatus () | |
setShowMembers ($a_status) | |
getShowMembers () | |
setMailToMembersType ($a_type) | |
Set mail to members type. More... | |
getMailToMembersType () | |
Get mail to members type. More... | |
getMessage () | |
setMessage ($a_message) | |
appendMessage ($a_message) | |
isActivated () | |
Check if course is active and not offline. More... | |
allowAbo () | |
read () | |
create ($a_upload=false) | |
setLatitude ($a_latitude) | |
Set Latitude. More... | |
getLatitude () | |
Get Latitude. More... | |
setLongitude ($a_longitude) | |
Set Longitude. More... | |
getLongitude () | |
Get Longitude. More... | |
setLocationZoom ($a_locationzoom) | |
Set LocationZoom. More... | |
getLocationZoom () | |
Get LocationZoom. More... | |
setEnableCourseMap ($a_enablemap) | |
Set Enable Course Map. More... | |
getEnableMap () | |
Type independent wrapper. More... | |
getEnableCourseMap () | |
Get Enable Course Map. More... | |
setCourseStart (ilDate $a_value=null) | |
getCourseStart () | |
setCourseEnd (ilDate $a_value=null) | |
getCourseEnd () | |
setCancellationEnd (ilDate $a_value=null) | |
getCancellationEnd () | |
setSubscriptionMinMembers ($a_value) | |
getSubscriptionMinMembers () | |
setWaitingListAutoFill ($a_value) | |
hasWaitingListAutoFill () | |
cloneObject ($a_target_id, $a_copy_id=0, $a_omit_tree=false) | |
Clone course (no member data) More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies (start objects, preconditions) More... | |
cloneAutoGeneratedRoles ($new_obj) | |
Clone automatic genrated roles (permissions and template permissions) More... | |
validate () | |
validateInfoSettings () | |
hasContactData () | |
delete () | |
delete course and all related data More... | |
update () | |
update complete object More... | |
updateSettings () | |
cloneSettings ($new_obj) | |
Clone entries in settings table. More... | |
__createDefaultSettings () | |
__readSettings () | |
initWaitingList () | |
getMemberObject () | |
Get course member object. More... | |
getMembersObject () | |
initDefaultRoles () | |
setParentRolePermissions ($a_parent_ref) | |
This method is called before "initDefaultRoles". More... | |
__getCrsNonMemberTemplateId () | |
get course non-member template private More... | |
getLocalCourseRoles ($a_translate=false) | |
get ALL local roles of course, also those created and defined afterwards only fetch data once from database. More... | |
getDefaultCourseRoles ($a_crs_id="") | |
get default course roles, returns the defaultlike create roles il_crs_tutor, il_crs_admin and il_crs_member public More... | |
__getLocalRoles () | |
__deleteSettings () | |
getDefaultMemberRole () | |
getDefaultTutorRole () | |
getDefaultAdminRole () | |
MDUpdateListener ($a_element) | |
Overwriten Metadata update listener for ECS functionalities. More... | |
addAdditionalSubItemInformation (&$a_item_data) | |
Add additional information to sub item, e.g. More... | |
register ($a_user_id, $a_role=ilCourseConstants::CRS_MEMBER, $a_force_registration=false) | |
getAutoNotification () | |
Returns automatic notification status from $this->auto_notification. More... | |
setAutoNotification ($value) | |
Sets automatic notification status in $this->auto_notification, using given $status. More... | |
setStatusDetermination ($a_value) | |
Set status determination mode. More... | |
getStatusDetermination () | |
Get status determination mode. More... | |
syncMembersStatusWithLP () | |
Set course status for all members by lp status. More... | |
checkLPStatusSync ($a_member_id) | |
sync course status from lp More... | |
getOrderType () | |
handleAutoFill () | |
Handle course auto fill. More... | |
Public Member Functions inherited from ilContainer | |
__construct ($a_id=0, $a_reference=true) | |
getObjectTranslation () | |
Get object translation. More... | |
setObjectTranslation (ilObjectTranslation $obj_trans) | |
Get object translation. More... | |
createContainerDirectory () | |
Create directory for the container. More... | |
getContainerDirectory () | |
Get the container directory. More... | |
setHiddenFilesFound ($a_hiddenfilesfound) | |
Set Found hidden files (set by getSubItems). More... | |
getHiddenFilesFound () | |
Get Found hidden files (set by getSubItems). More... | |
getStyleSheetId () | |
get ID of assigned style sheet object More... | |
setStyleSheetId ($a_style_id) | |
set ID of assigned style sheet object More... | |
setNewsTimeline ($a_val) | |
Set news timeline. More... | |
getNewsTimeline () | |
Get news timeline. More... | |
setNewsTimelineAutoEntries ($a_val) | |
Set news timeline auto entries. More... | |
getNewsTimelineAutoEntries () | |
Get news timeline auto entries. More... | |
setNewsTimelineLandingPage ($a_val) | |
Set news timline is landing page. More... | |
getNewsTimelineLandingPage () | |
Get news timline is landing page. More... | |
isNewsTimelineEffective () | |
Is news timeline effective? More... | |
isNewsTimelineLandingPageEffective () | |
Is news timeline landing page effective? More... | |
setNewsBlockActivated ($a_val) | |
Set news block activated. More... | |
getNewsBlockActivated () | |
Get news block activated. More... | |
setUseNews ($a_val) | |
Set use news. More... | |
getUseNews () | |
Get use news. More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies (container sorting) More... | |
cloneAllObject ($session_id, $client_id, $new_type, $ref_id, $clone_source, $options, $soap_call=false, $a_submode=1) | |
clone all objects according to this container More... | |
delete () | |
delete category and all related data More... | |
getViewMode () | |
Get container view mode. More... | |
getOrderType () | |
Get order type default implementation. More... | |
setOrderType ($a_value) | |
getSubItems ($a_admin_panel_enabled=false, $a_include_side_block=false, $a_get_single=0) | |
Get subitems of container. More... | |
gotItems () | |
Check whether we got any items. More... | |
addAdditionalSubItemInformation (&$object) | |
Add additional information to sub item, e.g. More... | |
getGroupedObjTypes () | |
Get grouped repository object types. More... | |
enablePageEditing () | |
Check whether page editing is allowed for container. More... | |
create () | |
Create. More... | |
putInTree ($a_parent_ref) | |
update () | |
Update. More... | |
read () | |
read More... | |
readContainerSettings () | |
Read container settings. More... | |
removeTranslations () | |
Remove all translations of container. More... | |
deleteTranslation ($a_lang) | |
Delete translation. More... | |
addTranslation ($a_title, $a_desc, $a_lang, $a_lang_default) | |
Add translation. More... | |
Public Member Functions inherited from ilObject | |
__construct ($a_id=0, $a_reference=true) | |
Constructor public. More... | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) More... | |
read () | |
read object data from db into object More... | |
getId () | |
get object id public More... | |
setId ($a_id) | |
set object id public More... | |
setRefId ($a_id) | |
set reference id public More... | |
getRefId () | |
get reference id public More... | |
getType () | |
get object type public More... | |
setType ($a_type) | |
set object type public More... | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions More... | |
getTitle () | |
get object title public More... | |
getUntranslatedTitle () | |
get untranslated object title public More... | |
setTitle ($a_title) | |
set object title More... | |
getDescription () | |
get object description More... | |
setDescription ($a_desc) | |
set object description More... | |
getLongDescription () | |
get object long description (stored in object_description) More... | |
getImportId () | |
get import id More... | |
setImportId ($a_import_id) | |
set import id More... | |
setOfflineStatus ($a_status) | |
Set offline status. More... | |
getOfflineStatus () | |
Get offline status. More... | |
supportsOfflineHandling () | |
Check whether object supports offline handling. More... | |
getOwner () | |
get object owner More... | |
getOwnerName () | |
setOwner ($a_owner) | |
set object owner More... | |
getCreateDate () | |
get create date public More... | |
getLastUpdateDate () | |
get last update date public More... | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. More... | |
create () | |
create More... | |
update () | |
update object in db More... | |
MDUpdateListener ($a_element) | |
Meta data update listener. More... | |
createMetaData () | |
create meta data entry More... | |
updateMetaData () | |
update meta data entry More... | |
deleteMetaData () | |
delete meta data entry More... | |
updateOwner () | |
update owner of object in db More... | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? More... | |
setPermissions ($a_parent_ref) | |
set permissions of object More... | |
setParentRolePermissions ($a_parent_ref) | |
Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More... | |
createReference () | |
creates reference for object More... | |
countReferences () | |
count references of object More... | |
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 More... | |
applyDidacticTemplate ($a_tpl_id) | |
Apply template. More... | |
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. More... | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. More... | |
cloneMetaData ($target_obj) | |
Copy meta data. More... | |
getPossibleSubObjects ($a_filter=true) | |
get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More... | |
Public Member Functions inherited from ilMembershipRegistrationCodes | |
register ($a_user_id) | |
Register an user. More... | |
Static Public Member Functions | |
static | lookupShowMembersEnabled ($a_obj_id) |
Check if show member is enabled. More... | |
static | _isSubscriptionNotificationEnabled ($a_course_id) |
Check if subscription notification is enabled. More... | |
static | lookupTimingMode ($a_obj_id) |
static | _lookupViewMode ($a_id) |
lookup view mode of container More... | |
static | _lookupAboStatus ($a_id) |
static | _isActivated ($a_obj_id) |
Is activated. More... | |
static | _registrationEnabled ($a_obj_id) |
Registration enabled? Method is in Access class, since it is needed by Access/ListGUI. More... | |
static | lookupCourseNonMemberTemplatesId () |
Lookup course non member id. More... | |
static | _deleteUser ($a_usr_id) |
static | lookupObjectsByCode ($a_code) |
static | mayLeave ($a_course_id, $a_user_id=null, &$a_date=null) |
static | findCoursesWithNotEnoughMembers () |
Minimum members check type $ilDB. More... | |
Static Public Member Functions inherited from ilContainer | |
static | _getContainerDirectory ($a_id) |
Get the container directory. More... | |
static | _lookupContainerSetting ($a_id, $a_keyword, $a_default_value=null) |
Lookup a container setting. More... | |
static | _writeContainerSetting ($a_id, $a_keyword, $a_value) |
static | _getContainerSettings ($a_id) |
static | _deleteContainerSettings ($a_id, $a_keyword=null, $a_keyword_like=false) |
static | _exportContainerSettings (ilXmlWriter $a_xml, $a_obj_id) |
static | getCompleteDescriptions (array $objects) |
overwrites description fields to long or short description in an assoc array keys needed (obj_id and description) More... | |
Static Public Member Functions inherited from ilObject | |
static | _lookupObjIdByImportId ($a_import_id) |
static | _lookupImportId ($a_obj_id) |
static | _lookupOwnerName ($a_owner_id) |
lookup owner name for owner id More... | |
static | _getIdForImportId ($a_import_id) |
get current object id for import id (static) More... | |
static | _getAllReferences ($a_id) |
get all reference ids of object More... | |
static | _lookupTitle ($a_id) |
lookup object title More... | |
static | lookupOfflineStatus ($a_obj_id) |
Lookup offline status using objectDataCache. More... | |
static | _lookupOwner ($a_id) |
lookup object owner More... | |
static | _getIdsForTitle ($title, $type='', $partialmatch=false) |
static | _lookupDescription ($a_id) |
lookup object description More... | |
static | _lookupLastUpdate ($a_id, $a_as_string=false) |
lookup last update More... | |
static | _getLastUpdateOfObjects ($a_objs) |
Get last update for a set of media objects. More... | |
static | _lookupObjId ($a_id) |
static | _setDeletedDate ($a_ref_id) |
only called in ilTree::saveSubTree More... | |
static | setDeletedDates ($a_ref_ids) |
Set deleted date. More... | |
static | _resetDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _lookupDeletedDate ($a_ref_id) |
only called in ilObjectGUI::insertSavedNodes More... | |
static | _writeTitle ($a_obj_id, $a_title) |
write title to db (static) More... | |
static | _writeDescription ($a_obj_id, $a_desc) |
write description to db (static) More... | |
static | _writeImportId ($a_obj_id, $a_import_id) |
write import id to db (static) More... | |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type More... | |
static | _isInTrash ($a_ref_id) |
checks wether object is in trash More... | |
static | _hasUntrashedReference ($a_obj_id) |
checks wether an object has at least one reference that is not in trash More... | |
static | _lookupObjectId ($a_ref_id) |
lookup object id More... | |
static | _getObjectsDataForType ($a_type, $a_omit_trash=false) |
get all objects of a certain type More... | |
static | _exists ($a_id, $a_reference=false, $a_type=null) |
checks if an object exists in object_data More... | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. More... | |
static | _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true) |
Prepare copy wizard object selection. More... | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. More... | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. More... | |
static | getLongDescriptions (array $a_obj_ids) |
Get long description data. More... | |
static | getAllOwnedRepositoryObjects ($a_user_id) |
Get all ids of objects user owns. More... | |
static | fixMissingTitles ($a_type, array &$a_obj_title_map) |
Try to fix missing object titles. More... | |
static | _lookupCreationDate ($a_id) |
Lookup creation date. More... | |
static | hasAutoRating ($a_type, $a_ref_id) |
Check if auto rating is active for parent group/course. More... | |
Protected Member Functions | |
initCourseMemberObject () | |
Init course member object ilObjUser $ilUser. More... | |
initCourseMembersObject () | |
Init course member object ilObjUser $ilUser. More... | |
prepareAppointments ($a_mode='create') | |
Prepare calendar appointments. More... | |
Protected Attributes | |
$course_logger = null | |
$crs_start | |
$crs_end | |
$leave_end | |
$min_members | |
$auto_fill_from_waiting | |
$member_export = false | |
Protected Attributes inherited from ilContainer | |
$db | |
$log | |
$access | |
$error | |
$rbacsystem | |
$tree | |
$user | |
$obj_definition | |
$order_type = 0 | |
$hiddenfilesfound = false | |
$news_timeline = false | |
$news_timeline_auto_entries = false | |
$setting | |
$obj_trans = null | |
Protected Attributes inherited from ilObject | |
$objDefinition | |
$db | |
$log | |
$error | |
$tree | |
$app_event_handler | |
$rbacadmin | |
$rbacreview | |
Private Attributes | |
$member_obj = null | |
$members_obj = null | |
$latitude = '' | |
$longitude = '' | |
$locationzoom = 0 | |
$enablemap = 0 | |
$session_limit = 0 | |
$session_prev = -1 | |
$session_next = -1 | |
$reg_access_code = '' | |
$reg_access_code_enabled = false | |
$status_dt = null | |
$mail_members = ilCourseConstants::MAIL_ALLOWED_ALL | |
$timing_mode = ilCourseConstants::IL_CRS_VIEW_TIMING_ABSOLUTE | |
$auto_notification = true | |
Additional Inherited Members | |
Static Public Attributes inherited from ilContainer | |
static | $data_preloaded = false |
ilObjCourse::__construct | ( | $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 105 of file class.ilObjCourse.php.
References $GLOBALS, and setStatusDetermination().
ilObjCourse::__createDefaultSettings | ( | ) |
Definition at line 1394 of file class.ilObjCourse.php.
References $DIC, $ilDB, $query, $res, __readSettings(), ilMembershipRegistrationCodeUtils\generateCode(), getAutoNotification(), getContactConsultation(), getContactEmail(), getContactName(), getContactPhone(), getContactResponsibility(), getEnableCourseMap(), ilObject\getId(), getLatitude(), getLocationZoom(), getLongitude(), getMailToMembersType(), getNumberOfPreviousSessions(), getRegistrationAccessCode(), getStatusDetermination(), getSubscriptionEnd(), getSubscriptionMaxMembers(), getSubscriptionPassword(), getSubscriptionStart(), getSyllabus(), IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_DIRECT, IL_CRS_VIEW_TIMING_ABSOLUTE, isRegistrationAccessCodeEnabled(), isSessionLimitEnabled(), setRegistrationAccessCode(), and ilContainer\SORT_MANUAL.
Referenced by create(), and updateSettings().
ilObjCourse::__deleteSettings | ( | ) |
Definition at line 1785 of file class.ilObjCourse.php.
References $DIC, $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 1661 of file class.ilObjCourse.php.
References $DIC, $ilDB, $res, $row, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by setParentRolePermissions().
ilObjCourse::__getLocalRoles | ( | ) |
Definition at line 1774 of file class.ilObjCourse.php.
References $DIC, ilObject\$rbacreview, and ilObject\getRefId().
Referenced by getDefaultAdminRole(), getDefaultMemberRole(), and getDefaultTutorRole().
ilObjCourse::__readSettings | ( | ) |
Definition at line 1456 of file class.ilObjCourse.php.
References $DIC, $ilDB, $query, $res, $row, ilPrivacySettings\_getInstance(), enableRegistrationAccessCode(), enableSessionLimit(), enableSubscriptionMembershipLimitation(), enableWaitingList(), ilDBConstants\FETCHMODE_OBJECT, ilObject\getId(), ilObjectActivation\getItem(), IL_CAL_UNIX, setAboStatus(), setActivationEnd(), setActivationStart(), setActivationVisibility(), setAutoNotification(), setCancellationEnd(), setContactConsultation(), setContactEmail(), setContactName(), setContactPhone(), setContactResponsibility(), setCourseEnd(), setCourseStart(), setEnableCourseMap(), setImportantInformation(), setLatitude(), setLocationZoom(), setLongitude(), setMailToMembersType(), setNumberOfNextSessions(), setNumberOfPreviousSessions(), ilObject\setOfflineStatus(), setRegistrationAccessCode(), setShowMembers(), setShowMembersExport(), setStatusDetermination(), setSubscriptionEnd(), setSubscriptionLimitationType(), setSubscriptionMaxMembers(), setSubscriptionMinMembers(), setSubscriptionNotify(), setSubscriptionPassword(), setSubscriptionStart(), setSubscriptionType(), setSyllabus(), setTimingMode(), setViewMode(), setWaitingListAutoFill(), and ilObjectActivation\TIMINGS_ACTIVATION.
Referenced by __createDefaultSettings(), and read().
|
static |
Definition at line 1838 of file class.ilObjCourse.php.
References ilCourseLMHistory\_deleteUser(), ilParticipants\_deleteUser(), and ilLOUserResults\deleteResultsForUser().
Referenced by ilObjUser\delete().
|
static |
Is activated.
Method is in Access class, since it is needed by Access/ListGUI.
int | id of user |
Definition at line 755 of file class.ilObjCourse.php.
References ilObjCourseAccess\_isActivated().
Referenced by ilStartUpGUI\_checkGoto(), and ilObjCourseGUI\executeCommand().
|
static |
|
static |
Definition at line 640 of file class.ilObjCourse.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjSessionGUI\modifyItemGUI(), ilObjGroupGUI\modifyItemGUI(), and ilObjFolderGUI\modifyItemGUI().
|
static |
lookup view mode of container
int | $a_id |
Definition at line 626 of file class.ilObjCourse.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjCourseGUI\_modifyItemGUI(), ilCourseLP\checkObjectives(), ilCalendarScheduleFilterTimings\enabledCourseTimings(), ilObjFolderGUI\forwardToTimingsView(), ilPortfolioPageGUI\getCoursesOfUser(), and ilObjGroup\translateViewMode().
|
static |
Registration enabled? Method is in Access class, since it is needed by Access/ListGUI.
int | id of user |
Definition at line 767 of file class.ilObjCourse.php.
References ilObjCourseAccess\_registrationEnabled().
Referenced by ilStartUpGUI\_checkGoto(), and ilObjCourseGUI\executeCommand().
ilObjCourse::addAdditionalSubItemInformation | ( | & | $a_item_data | ) |
Add additional information to sub item, e.g.
used in courses for timings information etc.
Definition at line 1884 of file class.ilObjCourse.php.
References ilObjectActivation\addAdditionalSubItemInformation().
ilObjCourse::allowAbo | ( | ) |
Definition at line 774 of file class.ilObjCourse.php.
ilObjCourse::appendMessage | ( | $a_message | ) |
Definition at line 722 of file class.ilObjCourse.php.
References getMessage().
Referenced by validate().
ilObjCourse::checkLPStatusSync | ( | $a_member_id | ) |
sync course status from lp
as lp data is not deleted on course exit new members may already have lp completed
int | $a_member_id |
Definition at line 2177 of file class.ilObjCourse.php.
References ilObjUserTracking\_enabledLearningProgress(), ilLPStatus\_lookupStatus(), ilObject\getId(), getMembersObject(), getStatusDetermination(), ilLPStatus\LP_STATUS_COMPLETED_NUM, and STATUS_DETERMINATION_LP.
Referenced by handleAutoFill().
ilObjCourse::cloneAutoGeneratedRoles | ( | $new_obj | ) |
Clone automatic genrated roles (permissions and template permissions)
public
object | new course object |
Definition at line 1072 of file class.ilObjCourse.php.
References $DIC, $ilLog, ilObject\$rbacadmin, ilObject\$rbacreview, 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 |
Definition at line 1033 of file class.ilObjCourse.php.
References $start, ilObjCourseGrouping\_getGroupings(), ilObject\_lookupObjId(), ilObjectActivation\cloneDependencies(), ilLOSettings\cloneSettings(), ilObject\getId(), ilLoggerFactory\getLogger(), and ilObject\getRefId().
ilObjCourse::cloneObject | ( | $a_target_id, | |
$a_copy_id = 0 , |
|||
$a_omit_tree = false |
|||
) |
Clone course (no member data)
public
int | target ref_id |
int | copy id |
Definition at line 963 of file class.ilObjCourse.php.
References $DIC, $factory, $ilDB, $ilUser, ilCourseDefinedFieldDefinition\_clone(), ilCourseFile\_cloneFiles(), ilCopyWizardOptions\_getInstance(), cloneAutoGeneratedRoles(), ilObject\cloneMetaData(), cloneSettings(), ilObject\getId(), IL_CRS_ADMIN, and ilObject\setOfflineStatus().
ilObjCourse::cloneSettings | ( | $new_obj | ) |
Clone entries in settings table.
public
ilObjCourse | new course object |
Definition at line 1340 of file class.ilObjCourse.php.
References enabledWaitingList(), ilMembershipRegistrationCodeUtils\generateCode(), getAboStatus(), getActivationEnd(), getActivationStart(), getActivationVisibility(), getAutoNotification(), getCancellationEnd(), getContactConsultation(), getContactEmail(), getContactName(), getContactPhone(), getContactResponsibility(), getCourseEnd(), getCourseStart(), getEnableCourseMap(), getImportantInformation(), getLatitude(), getLocationZoom(), getLongitude(), getMailToMembersType(), getNumberOfNextSessions(), getNumberOfPreviousSessions(), ilObject\getOfflineStatus(), getOrderType(), getShowMembers(), getShowMembersExport(), getStatusDetermination(), getSubscriptionEnd(), getSubscriptionLimitationType(), getSubscriptionMaxMembers(), getSubscriptionMinMembers(), getSubscriptionNotify(), getSubscriptionPassword(), getSubscriptionStart(), getSubscriptionType(), getSyllabus(), getTimingMode(), getViewMode(), hasWaitingListAutoFill(), isRegistrationAccessCodeEnabled(), isSessionLimitEnabled(), and isSubscriptionMembershipLimited().
Referenced by cloneObject().
ilObjCourse::create | ( | $a_upload = false | ) |
Definition at line 791 of file class.ilObjCourse.php.
References $DIC, __createDefaultSettings(), ilObject\createMetaData(), ilObject\getId(), and prepareAppointments().
ilObjCourse::delete | ( | ) |
delete course and all related data
public
Definition at line 1181 of file class.ilObjCourse.php.
References $DIC, __deleteSettings(), ilObjCourseGrouping\_deleteAll(), ilCourseObjective\_deleteAll(), ilParticipants\_deleteAllEntries(), ilCourseDefinedFieldDefinition\_deleteByContainer(), ilCourseFile\_deleteByCourse(), ilObject\deleteMetaData(), ilObject\getId(), and prepareAppointments().
ilObjCourse::enabledObjectiveView | ( | ) |
Definition at line 331 of file class.ilObjCourse.php.
References IL_CRS_VIEW_OBJECTIVE.
Referenced by getOrderType().
ilObjCourse::enabledWaitingList | ( | ) |
Definition at line 336 of file class.ilObjCourse.php.
Referenced by cloneSettings(), handleAutoFill(), register(), updateSettings(), and validate().
ilObjCourse::enableRegistrationAccessCode | ( | $a_status | ) |
En/disable registration access code.
object | $a_status |
Definition at line 191 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::enableSessionLimit | ( | $a_status | ) |
en/disable limited number of sessions
object | $a_status |
Definition at line 362 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::enableSubscriptionMembershipLimitation | ( | $a_status | ) |
enable max members
public
bool | status |
Definition at line 379 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::enableWaitingList | ( | $a_status | ) |
Definition at line 341 of file class.ilObjCourse.php.
Referenced by __readSettings().
|
static |
Minimum members check type $ilDB.
Definition at line 2278 of file class.ilObjCourse.php.
References $GLOBALS, $ilDB, $res, $row, ilContainer\$tree, ilObject\_getAllReferences(), IL_CAL_DAY, and IL_CAL_UNIX.
Referenced by ilMembershipCronMinMembers\getCourses().
ilObjCourse::getAboStatus | ( | ) |
Definition at line 682 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getActivationEnd | ( | ) |
Definition at line 269 of file class.ilObjCourse.php.
Referenced by cloneSettings(), getActivationUnlimitedStatus(), isActivated(), prepareAppointments(), and updateSettings().
ilObjCourse::getActivationStart | ( | ) |
Definition at line 261 of file class.ilObjCourse.php.
Referenced by cloneSettings(), getActivationUnlimitedStatus(), isActivated(), prepareAppointments(), and updateSettings().
ilObjCourse::getActivationUnlimitedStatus | ( | ) |
get activation unlimited no start or no end
Definition at line 257 of file class.ilObjCourse.php.
References getActivationEnd(), and getActivationStart().
Referenced by isActivated(), and prepareAppointments().
ilObjCourse::getActivationVisibility | ( | ) |
Definition at line 281 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getArchiveEnd | ( | ) |
Definition at line 662 of file class.ilObjCourse.php.
ilObjCourse::getArchiveStart | ( | ) |
Definition at line 654 of file class.ilObjCourse.php.
ilObjCourse::getArchiveType | ( | ) |
Definition at line 670 of file class.ilObjCourse.php.
References IL_CRS_ARCHIVE_DOWNLOAD, and IL_CRS_ARCHIVE_NONE.
ilObjCourse::getAutoNotification | ( | ) |
Returns automatic notification status from $this->auto_notification.
Definition at line 2111 of file class.ilObjCourse.php.
References $auto_notification.
Referenced by __createDefaultSettings(), cloneSettings(), and updateSettings().
ilObjCourse::getCancellationEnd | ( | ) |
Definition at line 927 of file class.ilObjCourse.php.
References $leave_end.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getContactConsultation | ( | ) |
Definition at line 220 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), and updateSettings().
ilObjCourse::getContactEmail | ( | ) |
Definition at line 236 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), updateSettings(), and validateInfoSettings().
ilObjCourse::getContactName | ( | ) |
Definition at line 212 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), and updateSettings().
ilObjCourse::getContactPhone | ( | ) |
Definition at line 228 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), and updateSettings().
ilObjCourse::getContactResponsibility | ( | ) |
Definition at line 244 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), hasContactData(), and updateSettings().
ilObjCourse::getCourseEnd | ( | ) |
Definition at line 917 of file class.ilObjCourse.php.
References $crs_end.
Referenced by cloneSettings(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getCourseStart | ( | ) |
Definition at line 907 of file class.ilObjCourse.php.
References $crs_start.
Referenced by cloneSettings(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getDefaultAdminRole | ( | ) |
Definition at line 1824 of file class.ilObjCourse.php.
References __getLocalRoles(), ilObjectFactory\getInstanceByObjId(), and ilObject\getRefId().
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 1736 of file class.ilObjCourse.php.
References $DIC, ilObject\$rbacadmin, ilObject\$rbacreview, and ilObject\getRefId().
ilObjCourse::getDefaultMemberRole | ( | ) |
Definition at line 1799 of file class.ilObjCourse.php.
References ilObject\$title, __getLocalRoles(), and ilObject\_lookupTitle().
Referenced by cloneAutoGeneratedRoles().
ilObjCourse::getDefaultTutorRole | ( | ) |
Definition at line 1811 of file class.ilObjCourse.php.
References __getLocalRoles(), ilObjectFactory\getInstanceByObjId(), and ilObject\getRefId().
Referenced by cloneAutoGeneratedRoles().
ilObjCourse::getEnableCourseMap | ( | ) |
Get Enable Course Map.
Definition at line 897 of file class.ilObjCourse.php.
References $enablemap.
Referenced by __createDefaultSettings(), cloneSettings(), getEnableMap(), and updateSettings().
ilObjCourse::getEnableMap | ( | ) |
Type independent wrapper.
Definition at line 887 of file class.ilObjCourse.php.
References getEnableCourseMap().
ilObjCourse::getImportantInformation | ( | ) |
Definition at line 196 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getLatitude | ( | ) |
Get Latitude.
Definition at line 828 of file class.ilObjCourse.php.
References $latitude.
Referenced by __createDefaultSettings(), cloneSettings(), 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 1697 of file class.ilObjCourse.php.
References $DIC, ilObject\$rbacadmin, ilObject\$rbacreview, ilObjRole\_getTranslation(), and ilObject\getRefId().
ilObjCourse::getLocationZoom | ( | ) |
Get LocationZoom.
Definition at line 868 of file class.ilObjCourse.php.
References $locationzoom.
Referenced by __createDefaultSettings(), cloneSettings(), and updateSettings().
ilObjCourse::getLongitude | ( | ) |
Get Longitude.
Definition at line 848 of file class.ilObjCourse.php.
References $longitude.
Referenced by __createDefaultSettings(), cloneSettings(), and updateSettings().
ilObjCourse::getMailToMembersType | ( | ) |
Get mail to members type.
Definition at line 709 of file class.ilObjCourse.php.
References $mail_members.
Referenced by __createDefaultSettings(), cloneSettings(), and updateSettings().
ilObjCourse::getMemberObject | ( | ) |
Get course member object.
Definition at line 1574 of file class.ilObjCourse.php.
References $member_obj, and initCourseMemberObject().
ilObjCourse::getMembersObject | ( | ) |
Definition at line 1585 of file class.ilObjCourse.php.
References $members_obj, and initCourseMembersObject().
Referenced by checkLPStatusSync(), handleAutoFill(), and syncMembersStatusWithLP().
ilObjCourse::getMessage | ( | ) |
Definition at line 714 of file class.ilObjCourse.php.
References $message.
Referenced by appendMessage(), and validate().
ilObjCourse::getNumberOfNextSessions | ( | ) |
Set number of previous sessions.
Definition at line 417 of file class.ilObjCourse.php.
References $session_next.
Referenced by cloneSettings(), getSubItems(), and updateSettings().
ilObjCourse::getNumberOfPreviousSessions | ( | ) |
Set number of previous sessions.
Definition at line 398 of file class.ilObjCourse.php.
References $session_prev.
Referenced by __createDefaultSettings(), cloneSettings(), getSubItems(), and updateSettings().
ilObjCourse::getOrderType | ( | ) |
Definition at line 2190 of file class.ilObjCourse.php.
References enabledObjectiveView(), and ilContainer\SORT_MANUAL.
Referenced by cloneSettings(), and update().
ilObjCourse::getRegistrationAccessCode | ( | ) |
get access code
Definition at line 162 of file class.ilObjCourse.php.
References $reg_access_code.
Referenced by __createDefaultSettings(), and updateSettings().
ilObjCourse::getShowMembers | ( | ) |
Definition at line 690 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getShowMembersExport | ( | ) |
Definition at line 148 of file class.ilObjCourse.php.
References $member_export.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getStatusDetermination | ( | ) |
Get status determination mode.
Definition at line 2153 of file class.ilObjCourse.php.
References $status_dt.
Referenced by __createDefaultSettings(), checkLPStatusSync(), cloneSettings(), updateSettings(), and validate().
ilObjCourse::getSubItems | ( | $a_admin_panel_enabled = false , |
|
$a_include_side_block = false , |
|||
$a_get_single = 0 |
|||
) |
Get subitems of container.
bool | $a_admin_panel_enabled,[optional] | |
bool | $a_include_side_block,[optional] |
Definition at line 469 of file class.ilObjCourse.php.
References $_GET, ilContainer\$access, $current, $DIC, $end, $ilUser, $key, $start, ilDateTime\_after(), ilDateTime\_before(), ilContainerSorting\_getInstance(), ilDateTime\_within(), ilObject\getId(), getNumberOfNextSessions(), getNumberOfPreviousSessions(), getViewMode(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_UNIX, isSessionLimitEnabled(), ilUtil\sortArray(), and ilContainer\VIEW_SESSIONS.
ilObjCourse::getSubscriptionEnd | ( | ) |
Definition at line 306 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), inSubscriptionTime(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getSubscriptionLimitationType | ( | ) |
Definition at line 286 of file class.ilObjCourse.php.
Referenced by cloneSettings(), prepareAppointments(), register(), updateSettings(), and validate().
ilObjCourse::getSubscriptionMaxMembers | ( | ) |
Definition at line 433 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), handleAutoFill(), register(), updateSettings(), and validate().
ilObjCourse::getSubscriptionMinMembers | ( | ) |
Definition at line 940 of file class.ilObjCourse.php.
References $min_members.
Referenced by cloneSettings(), updateSettings(), and validate().
ilObjCourse::getSubscriptionNotify | ( | ) |
Definition at line 565 of file class.ilObjCourse.php.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getSubscriptionPassword | ( | ) |
Definition at line 323 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), updateSettings(), and validate().
ilObjCourse::getSubscriptionStart | ( | ) |
Definition at line 298 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), inSubscriptionTime(), prepareAppointments(), updateSettings(), and validate().
ilObjCourse::getSubscriptionType | ( | ) |
Definition at line 314 of file class.ilObjCourse.php.
References IL_CRS_SUBSCRIPTION_DIRECT.
Referenced by cloneSettings(), updateSettings(), and validate().
ilObjCourse::getSubscriptionUnlimitedStatus | ( | ) |
Definition at line 294 of file class.ilObjCourse.php.
References IL_CRS_SUBSCRIPTION_UNLIMITED.
Referenced by inSubscriptionTime().
ilObjCourse::getSyllabus | ( | ) |
Definition at line 204 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), cloneSettings(), and updateSettings().
ilObjCourse::getTimingMode | ( | ) |
Definition at line 615 of file class.ilObjCourse.php.
References $timing_mode.
Referenced by cloneSettings(), and updateSettings().
ilObjCourse::getViewMode | ( | ) |
Definition at line 579 of file class.ilObjCourse.php.
Referenced by cloneSettings(), getSubItems(), prepareAppointments(), and updateSettings().
ilObjCourse::handleAutoFill | ( | ) |
Handle course auto fill.
Definition at line 2201 of file class.ilObjCourse.php.
References checkLPStatusSync(), enabledWaitingList(), ilObject\getId(), ilObjectFactory\getInstanceByObjId(), getMembersObject(), ilObject\getRefId(), getSubscriptionMaxMembers(), ilObject\getTitle(), hasWaitingListAutoFill(), IL_CRS_MEMBER, and ilParticipants\lookupNumberOfMembers().
ilObjCourse::hasContactData | ( | ) |
Definition at line 1165 of file class.ilObjCourse.php.
References getContactConsultation(), getContactEmail(), getContactName(), getContactPhone(), and getContactResponsibility().
ilObjCourse::hasWaitingListAutoFill | ( | ) |
Definition at line 950 of file class.ilObjCourse.php.
References $auto_fill_from_waiting.
Referenced by cloneSettings(), handleAutoFill(), and updateSettings().
|
protected |
Init course member object ilObjUser $ilUser.
Definition at line 1543 of file class.ilObjCourse.php.
References $DIC, $ilUser, ilCourseParticipant\_getInstanceByObjId(), and ilObject\getId().
Referenced by getMemberObject().
|
protected |
Init course member object ilObjUser $ilUser.
Definition at line 1559 of file class.ilObjCourse.php.
References $DIC, $ilUser, ilCourseParticipants\_getInstanceByObjId(), and ilObject\getId().
Referenced by getMembersObject().
ilObjCourse::initDefaultRoles | ( | ) |
Definition at line 1596 of file class.ilObjCourse.php.
References $DIC, $ilDB, ilObject\$rbacadmin, ilObject\$rbacreview, ilObjRole\createDefaultRole(), ilObject\getId(), and ilObject\getRefId().
ilObjCourse::initWaitingList | ( | ) |
Definition at line 1527 of file class.ilObjCourse.php.
References ilObject\getId().
ilObjCourse::inSubscriptionTime | ( | ) |
Definition at line 346 of file class.ilObjCourse.php.
References getSubscriptionEnd(), getSubscriptionStart(), and getSubscriptionUnlimitedStatus().
Referenced by register().
ilObjCourse::isActivated | ( | ) |
Check if course is active and not offline.
Definition at line 734 of file class.ilObjCourse.php.
References getActivationEnd(), getActivationStart(), getActivationUnlimitedStatus(), and ilObject\getOfflineStatus().
ilObjCourse::isRegistrationAccessCodeEnabled | ( | ) |
Check if access code is enabled.
Definition at line 181 of file class.ilObjCourse.php.
References $reg_access_code_enabled.
Referenced by __createDefaultSettings(), cloneSettings(), and updateSettings().
ilObjCourse::isSessionLimitEnabled | ( | ) |
Definition at line 367 of file class.ilObjCourse.php.
References $session_limit.
Referenced by __createDefaultSettings(), cloneSettings(), getSubItems(), and updateSettings().
ilObjCourse::isSubscriptionMembershipLimited | ( | ) |
is membership limited
public
Definition at line 428 of file class.ilObjCourse.php.
Referenced by cloneSettings(), register(), updateSettings(), and validate().
|
static |
Lookup course non member id.
Definition at line 1678 of file class.ilObjCourse.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilRbacAdmin\adjustMovedObjectPermissions().
|
static |
Implements ilMembershipRegistrationCodes.
Definition at line 1998 of file class.ilObjCourse.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilMembershipRegistrationCodeUtils\lookupObjectsByCode().
|
static |
Check if show member is enabled.
int | $a_obj_id |
Definition at line 137 of file class.ilObjCourse.php.
References $GLOBALS, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAwarenessUserProviderCurrentCourse\getInitialUserSet(), and ilParticipants\hasParticipantListAccess().
|
static |
$a_obj_id |
Definition at line 588 of file class.ilObjCourse.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and ilCourseConstants\IL_CRS_VIEW_TIMING_ABSOLUTE.
Referenced by ilCalendarScheduleFilterTimings\addCustomEvents(), ilCourseAppEventListener\initializeTimings(), ilObjectActivationGUI\initTimingMode(), and ilCalendarScheduleFilterTimings\modifyEvent().
|
static |
Definition at line 2247 of file class.ilObjCourse.php.
References $DIC, $ilDB, $ilUser, $row, and IL_CAL_DATE.
Referenced by ilObjCourseAccess\_checkAccess().
ilObjCourse::MDUpdateListener | ( | $a_element | ) |
Overwriten Metadata update listener for ECS functionalities.
public
Definition at line 1859 of file class.ilObjCourse.php.
|
protected |
Prepare calendar appointments.
protected
string | mode UPDATE|CREATE|DELETE |
Definition at line 1897 of file class.ilObjCourse.php.
References getActivationEnd(), getActivationStart(), getActivationUnlimitedStatus(), getCourseEnd(), getCourseStart(), ilObject\getLongDescription(), ilObject\getOfflineStatus(), ilObject\getRefId(), getSubscriptionEnd(), getSubscriptionLimitationType(), getSubscriptionStart(), ilObjectActivation\getTimingsItems(), ilObject\getTitle(), getViewMode(), IL_CAL_TRANSLATION_SYSTEM, IL_CAL_UNIX, IL_CRS_SUBSCRIPTION_LIMITED, ilCourseConstants\IL_CRS_VIEW_TIMING, and ilObjectActivation\TIMINGS_PRESETTING.
Referenced by create(), delete(), and update().
ilObjCourse::read | ( | ) |
Definition at line 782 of file class.ilObjCourse.php.
References __readSettings(), ilContainerSortingSettings\_lookupSortMode(), ilObject\getId(), and ilContainer\setOrderType().
ilObjCourse::register | ( | $a_user_id, | |
$a_role = ilCourseConstants::CRS_MEMBER , |
|||
$a_force_registration = false |
|||
) |
int | user_id |
int | role |
bool | force registration and do not check registration constraints. |
ilMembershipRegistrationException |
Definition at line 2023 of file class.ilObjCourse.php.
References $DIC, $ilCtrl, $info, ilContainer\$tree, ilCourseParticipants\_getInstanceByObjId(), ilObjCourseAccess\_isActivated(), ilObjCourseAccess\_isOffline(), ilObjCourseAccess\_usingRegistrationCode(), ilMembershipRegistrationException\ADDED_TO_WAITINGLIST, ilForumNotification\checkForumsExistsInsert(), enabledWaitingList(), ilObject\getId(), ilObject\getRefId(), getSubscriptionLimitationType(), getSubscriptionMaxMembers(), IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_LIMITED, inSubscriptionTime(), isSubscriptionMembershipLimited(), ilMembershipRegistrationException\OBJECT_IS_FULL, ilMembershipRegistrationException\OUT_OF_REGISTRATION_PERIOD, ilMembershipRegistrationException\REGISTRATION_CODE_DISABLED, ilMembershipRegistrationException\REGISTRATION_INVALID_AVAILABILITY, and ilMembershipRegistrationException\REGISTRATION_INVALID_OFFLINE.
ilObjCourse::setAboStatus | ( | $a_status | ) |
Definition at line 678 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setActivationEnd | ( | $a_value | ) |
Definition at line 273 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setActivationStart | ( | $a_value | ) |
Definition at line 265 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setActivationVisibility | ( | $a_value | ) |
Definition at line 277 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setArchiveEnd | ( | $a_value | ) |
Definition at line 666 of file class.ilObjCourse.php.
ilObjCourse::setArchiveStart | ( | $a_value | ) |
Definition at line 658 of file class.ilObjCourse.php.
ilObjCourse::setArchiveType | ( | $a_value | ) |
Definition at line 674 of file class.ilObjCourse.php.
ilObjCourse::setAutoNotification | ( | $value | ) |
Sets automatic notification status in $this->auto_notification, using given $status.
mixed | boolean |
Definition at line 2123 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setCancellationEnd | ( | ilDate | $a_value = null | ) |
Definition at line 922 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactConsultation | ( | $a_value | ) |
Definition at line 224 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactEmail | ( | $a_value | ) |
Definition at line 240 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactName | ( | $a_cn | ) |
Definition at line 216 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactPhone | ( | $a_value | ) |
Definition at line 232 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setContactResponsibility | ( | $a_value | ) |
Definition at line 248 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setCourseEnd | ( | ilDate | $a_value = null | ) |
Definition at line 912 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setCourseStart | ( | ilDate | $a_value = null | ) |
Definition at line 902 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 878 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setImportantInformation | ( | $a_info | ) |
Definition at line 200 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setLatitude | ( | $a_latitude | ) |
Set Latitude.
string | $a_latitude | Latitude |
Definition at line 818 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setLocationZoom | ( | $a_locationzoom | ) |
Set LocationZoom.
int | $a_locationzoom | LocationZoom |
Definition at line 858 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setLongitude | ( | $a_longitude | ) |
Set Longitude.
string | $a_longitude | Longitude |
Definition at line 838 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setMailToMembersType | ( | $a_type | ) |
Set mail to members type.
type | $a_type |
Definition at line 700 of file class.ilObjCourse.php.
References $a_type.
Referenced by __readSettings().
ilObjCourse::setMessage | ( | $a_message | ) |
Definition at line 718 of file class.ilObjCourse.php.
Referenced by validate().
ilObjCourse::setNumberOfNextSessions | ( | $a_num | ) |
Set number of previous sessions.
int | $a_num |
Definition at line 408 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setNumberOfPreviousSessions | ( | $a_num | ) |
Set number of previous sessions.
int | $a_num |
Definition at line 389 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setParentRolePermissions | ( | $a_parent_ref | ) |
This method is called before "initDefaultRoles".
Therefore now local course roles are created.
Grants permissions on the course object for all parent roles. Each permission is granted by computing the intersection of the template il_crs_non_member and the permission template of the parent role.
type | $a_parent_ref |
Definition at line 1636 of file class.ilObjCourse.php.
References $DIC, ilObject\$rbacadmin, ilObject\$rbacreview, __getCrsNonMemberTemplateId(), and ilObject\getRefId().
ilObjCourse::setRegistrationAccessCode | ( | $a_code | ) |
Set refistration access code.
string | $a_code |
Definition at line 172 of file class.ilObjCourse.php.
Referenced by __createDefaultSettings(), and __readSettings().
ilObjCourse::setShowMembers | ( | $a_status | ) |
Definition at line 686 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setShowMembersExport | ( | $a_mem_export | ) |
Definition at line 153 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setStatusDetermination | ( | $a_value | ) |
Set status determination mode.
int | $a_value |
Definition at line 2133 of file class.ilObjCourse.php.
References ilObjUserTracking\_enabledLearningProgress().
Referenced by __construct(), and __readSettings().
ilObjCourse::setSubscriptionEnd | ( | $a_value | ) |
Definition at line 310 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionLimitationType | ( | $a_type | ) |
Definition at line 290 of file class.ilObjCourse.php.
References $a_type.
Referenced by __readSettings().
ilObjCourse::setSubscriptionMaxMembers | ( | $a_value | ) |
Definition at line 437 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionMinMembers | ( | $a_value | ) |
Definition at line 932 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionNotify | ( | $a_value | ) |
Definition at line 570 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionPassword | ( | $a_value | ) |
Definition at line 327 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionStart | ( | $a_value | ) |
Definition at line 302 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSubscriptionType | ( | $a_value | ) |
Definition at line 319 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setSyllabus | ( | $a_syllabus | ) |
Definition at line 208 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setTimingMode | ( | $a_mode | ) |
int | $a_mode |
Definition at line 607 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setViewMode | ( | $a_mode | ) |
Definition at line 575 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::setWaitingListAutoFill | ( | $a_value | ) |
Definition at line 945 of file class.ilObjCourse.php.
Referenced by __readSettings().
ilObjCourse::syncMembersStatusWithLP | ( | ) |
Set course status for all members by lp status.
Definition at line 2161 of file class.ilObjCourse.php.
References ilLPStatusWrapper\_updateStatus(), ilObject\getId(), and getMembersObject().
ilObjCourse::update | ( | ) |
update complete object
Definition at line 1230 of file class.ilObjCourse.php.
References $DIC, $ilLog, ilObject\getId(), getOrderType(), prepareAppointments(), League\Flysystem\Adapter\Polyfill\update(), ilObject\updateMetaData(), and updateSettings().
ilObjCourse::updateSettings | ( | ) |
Definition at line 1255 of file class.ilObjCourse.php.
References $DIC, $ilDB, $query, $res, __createDefaultSettings(), enabledWaitingList(), getAboStatus(), getActivationEnd(), getActivationStart(), getActivationVisibility(), getAutoNotification(), getCancellationEnd(), getContactConsultation(), getContactEmail(), getContactName(), getContactPhone(), getContactResponsibility(), getCourseEnd(), getCourseStart(), getEnableCourseMap(), ilObject\getId(), getImportantInformation(), ilObjectActivation\getItem(), getLatitude(), getLocationZoom(), getLongitude(), getMailToMembersType(), getNumberOfNextSessions(), getNumberOfPreviousSessions(), ilObject\getOfflineStatus(), getRegistrationAccessCode(), getShowMembers(), getShowMembersExport(), getStatusDetermination(), getSubscriptionEnd(), getSubscriptionLimitationType(), getSubscriptionMaxMembers(), getSubscriptionMinMembers(), getSubscriptionNotify(), getSubscriptionPassword(), getSubscriptionStart(), getSubscriptionType(), getSyllabus(), getTimingMode(), getViewMode(), hasWaitingListAutoFill(), IL_CAL_UNIX, isRegistrationAccessCodeEnabled(), isSessionLimitEnabled(), isSubscriptionMembershipLimited(), ilObjectActivation\setTimingType(), ilObjectActivation\TIMINGS_ACTIVATION, and ilObjectActivation\TIMINGS_DEACTIVATED.
Referenced by update().
ilObjCourse::validate | ( | ) |
Definition at line 1109 of file class.ilObjCourse.php.
References appendMessage(), enabledWaitingList(), getCourseEnd(), getCourseStart(), getMessage(), getStatusDetermination(), getSubscriptionEnd(), getSubscriptionLimitationType(), getSubscriptionMaxMembers(), getSubscriptionMinMembers(), getSubscriptionPassword(), getSubscriptionStart(), getSubscriptionType(), ilObject\getTitle(), IL_CAL_UNIX, IL_CRS_SUBSCRIPTION_LIMITED, IL_CRS_SUBSCRIPTION_PASSWORD, isSubscriptionMembershipLimited(), and setMessage().
ilObjCourse::validateInfoSettings | ( | ) |
Definition at line 1145 of file class.ilObjCourse.php.
References $DIC, $email, ilContainer\$error, $ilErr, getContactEmail(), ilObjUser\getUserIdByLogin(), and ilUtil\is_email().
ilObjCourse::$archives_obj |
Definition at line 58 of file class.ilObjCourse.php.
|
protected |
Definition at line 79 of file class.ilObjCourse.php.
Referenced by hasWaitingListAutoFill().
|
private |
Definition at line 96 of file class.ilObjCourse.php.
Referenced by getAutoNotification().
|
protected |
Definition at line 40 of file class.ilObjCourse.php.
|
protected |
Definition at line 76 of file class.ilObjCourse.php.
Referenced by getCourseEnd().
|
protected |
Definition at line 75 of file class.ilObjCourse.php.
Referenced by getCourseStart().
|
private |
Definition at line 63 of file class.ilObjCourse.php.
Referenced by getEnableCourseMap().
|
private |
Definition at line 60 of file class.ilObjCourse.php.
Referenced by getLatitude().
|
protected |
Definition at line 77 of file class.ilObjCourse.php.
Referenced by getCancellationEnd().
|
private |
Definition at line 62 of file class.ilObjCourse.php.
Referenced by getLocationZoom().
|
private |
Definition at line 61 of file class.ilObjCourse.php.
Referenced by getLongitude().
|
private |
Definition at line 73 of file class.ilObjCourse.php.
Referenced by getMailToMembersType().
|
protected |
Definition at line 84 of file class.ilObjCourse.php.
Referenced by getShowMembersExport().
|
private |
Definition at line 56 of file class.ilObjCourse.php.
Referenced by getMemberObject().
|
private |
Definition at line 57 of file class.ilObjCourse.php.
Referenced by getMembersObject().
|
protected |
Definition at line 78 of file class.ilObjCourse.php.
Referenced by getSubscriptionMinMembers().
|
private |
Definition at line 69 of file class.ilObjCourse.php.
Referenced by getRegistrationAccessCode().
|
private |
Definition at line 70 of file class.ilObjCourse.php.
Referenced by isRegistrationAccessCodeEnabled().
|
private |
Definition at line 65 of file class.ilObjCourse.php.
Referenced by isSessionLimitEnabled().
|
private |
Definition at line 67 of file class.ilObjCourse.php.
Referenced by getNumberOfNextSessions().
|
private |
Definition at line 66 of file class.ilObjCourse.php.
Referenced by getNumberOfPreviousSessions().
|
private |
Definition at line 71 of file class.ilObjCourse.php.
Referenced by getStatusDetermination().
|
private |
Definition at line 89 of file class.ilObjCourse.php.
Referenced by getTimingMode().
const ilObjCourse::CAL_ACTIVATION_END = 4 |
Definition at line 46 of file class.ilObjCourse.php.
const ilObjCourse::CAL_ACTIVATION_START = 3 |
Definition at line 45 of file class.ilObjCourse.php.
const ilObjCourse::CAL_COURSE_END = 6 |
Definition at line 48 of file class.ilObjCourse.php.
const ilObjCourse::CAL_COURSE_START = 5 |
Definition at line 47 of file class.ilObjCourse.php.
const ilObjCourse::CAL_COURSE_TIMING_END = 8 |
Definition at line 50 of file class.ilObjCourse.php.
Referenced by ilCalendarScheduleFilterTimings\addCustomEvents(), ilCalendarScheduleFilterTimings\findCalendarEntriesForItem(), and ilCalendarScheduleFilterTimings\modifyEvent().
const ilObjCourse::CAL_COURSE_TIMING_START = 7 |
Definition at line 49 of file class.ilObjCourse.php.
Referenced by ilCalendarScheduleFilterTimings\addCustomEvents(), ilCalendarScheduleFilterTimings\findCalendarEntriesForItem(), and ilCalendarScheduleFilterTimings\modifyEvent().
const ilObjCourse::CAL_REG_END = 2 |
Definition at line 44 of file class.ilObjCourse.php.
const ilObjCourse::CAL_REG_START = 1 |
Definition at line 43 of file class.ilObjCourse.php.
const ilObjCourse::STATUS_DETERMINATION_LP = 1 |
Definition at line 53 of file class.ilObjCourse.php.
Referenced by checkLPStatusSync(), ilCourseLP\getSettingsInfo(), ilCourseAppEventListener\handleEvent(), ilObjCourseGUI\initEditForm(), ilCourseMembershipGUI\initParticipantTableGUI(), ilObjCourseGUI\readMemberData(), ilObjCourseGUI\setLPSyncObject(), ilObjCourseGUI\updateLPFromStatus(), and ilObjCourseGUI\updateObject().
const ilObjCourse::STATUS_DETERMINATION_MANUAL = 2 |
Definition at line 54 of file class.ilObjCourse.php.
Referenced by ilObjCourseGUI\initEditForm().