ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjLearningSequence Class Reference
+ Inheritance diagram for ilObjLearningSequence:
+ Collaboration diagram for ilObjLearningSequence:

Public Member Functions

 __construct (int $id=0, bool $call_by_reference=true)
 
 read ()
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 delete ()
 delete category and all related data More...
 
 getDI ()
 
 getLocalDI ()
 
 getLSActivation ()
 
 updateActivation (ilLearningSequenceActivation $settings)
 
 getLSSettings ()
 
 updateSettings (ilLearningSequenceSettings $settings)
 
 getLSParticipants ()
 
 getMembersObject ()
 
 getLSAccess ()
 
 getLSItems ()
 
 storeLSItems (array $ls_items)
 Update LSItems. More...
 
 deletePostConditionsForSubObjects (array $ref_ids)
 Delete post conditions for ref ids. More...
 
 getPossiblePostConditionsForType (string $type)
 
 getStateDB ()
 
 getLSLearnerItems (int $usr_id)
 
 getLSRoles ()
 
 getMailToMembersType ()
 Get mail to members type. More...
 
 getShowMembers ()
 
 announceLSOOnline ()
 
 announceLSOOffline ()
 
 setEffectiveOnlineStatus (bool $status)
 
 getCurrentUserCurriculum ()
 
 getCurrentUserLaunchButtons ()
 
 getLocalLearningSequenceRoles (bool $translate=false)
 
 getDefaultMemberRole ()
 
 getDefaultAdminRole ()
 
 getDefaultLearningSequenceRoles (string $a_grp_id="")
 
 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. More...
 
 readMemberData (array $user_ids, ?array $columns=null)
 
 getParentObjectInfo (int $ref_id, array $search_types)
 
 getLPCompletionStates ()
 
 getContentPageId ()
 
 hasContentPage (LSOPageType $page_type)
 
 createContentPage (LSOPageType $page_type)
 
 getContentPageHTML (LSOPageType $page_type)
 
- Public Member Functions inherited from ilContainer
 getTileSizes ()
 
 getObjectTranslation ()
 
 setObjectTranslation (?Translations $obj_trans)
 
 createContainerDirectory ()
 
 getContainerDirectory ()
 
 setHiddenFilesFound (bool $a_hiddenfilesfound)
 
 getHiddenFilesFound ()
 
 getStyleSheetId ()
 
 setStyleSheetId (int $a_style_id)
 
 setNewsTimeline (bool $a_val)
 
 getNewsTimeline ()
 
 setNewsTimelineAutoEntries (bool $a_val)
 
 getNewsTimelineAutoEntries ()
 
 setNewsTimelineLandingPage (bool $a_val)
 
 getNewsTimelineLandingPage ()
 
 isNewsTimelineEffective ()
 
 isNewsTimelineLandingPageEffective ()
 
 setNewsBlockActivated (bool $a_val)
 
 getNewsBlockActivated ()
 
 setUseNews (bool $a_val)
 
 getUseNews ()
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies (container sorting) More...
 
 cloneAllObject (string $session_id, string $client_id, string $new_type, int $ref_id, int $clone_source, array $options, bool $soap_call=false, int $a_submode=1)
 
 delete ()
 delete category and all related data More...
 
 getViewMode ()
 
 getOrderType ()
 
 setOrderType (int $a_value)
 
 isClassificationFilterActive ()
 
 filteredSubtree ()
 Note grp/crs currently allow to filter in their whole subtrees Catetories only their direct childs. More...
 
 getSubItems (bool $a_admin_panel_enabled=false, bool $a_include_side_block=false, int $a_get_single=0, ?ilContainerUserFilter $container_user_filter=null)
 
 gotItems ()
 
 addAdditionalSubItemInformation (array &$object)
 Add additional information to sub item, e.g. More...
 
 getGroupedObjTypes ()
 
 enablePageEditing ()
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 update ()
 
 read ()
 
 readContainerSettings ()
 
 removeTranslations ()
 
 deleteTranslation (string $a_lang)
 
 addTranslation (string $a_title, string $a_desc, string $a_lang, string $a_lang_default)
 
- Public Member Functions inherited from ilObject
 getObjectProperties ()
 
 flushObjectProperties ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 processAutoRating ()
 
 read ()
 
 getId ()
 
 setId (int $id)
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 getType ()
 
 setType (string $type)
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 
 getUntranslatedTitle ()
 Get untranslated object title WebDAV needs to access the untranslated title of an object. More...
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 
 setImportId (string $import_id)
 
 setOfflineStatus (bool $status)
 
 getOfflineStatus ()
 
 supportsOfflineHandling ()
 
 getOwner ()
 
 getOwnerName ()
 get full name of object owner More...
 
 setOwner (int $usr_id)
 
 getCreateDate ()
 Get create date in YYYY-MM-DD HH-MM-SS format. More...
 
 getLastUpdateDate ()
 Get last update date in YYYY-MM-DD HH-MM-SS format. More...
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 MDUpdateListener (string $element)
 Metadata update listener. More...
 
 createMetaData ()
 
 updateMetaData ()
 
 deleteMetaData ()
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 setPermissions (int $parent_ref_id)
 
 setParentRolePermissions (int $parent_ref_id)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! 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. More...
 
 applyDidacticTemplate (int $tpl_id)
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies. More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 selfOrParentWithRatingEnabled ()
 
 getPossibleSubObjects (bool $filter=true)
 get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static getInstanceByRefId (int $ref_id)
 
static _goto (string $target, string $add="")
 Goto target learning sequence. More...
 
- Static Public Member Functions inherited from ilContainer
static _getContainerDirectory (int $a_id)
 
static _lookupContainerSetting (int $a_id, string $a_keyword, ?string $a_default_value=null)
 
static _hasContainerSetting (int $a_id, string $a_keyword)
 
static _writeContainerSetting (int $a_id, string $a_keyword, string $a_value)
 
static _getContainerSettings (int $a_id)
 
