ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 
 update ()
 
 delete ()
 
 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 ()
 
 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 (?ilObjectTranslation $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 ()
 
 putInTree (int $parent_ref_id)
 
 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)
 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
 
ilObjectTranslation $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.

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

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  }
bool $call_by_reference
global $DIC
Definition: shib_login.php:22
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(Container $dic, ilPlugin $plugin)
+ 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 448 of file class.ilObjLearningSequence.php.

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().

448  : void
449  {
450  global $DIC;
451  $main_tpl = $DIC->ui()->mainTemplate();
452 
453  $ilAccess = $DIC['ilAccess'];
454  $ilErr = $DIC['ilErr'];
455  $lng = $DIC['lng'];
456  $ilUser = $DIC['ilUser'];
457  $request_wrapper = $DIC->http()->wrapper()->query();
458  $refinery = $DIC->refinery();
459 
460  if (substr($add, 0, 5) == 'rcode') {
461  if ($ilUser->getId() == ANONYMOUS_USER_ID) {
462  $request_target = $request_wrapper->retrieve("target", $refinery->kindlyTo()->string());
463  // Redirect to login for anonymous
465  "login.php?target=" . $request_target . "&cmd=force_login&lang=" .
466  $ilUser->getCurrentLanguage()
467  );
468  }
469 
470  // Redirects to target location after assigning user to learning sequence
472  $target,
474  substr($add, 5)
475  );
476  }
477 
478  if ($add == "mem" && $ilAccess->checkAccess("manage_members", "", $target)) {
479  ilObjectGUI::_gotoRepositoryNode($target, "members");
480  }
481 
482  if ($ilAccess->checkAccess("read", "", $target)) {
484  } else {
485  // to do: force flat view
486  if ($ilAccess->checkAccess("visible", "", $target)) {
487  ilObjectGUI::_gotoRepositoryNode($target, "infoScreenGoto");
488  } else {
489  if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
490  $main_tpl->setOnScreenMessage('failure', sprintf(
491  $lng->txt("msg_no_perm_read_item"),
493  ), true);
495  }
496  }
497  }
498 
499  $ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
500  }
static handleCode(int $a_ref_id, string $a_type, string $a_code)
const ANONYMOUS_USER_ID
Definition: constants.php:27
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...
const ROOT_FOLDER_ID
Definition: constants.php:32
static _gotoRepositoryNode(int $ref_id, string $cmd="")
$ilErr
Definition: raiseError.php:33
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
ilLanguage $lng
global $DIC
Definition: shib_login.php:22
static redirect(string $a_script)
static _lookupType(int $id, bool $reference=false)
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
+ Here is the call graph for this function:

◆ announceLSOOffline()

ilObjLearningSequence::announceLSOOffline ( )

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

518  : void
519  {
520  //NYI
521  }

◆ announceLSOOnline()

ilObjLearningSequence::announceLSOOnline ( )

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

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

507  : void
508  {
509  $ns = $this->il_news;
510  $context = $ns->contextForRefId($this->getRefId());
511  $item = $ns->item($context);
512  $item->setContentIsLangVar(true);
513  $item->setContentTextIsLangVar(true);
514  $item->setTitle("lso_news_online_title");
515  $item->setContent("lso_news_online_txt");
516  $ns->data()->save($item);
517  }
$context
Definition: webdav.php:31
+ Here is the call graph for this function:

◆ cloneActivation()

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

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

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

Referenced by raiseEvent().