static _deleteContainerSettings (int $a_id, string $a_keyword="", bool $a_keyword_like=false)
 
static _exportContainerSettings (ilXmlWriter $a_xml, int $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 (string $import_id)
 Get (latest) object id for an import id. More...
 
static _lookupImportId (int $obj_id)
 
static _lookupOwnerName (int $owner_id)
 Lookup owner name for owner id. More...
 
static _getIdForImportId (string $import_id)
 
static _getAllReferences (int $id)
 get all reference ids for object ID More...
 
static _lookupTitle (int $obj_id)
 
static lookupOfflineStatus (int $obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner (int $obj_id)
 Lookup owner user ID for object ID. More...
 
static _getIdsForTitle (string $title, string $type='', bool $partial_match=false)
 
static _lookupDescription (int $obj_id)
 
static _lookupLastUpdate (int $obj_id, bool $formatted=false)
 
static _getLastUpdateOfObjects (array $obj_ids)
 
static _lookupObjId (int $ref_id)
 
static _setDeletedDate (int $ref_id, int $deleted_by)
 
static setDeletedDates (array $ref_ids, int $user_id)
 
static _resetDeletedDate (int $ref_id)
 
static _lookupDeletedDate (int $ref_id)
 
static _writeTitle (int $obj_id, string $title)
 write title to db (static) More...
 
static _writeDescription (int $obj_id, string $desc)
 write description to db (static) More...
 
static _writeImportId (int $obj_id, string $import_id)
 write import id to db (static) More...
 
static _lookupType (int $id, bool $reference=false)
 
static _isInTrash (int $ref_id)
 
static _hasUntrashedReference (int $obj_id)
 checks whether an object has at least one reference that is not in trash More...
 
static _lookupObjectId (int $ref_id)
 
static _getObjectsDataForType (string $type, bool $omit_trash=false)
 get all objects of a certain type More...
 
static _exists (int $id, bool $reference=false, ?string $type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType (string $obj_type="", ?int $owner=null)
 
static _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true)
 Prepare copy wizard object selection. More...
 
static getIconForType (string $type)
 
static _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies (int $obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $obj_ids)
 
static getAllOwnedRepositoryObjects (int $user_id)
 
static fixMissingTitles ($type, array &$obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate (int $obj_id)
 
static _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null)
 

Data Fields

const OBJ_TYPE = 'lso'
 
const E_CREATE = 'create'
 
const E_UPDATE = 'update'
 
const E_DELETE = 'delete'
 
- 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_DEFAULT = self::VIEW_BY_TYPE
 
const SORT_TITLE = 0
 
const SORT_MANUAL = 1
 
const SORT_ACTIVATION = 2
 
const SORT_INHERIT = 3
 
const SORT_CREATION = 4
 
const SORT_DIRECTION_ASC = 0
 
const SORT_DIRECTION_DESC = 1
 
const SORT_NEW_ITEMS_POSITION_TOP = 0
 
const SORT_NEW_ITEMS_POSITION_BOTTOM = 1
 
const SORT_NEW_ITEMS_ORDER_TITLE = 0
 
const SORT_NEW_ITEMS_ORDER_CREATION = 1
 
const SORT_NEW_ITEMS_ORDER_ACTIVATION = 2
 
const TILE_NORMAL = 0
 
const TILE_SMALL = 1
 
const TILE_LARGE = 2
 
const TILE_EXTRA_LARGE = 3
 
const TILE_FULL = 4
 
array $items = []
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Protected Member Functions

 raiseEvent (string $event_type)
 
 cloneIntroAndExtroContentPages (ilObjLearningSequence $new_obj, array $cp_types)
 
 cloneAutoGeneratedRoles (ilObjLearningSequence $new_obj)
 
 cloneSettings (ilObjLearningSequence $new_obj)
 
 cloneLPSettings (int $obj_id)
 
 cloneActivation (ilObjLearningSequence $new_obj, int $a_copy_id)
 
 getDIC ()
 
 getSettingsDB ()
 
 getActivationDB ()
 
 getLSItemsDB ()
 
 getPostConditionDB ()
 
 getLearnerProgressDB ()
 
- Protected Member Functions inherited from ilContainer
 getInitialSubitems ()
 
 applyContainerUserFilter (array $objects, ?ilContainerUserFilter $container_user_filter=null)
 
- Protected Member Functions inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Protected Attributes

ilLSItemsDB $items_db = null
 
ilLSPostConditionDB $conditions_db = null
 
ilLearnerProgressDB $learner_progress_db = null
 
ilLearningSequenceParticipants $ls_participants = null
 
ilLearningSequenceSettings $ls_settings = null
 
ilLSStateDB $state_db = null
 
ilLearningSequenceRoles $ls_roles = null
 
ilLearningSequenceSettingsDB $settings_db = null
 
ilLearningSequenceActivationDB $activation_db = null
 
ilLearningSequenceActivation $ls_activation = null
 
ArrayAccess $di = null
 
ArrayAccess $local_di = null
 
ilObjLearningSequenceAccess $ls_access = null
 
ArrayAccess $dic
 
ilCtrl $ctrl
 
ILIAS News Service $il_news
 
ilConditionHandler $il_condition_handler
 
- Protected Attributes inherited from ilContainer
News $news
 
ILIAS Style Content DomainService $content_style_domain
 
ILIAS Container InternalDomainService $domain
 
ilAccessHandler $access
 
ilRbacSystem $rbacsystem
 
ilObjUser $user
 
ilObjectDefinition $obj_definition
 
int $order_type = 0
 
bool $hiddenfilesfound = false
 
bool $news_timeline = false
 
bool $news_timeline_auto_entries = false
 
ilSetting $setting
 
Translations $obj_trans = null
 
int $style_id = 0
 
bool $news_timeline_landing_page = false
 
bool $news_block_activated = false
 
bool $use_news = false
 
ilRecommendedContentManager $recommended_content_manager
 
array $type_grps = null
 
- Protected Attributes inherited from ilObject
ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Additional Inherited Members

- Static Public Attributes inherited from ilContainer
static bool $data_preloaded = false
 

Detailed Description

Definition at line 21 of file class.ilObjLearningSequence.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjLearningSequence::__construct ( int  $id = 0,
bool  $call_by_reference = true 
)

Definition at line 48 of file class.ilObjLearningSequence.php.

49 {
50 global $DIC;
51 $this->dic = $DIC;
52
53 $this->type = self::OBJ_TYPE;
54 $this->lng = $DIC['lng'];
55 $this->ctrl = $DIC['ilCtrl'];
56 $this->user = $DIC['ilUser'];
57 $this->tree = $DIC['tree'];
58 $this->log = $DIC["ilLoggerFactory"]->getRootLogger();
59 $this->app_event_handler = $DIC['ilAppEventHandler'];
60 $this->il_news = $DIC->news();
61 $this->il_condition_handler = new ilConditionHandler();
62
64
65 $this->lng->loadLanguageModule('rbac');
66 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
INTERNAL CLASS: Please do not use in consumer code.
bool $call_by_reference
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References ilObject\$call_by_reference, $DIC, $id, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), OBJ_TYPE, and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ _goto()

static ilObjLearningSequence::_goto ( string  $target,
string  $add = "" 
)
static

Goto target learning sequence.

Definition at line 453 of file class.ilObjLearningSequence.php.

453 : void
454 {
455 global $DIC;
456 $main_tpl = $DIC->ui()->mainTemplate();
457
458 $ilAccess = $DIC['ilAccess'];
459 $ilErr = $DIC['ilErr'];
460 $lng = $DIC['lng'];
461 $ilUser = $DIC['ilUser'];
462 $request_wrapper = $DIC->http()->wrapper()->query();
463 $refinery = $DIC->refinery();
464
465 if (substr($add, 0, 5) == 'rcode') {
466 if ($ilUser->getId() == ANONYMOUS_USER_ID) {
467 $request_target = $request_wrapper->retrieve("target", $refinery->kindlyTo()->string());
468 // Redirect to login for anonymous
470 "login.php?target=" . $request_target . "&cmd=force_login&lang=" .
471 $ilUser->getCurrentLanguage()
472 );
473 }
474
475 // Redirects to target location after assigning user to learning sequence
477 $target,
479 substr($add, 5)
480 );
481 }
482
483 if ($add == "mem" && $ilAccess->checkAccess("manage_members", "", $target)) {
484 ilObjectGUI::_gotoRepositoryNode($target, "members");
485 }
486
487 if ($ilAccess->checkAccess("read", "", $target)) {
489 } else {
490 // to do: force flat view
491 if ($ilAccess->checkAccess("visible", "", $target)) {
492 ilObjectGUI::_gotoRepositoryNode($target, "infoScreenGoto");
493 } else {
494 if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
495 $main_tpl->setOnScreenMessage('failure', sprintf(
496 $lng->txt("msg_no_perm_read_item"),
498 ), true);
500 }
501 }
502 }
503
504 $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
505 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static handleCode(int $a_ref_id, string $a_type, string $a_code)
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
static _gotoRepositoryNode(int $ref_id, string $cmd="")
static _lookupType(int $id, bool $reference=false)
ilLanguage $lng
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
static redirect(string $a_script)
const ANONYMOUS_USER_ID
Definition: constants.php:27
const ROOT_FOLDER_ID
Definition: constants.php:32
$ilErr
Definition: raiseError.php:33

References $DIC, $ilErr, ilObject\$lng, ILIAS\UI\examples\Layout\Page\Standard\$refinery, ILIAS\UI\examples\Layout\Page\Standard\$request_wrapper, ilObjectGUI\_gotoRepositoryNode(), ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ANONYMOUS_USER_ID, ilMembershipRegistrationCodeUtils\handleCode(), ilUtil\redirect(), ROOT_FOLDER_ID, and ilLanguage\txt().

+ Here is the call graph for this function:

◆ announceLSOOffline()

ilObjLearningSequence::announceLSOOffline ( )

Definition at line 523 of file class.ilObjLearningSequence.php.

523 : void
524 {
525 //NYI
526 }

◆ announceLSOOnline()

ilObjLearningSequence::announceLSOOnline ( )

Definition at line 512 of file class.ilObjLearningSequence.php.

512 : void
513 {
514 $ns = $this->il_news;
515 $context = $ns->contextForRefId($this->getRefId());
516 $item = $ns->item($context);
517 $item->setContentIsLangVar(true);
518 $item->setContentTextIsLangVar(true);
519 $item->setTitle("lso_news_online_title");
520 $item->setContent("lso_news_online_txt");
521 $ns->data()->save($item);
522 }
$context
Definition: webdav.php:31

References $context, $il_news, and ilObject\getRefId().

+ Here is the call graph for this function:

◆ cloneActivation()

ilObjLearningSequence::cloneActivation ( ilObjLearningSequence  $new_obj,
int  $a_copy_id 
)
protected

Definition at line 226 of file class.ilObjLearningSequence.php.

226 : void
227 {
228 // #14596
229 $cwo = ilCopyWizardOptions::_getInstance($a_copy_id);
230 if ($cwo->isRootNode($this->getRefId())) {
231 $activation = $new_obj->getLSActivation()->withIsOnline(false);
232 } else {
233 $activation = $new_obj->getLSActivation()
234 ->withIsOnline($this->getLSActivation()->getIsOnline())
235 ->withActivationStart($this->getLSActivation()->getActivationStart())
236 ->withActivationEnd($this->getLSActivation()->getActivationEnd());
237 }
238
239 $new_status = ($new_obj->getLSActivation()->getEffectiveOnlineStatus())
240 ? $new_obj->getObjectProperties()->getPropertyIsOnline()->withOnline()
241 : $new_obj->getObjectProperties()->getPropertyIsOnline()->withOffline();
242 $new_obj->getObjectProperties()->storePropertyIsOnline($new_status);
243
244 $new_obj->getActivationDB()->store(
245 $activation
246 );
247 }
static _getInstance(int $a_copy_id)