221  : void
222  {
223  // #14596
224  $cwo = ilCopyWizardOptions::_getInstance($a_copy_id);
225  if ($cwo->isRootNode($this->getRefId())) {
226  $activation = $new_obj->getLSActivation()->withIsOnline(false);
227  } else {
228  $activation = $new_obj->getLSActivation()
229  ->withIsOnline($this->getLSActivation()->getIsOnline())
230  ->withActivationStart($this->getLSActivation()->getActivationStart())
231  ->withActivationEnd($this->getLSActivation()->getActivationEnd());
232  }
233 
234  $new_status = ($new_obj->getLSActivation()->getEffectiveOnlineStatus())
235  ? $new_obj->getObjectProperties()->getPropertyIsOnline()->withOnline()
236  : $new_obj->getObjectProperties()->getPropertyIsOnline()->withOffline();
237  $new_obj->getObjectProperties()->storePropertyIsOnline($new_status);
238 
239  $new_obj->getActivationDB()->store(
240  $activation
241  );
242  }
static _getInstance(int $a_copy_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cloneAutoGeneratedRoles()

ilObjLearningSequence::cloneAutoGeneratedRoles ( ilObjLearningSequence  $new_obj)
protected

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

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

Referenced by raiseEvent().

167  : bool
168  {
169  $admin = $this->getDefaultAdminRole();
170  $new_admin = $new_obj->getDefaultAdminRole();
171 
172  if (!$admin || !$new_admin || !$this->getRefId() || !$new_obj->getRefId()) {
173  $this->log->write(__METHOD__ . ' : Error cloning auto generated role: il_lso_admin');
174  }
175 
176  $this->rbac_admin->copyRolePermissions($admin, $this->getRefId(), $new_obj->getRefId(), $new_admin, true);
177  $this->log->write(__METHOD__ . ' : Finished copying of role lso_admin.');
178 
179  $member = $this->getDefaultMemberRole();
180  $new_member = $new_obj->getDefaultMemberRole();
181 
182  if (!$member || !$new_member) {
183  $this->log->write(__METHOD__ . ' : Error cloning auto generated role: il_lso_member');
184  }
185 
186  $this->rbac_admin->copyRolePermissions($member, $this->getRefId(), $new_obj->getRefId(), $new_member, true);
187  $this->log->write(__METHOD__ . ' : Finished copying of role lso_member.');
188 
189  return true;
190  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cloneIntroAndExtroContentPages()

ilObjLearningSequence::cloneIntroAndExtroContentPages ( ilObjLearningSequence  $new_obj,
array  $cp_types 
)
protected

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

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

Referenced by raiseEvent().

151  : void
152  {
153  foreach ($cp_types as $type) {
154  $old_intro_page_id = $this->getContentPageId($type);
156  "cont",
157  $old_intro_page_id
158  )) {
159  $new_obj->createContentPage($type);
160  $new_copg_id = $new_obj->getContentPageId($type);
161  $original_page = new \ilContainerPage($old_intro_page_id);
162  $original_page->copy($new_copg_id, "cont", $new_copg_id);
163  }
164  }
165  }
string $type
createContentPage(LSOPageType $page_type)
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cloneLPSettings()

ilObjLearningSequence::cloneLPSettings ( int  $obj_id)
protected

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

References ilObject\getId().

Referenced by raiseEvent().