References ilCopyWizardOptions\_getInstance(), getActivationDB(), getLSActivation(), and ilObject\getObjectProperties().

+ Here is the call graph for this function:

◆ cloneAutoGeneratedRoles()

ilObjLearningSequence::cloneAutoGeneratedRoles ( ilObjLearningSequence  $new_obj)
protected

Definition at line 172 of file class.ilObjLearningSequence.php.

172 : bool
173 {
174 $admin = $this->getDefaultAdminRole();
175 $new_admin = $new_obj->getDefaultAdminRole();
176
177 if (!$admin || !$new_admin || !$this->getRefId() || !$new_obj->getRefId()) {
178 $this->log->write(__METHOD__ . ' : Error cloning auto generated role: il_lso_admin');
179 }
180
181 $this->rbac_admin->copyRolePermissions($admin, $this->getRefId(), $new_obj->getRefId(), $new_admin, true);
182 $this->log->write(__METHOD__ . ' : Finished copying of role lso_admin.');
183
184 $member = $this->getDefaultMemberRole();
185 $new_member = $new_obj->getDefaultMemberRole();
186
187 if (!$member || !$new_member) {
188 $this->log->write(__METHOD__ . ' : Error cloning auto generated role: il_lso_member');
189 }
190
191 $this->rbac_admin->copyRolePermissions($member, $this->getRefId(), $new_obj->getRefId(), $new_member, true);
192 $this->log->write(__METHOD__ . ' : Finished copying of role lso_member.');
193
194 return true;
195 }

References getDefaultAdminRole(), getDefaultMemberRole(), and ilObject\getRefId().

+ Here is the call graph for this function:

◆ cloneIntroAndExtroContentPages()

ilObjLearningSequence::cloneIntroAndExtroContentPages ( ilObjLearningSequence  $new_obj,
array  $cp_types 
)
protected
Parameters
list<LSOPageType>$cp_types

Definition at line 154 of file class.ilObjLearningSequence.php.

154 : void
155 {
156 foreach ($cp_types as $type) {
157 $new_obj->createContentPage($type);
158 if ($this->hasContentPage($type)) {
159 $target_page_id = $new_obj->getContentPageId();
160 $source_page_id = $this->getContentPageId();
161
162 if ($type === LSOPageType::INTRO) {
163 $source_page = new ilLSOIntroPage($source_page_id);
164 } else {
165 $source_page = new ilLSOExtroPage($source_page_id);
166 }
167 $source_page->copy($target_page_id, $type->value, $target_page_id);
168 }
169 }
170 }
createContentPage(LSOPageType $page_type)
hasContentPage(LSOPageType $page_type)
string $type

References ilObject\$type, createContentPage(), getContentPageId(), and hasContentPage().

+ Here is the call graph for this function:

◆ cloneLPSettings()

ilObjLearningSequence::cloneLPSettings ( int  $obj_id)
protected

Definition at line 220 of file class.ilObjLearningSequence.php.

220 : void
221 {
222 $lp_settings = new ilLPObjSettings($this->getId());
223 $lp_settings->cloneSettings($obj_id);
224 }

References ilObject\getId().

+ Here is the call graph for this function:

◆ cloneSettings()

ilObjLearningSequence::cloneSettings ( ilObjLearningSequence  $new_obj)
protected

Definition at line 197 of file class.ilObjLearningSequence.php.

197 : void
198 {
199 $source = $this->getLSSettings();
200 $target = $new_obj->getLSSettings();
201
202 foreach ($source->getUploads() as $key => $upload_info) {
203 $target = $target->withUpload($upload_info, $key);
204 }
205
206 foreach ($source->getDeletions() as $deletion) {
207 $target = $target->withDeletion($deletion);
208 }
209
210 $target = $target
211 ->withAbstract($source->getAbstract())
212 ->withExtro($source->getExtro())
213 ->withAbstractImage($source->getAbstractImage())
214 ->withExtroImage($source->getExtroImage())
215 ;
216
217 $new_obj->updateSettings($target);
218 }
updateSettings(ilLearningSequenceSettings $settings)

References getLSSettings(), and updateSettings().

+ Here is the call graph for this function:

◆ create()

ilObjLearningSequence::create ( )

note: title, description and type should be set when this function is called

Reimplemented from ilContainer.

Definition at line 82 of file class.ilObjLearningSequence.php.

82 : int
83 {
84 $id = parent::create();
85 if (!$id) {
86 return 0;
87 }
88 $this->raiseEvent(self::E_CREATE);
89
90 return $this->getId();
91 }

References $id, ilObject\getId(), and raiseEvent().

+ Here is the call graph for this function:

◆ createContentPage()

ilObjLearningSequence::createContentPage ( LSOPageType  $page_type)

Definition at line 623 of file class.ilObjLearningSequence.php.

623 : void
624 {
625 if ($this->hasContentPage($page_type)) {
626 throw new \LogicException('will not create content page - it already exists.');
627 }
628 $new_page_object = $page_type === LSOPageType::INTRO ? new ilLSOIntroPage() : new ilLSOExtroPage();
629 $new_page_object->setId($this->getContentPageId());
630 $new_page_object->setParentId($this->getId());
631 $new_page_object->createFromXML();
632 }

References getContentPageId(), ilObject\getId(), and hasContentPage().

Referenced by cloneIntroAndExtroContentPages().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilObjLearningSequence::delete ( )

delete category and all related data

Returns
bool true if all object data were removed; false if only a references were removed

Reimplemented from ilContainer.

Definition at line 103 of file class.ilObjLearningSequence.php.

103 : bool
104 {
105 if (!parent::delete()) {
106 return false;
107 }
108
110 $this->getSettingsDB()->delete($this->getId());
111 $this->getStateDB()->deleteFor($this->getRefId());
112 $this->getActivationDB()->deleteForRefId($this->getRefId());
113
114 $this->raiseEvent(self::E_DELETE);
115
116 return true;
117 }
static _deleteAllEntries(int $a_obj_id)
Delete all entries Normally called in case of object deletion.

References ilParticipants\_deleteAllEntries(), getActivationDB(), ilObject\getId(), ilObject\getRefId(), getSettingsDB(), getStateDB(), and raiseEvent().

+ Here is the call graph for this function:

◆ deletePostConditionsForSubObjects()

ilObjLearningSequence::deletePostConditionsForSubObjects ( array  $ref_ids)

Delete post conditions for ref ids.

Parameters
int[]

Definition at line 386 of file class.ilObjLearningSequence.php.

386 : void
387 {
388 $rep_utils = new ilRepUtil();
389 $rep_utils->deleteObjects($this->getRefId(), $ref_ids);
390 $db = $this->getPostConditionDB();
391 $db->delete($ref_ids);
392 }
ilDBInterface $db
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ilObject\$db, getPostConditionDB(), and ilObject\getRefId().

+ Here is the call graph for this function:

◆ getActivationDB()

ilObjLearningSequence::getActivationDB ( )
protected

Definition at line 287 of file class.ilObjLearningSequence.php.

288 {
289 if (!$this->activation_db) {
290 $this->activation_db = $this->getDI()['db.activation'];
291 }
293 }
Persistence for online/activation period.
ilLearningSequenceActivationDB $activation_db

References $activation_db, and getDI().

Referenced by cloneActivation(), delete(), getLSActivation(), setEffectiveOnlineStatus(), and updateActivation().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getContentPageHTML()

ilObjLearningSequence::getContentPageHTML ( LSOPageType  $page_type)

Definition at line 634 of file class.ilObjLearningSequence.php.

634 : string
635 {
636 if (!$this->hasContentPage($page_type)) {
637 return '';
638 }
639
640 $gui = $page_type === LSOPageType::INTRO ?
641 new ilObjLearningSequenceEditIntroGUI(LSOPageType::INTRO->value, $this->getContentPageId()) :
643
644 $gui->setPresentationTitle("");
645 $gui->setTemplateOutput(false);
646 $gui->setHeader("");
647 $ret = $gui->showPage();
648 return $ret;
649 }
LSOPageType
Definition: LSOPageType.php:22
@ EXTRO
Definition: LSOPageType.php:24
Class ilObjLearningSequenceEditExtroGUI @ilCtrl_Calls ilObjLearningSequenceEditExtroGUI: ilPageEditor...
Class ilObjLearningSequenceEditIntroGUI @ilCtrl_Calls ilObjLearningSequenceEditIntroGUI: ilPageEditor...
setPresentationTitle(string $a_title="")

References EXTRO, getContentPageId(), and hasContentPage().

+ Here is the call graph for this function:

◆ getContentPageId()

ilObjLearningSequence::getContentPageId ( )

Definition at line 613 of file class.ilObjLearningSequence.php.

613 : int
614 {
615 return $this->getId();
616 }

References ilObject\getId().

Referenced by cloneIntroAndExtroContentPages(), createContentPage(), and getContentPageHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCurrentUserCurriculum()

ilObjLearningSequence::getCurrentUserCurriculum ( )

Definition at line 534 of file class.ilObjLearningSequence.php.

534 : string
535 {
536 $dic = $this->getLocalDI();
537 $curriculum = $dic["player.curriculumbuilder"]->getLearnerCurriculum(false);
538 return $dic['ui.renderer']->render($curriculum);
539 }

References $dic, and getLocalDI().

+ Here is the call graph for this function:

◆ getCurrentUserLaunchButtons()

ilObjLearningSequence::getCurrentUserLaunchButtons ( )

Definition at line 541 of file class.ilObjLearningSequence.php.

541 : string
542 {
543 $dic = $this->getLocalDI();
544 $buttons = $dic["player.launchlinksbuilder"]->getLaunchbuttonsComponent();
545 return $dic['ui.renderer']->render($buttons);
546 }

References $dic, and getLocalDI().

+ Here is the call graph for this function:

◆ getDefaultAdminRole()

ilObjLearningSequence::getDefaultAdminRole ( )

Definition at line 565 of file class.ilObjLearningSequence.php.

565 : int
566 {
567 return $this->getLSRoles()->getDefaultAdminRole();
568 }

References getLSRoles().

Referenced by cloneAutoGeneratedRoles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDefaultLearningSequenceRoles()

ilObjLearningSequence::getDefaultLearningSequenceRoles ( string  $a_grp_id = "")
Returns
array<string, int>|[]

Definition at line 573 of file class.ilObjLearningSequence.php.

573 : array
574 {
575 return $this->getLSRoles()->getDefaultLearningSequenceRoles($a_grp_id);
576 }

References getLSRoles().

+ Here is the call graph for this function:

◆ getDefaultMemberRole()

ilObjLearningSequence::getDefaultMemberRole ( )

Definition at line 560 of file class.ilObjLearningSequence.php.

560 : int
561 {
562 return $this->getLSRoles()->getDefaultMemberRole();
563 }

References getLSRoles().

Referenced by cloneAutoGeneratedRoles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDI()

ilObjLearningSequence::getDI ( )

Definition at line 254 of file class.ilObjLearningSequence.php.

254 : ArrayAccess
255 {
256 if (is_null($this->di)) {
257 $di = new ilLSDI();
258 $di->init($this->getDIC());
259 $this->di = $di;
260 }
261 return $this->di;
262 }

References $di, and getDIC().

Referenced by getActivationDB(), getLocalDI(), getPostConditionDB(), getSettingsDB(), and getStateDB().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDIC()

ilObjLearningSequence::getDIC ( )
protected

Definition at line 249 of file class.ilObjLearningSequence.php.

249 : ArrayAccess
250 {
251 return $this->dic;
252 }

References $dic.

Referenced by getDI(), and getLocalDI().