215  : void
216  {
217  $lp_settings = new ilLPObjSettings($this->getId());
218  $lp_settings->cloneSettings($obj_id);
219  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cloneSettings()

ilObjLearningSequence::cloneSettings ( ilObjLearningSequence  $new_obj)
protected

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

References getLSSettings(), and updateSettings().

Referenced by raiseEvent().

192  : void
193  {
194  $source = $this->getLSSettings();
195  $target = $new_obj->getLSSettings();
196 
197  foreach ($source->getUploads() as $key => $upload_info) {
198  $target = $target->withUpload($upload_info, $key);
199  }
200 
201  foreach ($source->getDeletions() as $deletion) {
202  $target = $target->withDeletion($deletion);
203  }
204 
205  $target = $target
206  ->withAbstract($source->getAbstract())
207  ->withExtro($source->getExtro())
208  ->withAbstractImage($source->getAbstractImage())
209  ->withExtroImage($source->getExtroImage())
210  ;
211 
212  $new_obj->updateSettings($target);
213  }
updateSettings(ilLearningSequenceSettings $settings)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

ilObjLearningSequence::create ( )

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

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

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  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:

◆ createContentPage()

ilObjLearningSequence::createContentPage ( LSOPageType  $page_type)

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

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

Referenced by cloneIntroAndExtroContentPages().

618  : void
619  {
620  if ($this->hasContentPage($page_type)) {
621  throw new \LogicException('will not create content page - it already exists.');
622  }
623  $new_page_object = $page_type === LSOPageType::INTRO ? new ilLSOIntroPage() : new ilLSOExtroPage();
624  $new_page_object->setId($this->getContentPageId());
625  $new_page_object->setParentId($this->getId());
626  $new_page_object->createFromXML();
627  }
hasContentPage(LSOPageType $page_type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilObjLearningSequence::delete ( )

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

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

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.
+ 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 381 of file class.ilObjLearningSequence.php.

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

381  : void
382  {
383  $rep_utils = new ilRepUtil();
384  $rep_utils->deleteObjects($this->getRefId(), $ref_ids);
385  $db = $this->getPostConditionDB();
386  $db->delete($ref_ids);
387  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilDBInterface $db
+ Here is the call graph for this function:

◆ getActivationDB()

ilObjLearningSequence::getActivationDB ( )
protected

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

References $activation_db, and getDI().

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

283  {
284  if (!$this->activation_db) {
285  $this->activation_db = $this->getDI()['db.activation'];
286  }
287  return $this->activation_db;
288  }
ilLearningSequenceActivationDB $activation_db
Persistence for online/activation period.
+ 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 629 of file class.ilObjLearningSequence.php.

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

Referenced by ilLSLocalDI\init().

629  : string
630  {
631  if (!$this->hasContentPage($page_type)) {
632  return '';
633  }
634 
635  $gui = $page_type === LSOPageType::INTRO ?
636  new ilObjLearningSequenceEditIntroGUI(LSOPageType::INTRO->value, $this->getContentPageId()) :
638 
639  $gui->setPresentationTitle("");
640  $gui->setTemplateOutput(false);
641  $gui->setHeader("");
642  $ret = $gui->showPage();
643  return $ret;
644  }
Class ilObjLearningSequenceEditExtroGUI ilObjLearningSequenceEditExtroGUI: ilPageEditorGUI, ilEditClipboardGUI.
Class ilObjLearningSequenceEditIntroGUI ilObjLearningSequenceEditIntroGUI: ilPageEditorGUI, ilEditClipboardGUI.
hasContentPage(LSOPageType $page_type)
LSOPageType
Definition: LSOPageType.php:21
setPresentationTitle(string $a_title="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getContentPageId()

ilObjLearningSequence::getContentPageId ( )

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

References ilObject\getId().

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

608  : int
609  {
610  return $this->getId();
611  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCurrentUserCurriculum()

ilObjLearningSequence::getCurrentUserCurriculum ( )

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

References getLocalDI().

529  : string
530  {
531  $dic = $this->getLocalDI();
532  $curriculum = $dic["player.curriculumbuilder"]->getLearnerCurriculum(false);
533  return $dic['ui.renderer']->render($curriculum);
534  }
+ Here is the call graph for this function:

◆ getCurrentUserLaunchButtons()

ilObjLearningSequence::getCurrentUserLaunchButtons ( )

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

References getLocalDI().

536  : string
537  {
538  $dic = $this->getLocalDI();
539  $buttons = $dic["player.launchlinksbuilder"]->getLaunchbuttonsComponent();
540  return $dic['ui.renderer']->render($buttons);
541  }
+ Here is the call graph for this function:

◆ getDefaultAdminRole()

ilObjLearningSequence::getDefaultAdminRole ( )

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

References getLSRoles().

Referenced by cloneAutoGeneratedRoles().

560  : int
561  {
562  return $this->getLSRoles()->getDefaultAdminRole();
563  }
+ 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 568 of file class.ilObjLearningSequence.php.

References getLSRoles().

568  : array
569  {
570  return $this->getLSRoles()->getDefaultLearningSequenceRoles($a_grp_id);
571  }
+ Here is the call graph for this function:

◆ getDefaultMemberRole()

ilObjLearningSequence::getDefaultMemberRole ( )

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

References getLSRoles().

Referenced by cloneAutoGeneratedRoles().

555  : int
556  {
557  return $this->getLSRoles()->getDefaultMemberRole();
558  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDI()

ilObjLearningSequence::getDI ( )

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

References $di, and getDIC().

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

249  : ArrayAccess
250  {
251  if (is_null($this->di)) {
252  $di = new ilLSDI();
253  $di->init($this->getDIC());
254  $this->di = $di;
255  }
256  return $this->di;
257  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDIC()

ilObjLearningSequence::getDIC ( )
protected

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

References $dic.

Referenced by getDI(), and getLocalDI().

244  : ArrayAccess
245  {
246  return $this->dic;
247  }
+ 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.

References ilObjectFactory\getInstanceByRefId().

Referenced by ilDashboardLearningSequenceGUI\confirmedRemove(), and ilDashboardLearningSequenceGUI\initViewSettings().

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

◆ getLearnerProgressDB()

ilObjLearningSequence::getLearnerProgressDB ( )
protected

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

References $learner_progress_db, and getLocalDI().

Referenced by getLSLearnerItems().

405  {
406  if (!$this->learner_progress_db) {
407  $this->learner_progress_db = $this->getLocalDI()['db.progress'];
408  }
410  }
Get LearningProgress and availability of items in sequence.
ilLearnerProgressDB $learner_progress_db
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLocalDI()

ilObjLearningSequence::getLocalDI ( )

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

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

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

259  : ArrayAccess
260  {
261  if (is_null($this->local_di)) {
262  $di = new ilLSLocalDI();
263  $di->init(
264  $this->getDIC(),
265  $this->getDI(),
266  new \ILIAS\Data\Factory(),
267  $this
268  );
269  $this->local_di = $di;
270  }
271  return $this->local_di;
272  }
Interface Observer Contains several chained tasks and infos about them.
+ 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 550 of file class.ilObjLearningSequence.php.

References getLSRoles().

550  : array
551  {
552  return $this->getLSRoles()->getLocalLearningSequenceRoles($translate);
553  }
+ Here is the call graph for this function:

◆ getLPCompletionStates()

ilObjLearningSequence::getLPCompletionStates ( )
Returns
int[]

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

References ilLPStatus\LP_STATUS_COMPLETED_NUM.

601  : array
602  {
603  return [
605  ];
606  }
const LP_STATUS_COMPLETED_NUM

◆ getLSAccess()

ilObjLearningSequence::getLSAccess ( )

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

References $ls_access.

350  {
351  if (is_null($this->ls_access)) {
352  $this->ls_access = new ilObjLearningSequenceAccess();
353  }
354 
355  return $this->ls_access;
356  }
ilObjLearningSequenceAccess $ls_access

◆ getLSActivation()

ilObjLearningSequence::getLSActivation ( )

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

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

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

291  {
292  if (!$this->ls_activation) {
293  $this->ls_activation = $this->getActivationDB()->getActivationForRefId($this->getRefId());
294  }
295 
296  return $this->ls_activation;
297  }
ilLearningSequenceActivation $ls_activation
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSItems()

ilObjLearningSequence::getLSItems ( )
Returns
LSItem[]

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

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

361  : array
362  {
363  $db = $this->getLSItemsDB();
364  return $db->getLSItems($this->getRefId());
365  }
ilDBInterface $db
+ Here is the call graph for this function:

◆ getLSItemsDB()

ilObjLearningSequence::getLSItemsDB ( )
protected

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

References $items_db, and getLocalDI().

Referenced by getLSItems(), and storeLSItems().

320  : ilLSItemsDB
321  {
322  if (!$this->items_db) {
323  $this->items_db = $this->getLocalDI()['db.lsitems'];
324  }
325  return $this->items_db;
326  }
Class ilLSItemsDB.
Definition: ilLSItemsDB.php:24
+ 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 423 of file class.ilObjLearningSequence.php.

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

Referenced by ilDashboardLearningSequenceGUI\isRelevantLso().

423  : array
424  {
425  $db = $this->getLearnerProgressDB();
426  return $db->getLearnerItems($usr_id, $this->getRefId());
427  }
ilDBInterface $db
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSParticipants()

ilObjLearningSequence::getLSParticipants ( )

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

References $ls_participants, and getLocalDI().

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

337  {
338  if (!$this->ls_participants) {
339  $this->ls_participants = $this->getLocalDI()['participants'];
340  }
341 
342  return $this->ls_participants;
343  }
ilLearningSequenceParticipants $ls_participants
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSRoles()

ilObjLearningSequence::getLSRoles ( )

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

References $ls_roles, and getLocalDI().

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

430  {
431  if (!$this->ls_roles) {
432  $this->ls_roles = $this->getLocalDI()['roles'];
433  }
434  return $this->ls_roles;
435  }
ilLearningSequenceRoles $ls_roles
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLSSettings()

ilObjLearningSequence::getLSSettings ( )

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

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

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

306  {
307  if (!$this->ls_settings) {
308  $this->ls_settings = $this->getSettingsDB()->getSettingsFor($this->getId());
309  }
310 
311  return $this->ls_settings;
312  }
ilLearningSequenceSettings $ls_settings
Settings for an LSO (like abstract, extro)
+ 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 440 of file class.ilObjLearningSequence.php.

440  : int
441  {
442  return 0;
443  }

◆ getMembersObject()

ilObjLearningSequence::getMembersObject ( )

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

References getLSParticipants().

344  : \ilLearningSequenceParticipants //used by Services/Membership/classes/class.ilMembershipGUI.php
345  {
346  return $this->getLSParticipants();
347  }
+ Here is the call graph for this function:

◆ getParentObjectInfo()

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

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

References null.

588  : ?array
589  {
590  foreach ($this->tree->getPathFull($ref_id) as $hop) {
591  if (in_array($hop['type'], $search_types)) {
592  return $hop;
593  }
594  }
595  return null;
596  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getPossiblePostConditionsForType()

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

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

References getPostConditionDB(), and ILIAS\Repository\lng().

392  : array
393  {
394  $condition_types = $this->il_condition_handler->getOperatorsByTriggerType($type);
395  $conditions = [
396  $this->getPostConditionDB()::STD_ALWAYS_OPERATOR => $this->lng->txt('condition_always')
397  ];
398  foreach ($condition_types as $cond_type) {
399  $conditions[$cond_type] = $this->lng->txt('condition_' . $cond_type);
400  }
401  return $conditions;
402  }
string $type
+ Here is the call graph for this function:

◆ getPostConditionDB()

ilObjLearningSequence::getPostConditionDB ( )
protected

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

References $conditions_db, and getDI().

Referenced by deletePostConditionsForSubObjects(), and getPossiblePostConditionsForType().

329  {
330  if (!$this->conditions_db) {
331  $this->conditions_db = $this->getDI()["db.postconditions"];
332  }
333  return $this->conditions_db;
334  }
Storage for ilLSPostConditions.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSettingsDB()

ilObjLearningSequence::getSettingsDB ( )
protected

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

References $settings_db, and getDI().

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

275  {
276  if (!$this->settings_db) {
277  $this->settings_db = $this->getDI()['db.settings'];
278  }
279  return $this->settings_db;
280  }
ilLearningSequenceSettingsDB $settings_db
Persistence for Settings (like abstract, extro)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getShowMembers()

ilObjLearningSequence::getShowMembers ( )

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

References getLSSettings().

502  : bool
503  {
504  return $this->getLSSettings()->getMembersGallery();
505  }
+ Here is the call graph for this function:

◆ getStateDB()

ilObjLearningSequence::getStateDB ( )

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

References $state_db, and getDI().

Referenced by delete().

412  : ilLSStateDB
413  {
414  if (!$this->state_db) {
415  $this->state_db = $this->getDI()['db.states'];
416  }
417  return $this->state_db;
418  }
Persistence for View-States.
+ 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 613 of file class.ilObjLearningSequence.php.

References ilPageObject\_exists().

Referenced by createContentPage(), and getContentPageHTML().

613  : bool
614  {
615  return ilContainerPage::_exists($page_type->value, $this->getContentPageId());
616  }
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initDefaultRoles()

ilObjLearningSequence::initDefaultRoles ( )

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

References getLSRoles().

573  : void
574  {
575  $this->getLSRoles()->initDefaultRoles();
576  }
+ Here is the call graph for this function:

◆ raiseEvent()

ilObjLearningSequence::raiseEvent ( string  $event_type)
protected

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

References cloneActivation(), cloneAutoGeneratedRoles(), cloneIntroAndExtroContentPages(), cloneLPSettings(), ilObject\cloneMetaData(), cloneSettings(), EXTRO, ilObject\getId(), null, and ILIAS\Repository\user().

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

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ilObjLearningSequence::read ( )

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

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

73  : void
74  {
75  parent::read();
76  $this->getLSSettings();
77  if ($this->getRefId()) {
78  $this->getLSActivation();
79  }
80  }
+ 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 583 of file class.ilObjLearningSequence.php.

583  : array
584  {
585  return $this->getLsRoles()->readMemberData($user_ids, $columns);
586  }

◆ setEffectiveOnlineStatus()

ilObjLearningSequence::setEffectiveOnlineStatus ( bool  $status)

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

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

523  : void
524  {
525  $act_db = $this->getActivationDB();
526  $act_db->setEffectiveOnlineStatus($this->getRefId(), $status);
527  }
+ Here is the call graph for this function:

◆ storeLSItems()

ilObjLearningSequence::storeLSItems ( array  $ls_items)

Update LSItems.

Parameters
LSItem[]

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

References ilObject\$db, and getLSItemsDB().

371  : void
372  {
373  $db = $this->getLSItemsDB();
374  $db->storeItems($ls_items);
375  }
ilDBInterface $db
+ Here is the call graph for this function:

◆ update()

ilObjLearningSequence::update ( )

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

References raiseEvent().

93  : bool
94  {
95  if (!parent::update()) {
96  return false;
97  }
98  $this->raiseEvent(self::E_UPDATE);
99 
100  return true;
101  }
+ Here is the call graph for this function:

◆ updateActivation()

ilObjLearningSequence::updateActivation ( ilLearningSequenceActivation  $settings)

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

References getActivationDB().

299  : void
300  {
301  $this->getActivationDB()->store($settings);
302  $this->ls_activation = $settings;
303  }
+ Here is the call graph for this function:

◆ updateSettings()

ilObjLearningSequence::updateSettings ( ilLearningSequenceSettings  $settings)

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

References getSettingsDB().

Referenced by cloneSettings().

314  : void
315  {
316  $this->getSettingsDB()->store($settings);
317  $this->ls_settings = $settings;
318  }
+ 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

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

Referenced by getDIC().

◆ $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

const ilObjLearningSequence::OBJ_TYPE = 'lso'

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