+ Here is the caller graph for this function:

◆ getInstanceByRefId()

static ilObjLearningSequence::getInstanceByRefId ( int  $ref_id)
static

Definition at line 68 of file class.ilObjLearningSequence.php.

68 : ?\ilObject
69 {
71 }
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
Class ilObject Basic functions for all objects.

References ilObject\$ref_id, and ilObjectFactory\getInstanceByRefId().

Referenced by ilDashboardLearningSequenceGUI\confirmedRemove().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLearnerProgressDB()

ilObjLearningSequence::getLearnerProgressDB ( )
protected

Definition at line 409 of file class.ilObjLearningSequence.php.

410 {
411 if (!$this->learner_progress_db) {
412 $this->learner_progress_db = $this->getLocalDI()['db.progress'];
413 }
415 }
Get LearningProgress and availability of items in sequence.
ilLearnerProgressDB $learner_progress_db

References $learner_progress_db, and getLocalDI().

Referenced by getLSLearnerItems().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLocalDI()

ilObjLearningSequence::getLocalDI ( )

Definition at line 264 of file class.ilObjLearningSequence.php.

264 : ArrayAccess
265 {
266 if (is_null($this->local_di)) {
267 $di = new ilLSLocalDI();
268 $di->init(
269 $this->getDIC(),
270 $this->getDI(),
271 new \ILIAS\Data\Factory(),
272 $this
273 );
274 $this->local_di = $di;
275 }
276 return $this->local_di;
277 }
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

References $di, $local_di, getDI(), and getDIC().

Referenced by getCurrentUserCurriculum(), getCurrentUserLaunchButtons(), getLearnerProgressDB(), getLSItemsDB(), getLSParticipants(), and getLSRoles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLocalLearningSequenceRoles()

ilObjLearningSequence::getLocalLearningSequenceRoles ( bool  $translate = false)
Returns
array<string, int>

Definition at line 555 of file class.ilObjLearningSequence.php.

555 : array
556 {
557 return $this->getLSRoles()->getLocalLearningSequenceRoles($translate);
558 }

References getLSRoles().

+ Here is the call graph for this function:

◆ getLPCompletionStates()

ilObjLearningSequence::getLPCompletionStates ( )
Returns
int[]

Definition at line 606 of file class.ilObjLearningSequence.php.

606 : array
607 {
608 return [
610 ];
611 }
const LP_STATUS_COMPLETED_NUM

References ilLPStatus\LP_STATUS_COMPLETED_NUM.

◆ getLSAccess()

ilObjLearningSequence::getLSAccess ( )

Definition at line 354 of file class.ilObjLearningSequence.php.

355 {
356 if (is_null($this->ls_access)) {
357 $this->ls_access = new ilObjLearningSequenceAccess();
358 }
359
360 return $this->ls_access;
361 }
ilObjLearningSequenceAccess $ls_access

References $ls_access.

◆ getLSActivation()

ilObjLearningSequence::getLSActivation ( )

Definition at line 295 of file class.ilObjLearningSequence.php.

296 {
297 if (!$this->ls_activation) {
298 $this->ls_activation = $this->getActivationDB()->getActivationForRefId($this->getRefId());
299 }
300
302 }
ilLearningSequenceActivation $ls_activation

References $ls_activation, getActivationDB(), and ilObject\getRefId().

Referenced by ilObjLearningSequenceSettingsGUI\buildFormElements(), cloneActivation(), read(), and ilObjLearningSequenceSettingsGUI\update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSItems()

ilObjLearningSequence::getLSItems ( )
Returns
LSItem[]

Definition at line 366 of file class.ilObjLearningSequence.php.

366 : array
367 {
368 $db = $this->getLSItemsDB();
369 return $db->getLSItems($this->getRefId());
370 }

References ilObject\$db, getLSItemsDB(), and ilObject\getRefId().

+ Here is the call graph for this function:

◆ getLSItemsDB()

ilObjLearningSequence::getLSItemsDB ( )
protected

Definition at line 325 of file class.ilObjLearningSequence.php.

326 {
327 if (!$this->items_db) {
328 $this->items_db = $this->getLocalDI()['db.lsitems'];
329 }
330 return $this->items_db;
331 }
Class ilLSItemsDB.
Definition: ilLSItemsDB.php:25

References $items_db, and getLocalDI().

Referenced by getLSItems(), and storeLSItems().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSLearnerItems()

ilObjLearningSequence::getLSLearnerItems ( int  $usr_id)
Returns
LSLearnerItem[]

Definition at line 428 of file class.ilObjLearningSequence.php.

428 : array
429 {
430 $db = $this->getLearnerProgressDB();
431 return $db->getLearnerItems($usr_id, $this->getRefId());
432 }

References ilObject\$db, getLearnerProgressDB(), and ilObject\getRefId().

Referenced by ilDashboardLearningSequenceGUI\isRelevantLso().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSParticipants()

ilObjLearningSequence::getLSParticipants ( )

Definition at line 341 of file class.ilObjLearningSequence.php.

342 {
343 if (!$this->ls_participants) {
344 $this->ls_participants = $this->getLocalDI()['participants'];
345 }
346
348 }
ilLearningSequenceParticipants $ls_participants

References $ls_participants, and getLocalDI().

Referenced by ilLearningSequenceParticipantsTableGUI\__construct(), and getMembersObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSRoles()

ilObjLearningSequence::getLSRoles ( )

Definition at line 434 of file class.ilObjLearningSequence.php.

435 {
436 if (!$this->ls_roles) {
437 $this->ls_roles = $this->getLocalDI()['roles'];
438 }
439 return $this->ls_roles;
440 }
ilLearningSequenceRoles $ls_roles

References $ls_roles, and getLocalDI().

Referenced by getDefaultAdminRole(), getDefaultLearningSequenceRoles(), getDefaultMemberRole(), getLocalLearningSequenceRoles(), and initDefaultRoles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSSettings()

ilObjLearningSequence::getLSSettings ( )

Definition at line 310 of file class.ilObjLearningSequence.php.

311 {
312 if (!$this->ls_settings) {
313 $this->ls_settings = $this->getSettingsDB()->getSettingsFor($this->getId());
314 }
315
316 return $this->ls_settings;
317 }
Settings for an LSO (like abstract, extro)
ilLearningSequenceSettings $ls_settings

References $ls_settings, ilObject\getId(), and getSettingsDB().

Referenced by ilLearningSequenceXMLWriter\__construct(), ilObjLearningSequenceSettingsGUI\buildFormElements(), cloneSettings(), getShowMembers(), read(), and ilObjLearningSequenceSettingsGUI\update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMailToMembersType()

ilObjLearningSequence::getMailToMembersType ( )

Get mail to members type.

Definition at line 445 of file class.ilObjLearningSequence.php.

445 : int
446 {
447 return 0;
448 }

◆ getMembersObject()

ilObjLearningSequence::getMembersObject ( )

Definition at line 349 of file class.ilObjLearningSequence.php.

349 : \ilLearningSequenceParticipants //used by Services/Membership/classes/class.ilMembershipGUI.php
350 {
351 return $this->getLSParticipants();
352 }

References getLSParticipants().

+ Here is the call graph for this function:

◆ getParentObjectInfo()

ilObjLearningSequence::getParentObjectInfo ( int  $ref_id,
array  $search_types 
)

Definition at line 593 of file class.ilObjLearningSequence.php.

593 : ?array
594 {
595 foreach ($this->tree->getPathFull($ref_id) as $hop) {
596 if (in_array($hop['type'], $search_types)) {
597 return $hop;
598 }
599 }
600 return null;
601 }

References ilObject\$ref_id.

◆ getPossiblePostConditionsForType()

ilObjLearningSequence::getPossiblePostConditionsForType ( string  $type)
Returns
array<"value" => "option_text">

Definition at line 397 of file class.ilObjLearningSequence.php.

397 : array
398 {
399 $condition_types = $this->il_condition_handler->getOperatorsByTriggerType($type);
400 $conditions = [
401 $this->getPostConditionDB()::STD_ALWAYS_OPERATOR => $this->lng->txt('condition_always')
402 ];
403 foreach ($condition_types as $cond_type) {
404 $conditions[$cond_type] = $this->lng->txt('condition_' . $cond_type);
405 }
406 return $conditions;
407 }

References ilObject\$type, getPostConditionDB(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getPostConditionDB()

ilObjLearningSequence::getPostConditionDB ( )
protected

Definition at line 333 of file class.ilObjLearningSequence.php.

334 {
335 if (!$this->conditions_db) {
336 $this->conditions_db = $this->getDI()["db.postconditions"];
337 }
339 }
Storage for ilLSPostConditions.

References $conditions_db, and getDI().

Referenced by deletePostConditionsForSubObjects(), and getPossiblePostConditionsForType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSettingsDB()

ilObjLearningSequence::getSettingsDB ( )
protected

Definition at line 279 of file class.ilObjLearningSequence.php.

280 {
281 if (!$this->settings_db) {
282 $this->settings_db = $this->getDI()['db.settings'];
283 }
284 return $this->settings_db;
285 }
Persistence for Settings (like abstract, extro)
ilLearningSequenceSettingsDB $settings_db

References $settings_db, and getDI().

Referenced by delete(), getLSSettings(), and updateSettings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getShowMembers()

ilObjLearningSequence::getShowMembers ( )

Definition at line 507 of file class.ilObjLearningSequence.php.

507 : bool
508 {
509 return $this->getLSSettings()->getMembersGallery();
510 }

References getLSSettings().

+ Here is the call graph for this function:

◆ getStateDB()

ilObjLearningSequence::getStateDB ( )

Definition at line 417 of file class.ilObjLearningSequence.php.

418 {
419 if (!$this->state_db) {
420 $this->state_db = $this->getDI()['db.states'];
421 }
422 return $this->state_db;
423 }
Persistence for View-States.

References $state_db, and getDI().

Referenced by delete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasContentPage()

ilObjLearningSequence::hasContentPage ( LSOPageType  $page_type)

Definition at line 618 of file class.ilObjLearningSequence.php.

618 : bool
619 {
620 return ilContainerPage::_exists($page_type->value, $this->getContentPageId());
621 }
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.

References ilPageObject\_exists().

Referenced by cloneIntroAndExtroContentPages(), createContentPage(), and getContentPageHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initDefaultRoles()

ilObjLearningSequence::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 set up default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example).

Reimplemented from ilObject.

Definition at line 578 of file class.ilObjLearningSequence.php.

578 : void
579 {
580 $this->getLSRoles()->initDefaultRoles();
581 }

References getLSRoles().

+ Here is the call graph for this function:

◆ raiseEvent()

ilObjLearningSequence::raiseEvent ( string  $event_type)
protected

Definition at line 119 of file class.ilObjLearningSequence.php.

119 : void
120 {
121 $this->app_event_handler->raise(
122 'components/ILIAS/LearningSequence',
123 $event_type,
124 array(
125 'obj_id' => $this->getId(),
126 'appointments' => null
127 )
128 );
129 }

References ilObject\getId().

Referenced by create(), delete(), and update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ilObjLearningSequence::read ( )

Reimplemented from ilContainer.

Definition at line 73 of file class.ilObjLearningSequence.php.

73 : void
74 {
75 parent::read();
76 $this->getLSSettings();
77 if ($this->getRefId()) {
78 $this->getLSActivation();
79 }
80 }

References getLSActivation(), getLSSettings(), and ilObject\getRefId().

+ Here is the call graph for this function:

◆ readMemberData()

ilObjLearningSequence::readMemberData ( array  $user_ids,
?array  $columns = null 
)
Parameters
array<int|string>$user_ids
string[]$columns
Returns
array<int|string, array>

Definition at line 588 of file class.ilObjLearningSequence.php.

588 : array
589 {
590 return $this->getLsRoles()->readMemberData($user_ids, $columns);
591 }

◆ setEffectiveOnlineStatus()

ilObjLearningSequence::setEffectiveOnlineStatus ( bool  $status)

Definition at line 528 of file class.ilObjLearningSequence.php.

528 : void
529 {
530 $act_db = $this->getActivationDB();
531 $act_db->setEffectiveOnlineStatus($this->getRefId(), $status);
532 }

References getActivationDB(), and ilObject\getRefId().

+ Here is the call graph for this function:

◆ storeLSItems()

ilObjLearningSequence::storeLSItems ( array  $ls_items)

Update LSItems.

Parameters
LSItem[]

Definition at line 376 of file class.ilObjLearningSequence.php.

376 : void
377 {
378 $db = $this->getLSItemsDB();
379 $db->storeItems($ls_items);
380 }

References ilObject\$db, and getLSItemsDB().

+ Here is the call graph for this function:

◆ update()

ilObjLearningSequence::update ( )

Reimplemented from ilContainer.

Definition at line 93 of file class.ilObjLearningSequence.php.

93 : bool
94 {
95 if (!parent::update()) {
96 return false;
97 }
98 $this->raiseEvent(self::E_UPDATE);
99
100 return true;
101 }

References raiseEvent().

Referenced by ilObjLearningSequenceSettingsGUI\update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateActivation()

ilObjLearningSequence::updateActivation ( ilLearningSequenceActivation  $settings)

Definition at line 304 of file class.ilObjLearningSequence.php.

304 : void
305 {
306 $this->getActivationDB()->store($settings);
307 $this->ls_activation = $settings;
308 }

References getActivationDB().

Referenced by ilObjLearningSequenceSettingsGUI\update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSettings()

ilObjLearningSequence::updateSettings ( ilLearningSequenceSettings  $settings)

Definition at line 319 of file class.ilObjLearningSequence.php.

319 : void
320 {
321 $this->getSettingsDB()->store($settings);
322 $this->ls_settings = $settings;
323 }

References getSettingsDB().

Referenced by cloneSettings(), and ilObjLearningSequenceSettingsGUI\update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $activation_db

ilLearningSequenceActivationDB ilObjLearningSequence::$activation_db = null
protected

Definition at line 37 of file class.ilObjLearningSequence.php.

Referenced by getActivationDB().

◆ $conditions_db

ilLSPostConditionDB ilObjLearningSequence::$conditions_db = null
protected

Definition at line 30 of file class.ilObjLearningSequence.php.

Referenced by getPostConditionDB().

◆ $ctrl

ilCtrl ilObjLearningSequence::$ctrl
protected

Definition at line 43 of file class.ilObjLearningSequence.php.

◆ $di

ArrayAccess ilObjLearningSequence::$di = null
protected

Definition at line 39 of file class.ilObjLearningSequence.php.

Referenced by getDI(), and getLocalDI().

◆ $dic

ArrayAccess ilObjLearningSequence::$dic
protected

◆ $il_condition_handler

ilConditionHandler ilObjLearningSequence::$il_condition_handler
protected

Definition at line 45 of file class.ilObjLearningSequence.php.

◆ $il_news

ILIAS News Service ilObjLearningSequence::$il_news
protected

Definition at line 44 of file class.ilObjLearningSequence.php.

Referenced by announceLSOOnline().

◆ $items_db

ilLSItemsDB ilObjLearningSequence::$items_db = null
protected

Definition at line 29 of file class.ilObjLearningSequence.php.

Referenced by getLSItemsDB().

◆ $learner_progress_db

ilLearnerProgressDB ilObjLearningSequence::$learner_progress_db = null
protected

Definition at line 31 of file class.ilObjLearningSequence.php.

Referenced by getLearnerProgressDB().

◆ $local_di

ArrayAccess ilObjLearningSequence::$local_di = null
protected

Definition at line 40 of file class.ilObjLearningSequence.php.

Referenced by getLocalDI().

◆ $ls_access

ilObjLearningSequenceAccess ilObjLearningSequence::$ls_access = null
protected

Definition at line 41 of file class.ilObjLearningSequence.php.

Referenced by getLSAccess().

◆ $ls_activation

ilLearningSequenceActivation ilObjLearningSequence::$ls_activation = null
protected

Definition at line 38 of file class.ilObjLearningSequence.php.

Referenced by getLSActivation().

◆ $ls_participants

ilLearningSequenceParticipants ilObjLearningSequence::$ls_participants = null
protected

Definition at line 32 of file class.ilObjLearningSequence.php.

Referenced by getLSParticipants().

◆ $ls_roles

ilLearningSequenceRoles ilObjLearningSequence::$ls_roles = null
protected

Definition at line 35 of file class.ilObjLearningSequence.php.

Referenced by getLSRoles().

◆ $ls_settings

ilLearningSequenceSettings ilObjLearningSequence::$ls_settings = null
protected

Definition at line 33 of file class.ilObjLearningSequence.php.

Referenced by getLSSettings().

◆ $settings_db

ilLearningSequenceSettingsDB ilObjLearningSequence::$settings_db = null
protected

Definition at line 36 of file class.ilObjLearningSequence.php.

Referenced by getSettingsDB().

◆ $state_db

ilLSStateDB ilObjLearningSequence::$state_db = null
protected

Definition at line 34 of file class.ilObjLearningSequence.php.

Referenced by getStateDB().

◆ E_CREATE

const ilObjLearningSequence::E_CREATE = 'create'

Definition at line 25 of file class.ilObjLearningSequence.php.

◆ E_DELETE

const ilObjLearningSequence::E_DELETE = 'delete'

Definition at line 27 of file class.ilObjLearningSequence.php.

◆ E_UPDATE

const ilObjLearningSequence::E_UPDATE = 'update'

Definition at line 26 of file class.ilObjLearningSequence.php.

◆ OBJ_TYPE


The documentation for this class was generated from the following file: