ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjSession Class Reference
+ Inheritance diagram for ilObjSession:
+ Collaboration diagram for ilObjSession:

Public Member Functions

 __construct ($a_id=0, $a_call_by_reference=true)
 Constructor public. More...
 
 getPresentationTitle ()
 get title (overwritten from base class) More...
 
 getPresentationTitleAppointmentPeriod ()
 
 initDefaultRoles ()
 Create local session participant role. More...
 
 getEventId ()
 sget event id More...
 
 setLocation ($a_location)
 set location More...
 
 getLocation ()
 get location More...
 
 setName ($a_name)
 set name More...
 
 getName ()
 get name More...
 
 setPhone ($a_phone)
 set phone More...
 
 getPhone ()
 get phone More...
 
 setEmail ($a_email)
 set email More...
 
 getEmail ()
 get email More...
 
 hasTutorSettings ()
 check if there any tutor settings More...
 
 setDetails ($a_details)
 set details More...
 
 getDetails ()
 get details More...
 
 setRegistrationType ($a_type)
 
 getRegistrationType ()
 
 isRegistrationUserLimitEnabled ()
 
 enableRegistrationUserLimit ($a_limit)
 
 getRegistrationMinUsers ()
 
 setRegistrationMinUsers ($a_users)
 
 getRegistrationMaxUsers ()
 
 setRegistrationMaxUsers ($a_users)
 
 isRegistrationWaitingListEnabled ()
 
 enableRegistrationWaitingList ($a_stat)
 
 setWaitingListAutoFill ($a_value)
 
 hasWaitingListAutoFill ()
 
 setShowMembers ($a_status)
 Show members gallery. More...
 
 getShowMembers ()
 Member gallery enabled. More...
 
 enabledRegistration ()
 is registration enabled More...
 
 getAppointments ()
 get appointments More...
 
 addAppointment ($appointment)
 add appointment More...
 
 setAppointments ($appointments)
 set appointments More...
 
 getFirstAppointment ()
 get first appointment More...
 
 getFiles ()
 get files More...
 
 setMailToMembersType ($a_type)
 Set mail to members type. More...
 
 getMailToMembersType ()
 Get mail to members type. More...
 
 validate ()
 validate More...
 
 cloneSettings (ilObjSession $new_obj)
 clone settings More...
 
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone dependencies. More...
 
 create ($a_skip_meta_data=false)
 create new session More...
 
 update ($a_skip_meta_update=false)
 update object More...
 
 delete ()
 delete session and all related data More...
 
 read ()
 read session data More...
 
 initFiles ()
 init files More...
 
 prepareCalendarAppointments ($a_mode='create')
 Prepare calendar appointments. More...
 
 handleAutoFill ()
 Handle auto fill for session members. More...
 
 getMembersObject ()
 Get members objects. More...
 
 getEnableMap ()
 ALways disabled. More...
 
- Public Member Functions inherited from ilObject
 __construct ($a_id=0, $a_reference=true)
 Constructor public. More...
 
 withReferences ()
 determines wehter objects are referenced or not (got ref ids or not) More...
 
 read ()
 read object data from db into object More...
 
 getId ()
 get object id public More...
 
 setId ($a_id)
 set object id public More...
 
 setRefId ($a_id)
 set reference id public More...
 
 getRefId ()
 get reference id public More...
 
 getType ()
 get object type public More...
 
 setType ($a_type)
 set object type public More...
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 get object title public More...
 
 getUntranslatedTitle ()
 get untranslated object title public More...
 
 setTitle ($a_title)
 set object title More...
 
 getDescription ()
 get object description More...
 
 setDescription ($a_desc)
 set object description More...
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 get import id More...
 
 setImportId ($a_import_id)
 set import id More...
 
 setOfflineStatus ($a_status)
 Set offline status. More...
 
 getOfflineStatus ()
 Get offline status. More...
 
 supportsOfflineHandling ()
 Check whether object supports offline handling. More...
 
 getOwner ()
 get object owner More...
 
 getOwnerName ()
 
 setOwner ($a_owner)
 set object owner More...
 
 getCreateDate ()
 get create date public More...
 
 getLastUpdateDate ()
 get last update date public More...
 
 getDiskUsage ()
 Gets the disk usage of the object in bytes. More...
 
 create ()
 create More...
 
 update ()
 update object in db More...
 
 MDUpdateListener ($a_element)
 Meta data update listener. More...
 
 createMetaData ()
 create meta data entry More...
 
 updateMetaData ()
 update meta data entry More...
 
 deleteMetaData ()
 delete meta data entry More...
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree ($a_parent_ref)
 maybe this method should be in tree object!? More...
 
 setPermissions ($a_parent_ref)
 set permissions of object More...
 
 setParentRolePermissions ($a_parent_ref)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g courses, groups for building permission intersections with non_member templates. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 count references of object More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More...
 
 applyDidacticTemplate ($a_tpl_id)
 Apply template. More...
 
 setRegisterMode ($a_bool)
 
 isUserRegistered ($a_user_id=0)
 
 requireRegistration ()
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo ($a_target_id, $a_copy_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone object dependencies. More...
 
 cloneMetaData ($target_obj)
 Copy meta data. More...
 
 getPossibleSubObjects ($a_filter=true)
 get all possible subobjects of this type the object can decide which types of subobjects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static _lookupRegistrationEnabled ($a_obj_id)
 lookup registration enabled More...
 
static lookupSession ($a_obj_id)
 Get session data. More...
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId ($a_import_id)
 
static _lookupImportId ($a_obj_id)
 
static _lookupOwnerName ($a_owner_id)
 lookup owner name for owner id More...
 
static _getIdForImportId ($a_import_id)
 get current object id for import id (static) More...
 
static _getAllReferences ($a_id)
 get all reference ids of object More...
 
static _lookupTitle ($a_id)
 lookup object title More...
 
static lookupOfflineStatus ($a_obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner ($a_id)
 lookup object owner More...
 
static _getIdsForTitle ($title, $type='', $partialmatch=false)
 
static _lookupDescription ($a_id)
 lookup object description More...
 
static _lookupLastUpdate ($a_id, $a_as_string=false)
 lookup last update More...
 
static _getLastUpdateOfObjects ($a_objs)
 Get last update for a set of media objects. More...
 
static _lookupObjId ($a_id)
 
static _setDeletedDate ($a_ref_id)
 only called in ilTree::saveSubTree More...
 
static setDeletedDates ($a_ref_ids)
 Set deleted date. More...
 
static _resetDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
static _lookupDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
static _writeTitle ($a_obj_id, $a_title)
 write title to db (static) More...
 
static _writeDescription ($a_obj_id, $a_desc)
 write description to db (static) More...
 
static _writeImportId ($a_obj_id, $a_import_id)
 write import id to db (static) More...
 
static _lookupType ($a_id, $a_reference=false)
 lookup object type More...
 
static _isInTrash ($a_ref_id)
 checks wether object is in trash More...
 
static _hasUntrashedReference ($a_obj_id)
 checks wether an object has at least one reference that is not in trash More...
 
static _lookupObjectId ($a_ref_id)
 lookup object id More...
 
static _getObjectsDataForType ($a_type, $a_omit_trash=false)
 get all objects of a certain type More...
 
static _exists ($a_id, $a_reference=false, $a_type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType ($a_obj_type="", $a_owner="")
 Get objects by type. More...
 
static _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true)
 Prepare copy wizard object selection. More...
 
static collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies ($a_obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $a_obj_ids)
 Get long description data. More...
 
static getAllOwnedRepositoryObjects ($a_user_id)
 Get all ids of objects user owns. More...
 
static fixMissingTitles ($a_type, array &$a_obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate ($a_id)
 Lookup creation date. More...
 
static hasAutoRating ($a_type, $a_ref_id)
 Check if auto rating is active for parent group/course. More...
 

Data Fields

const MAIL_ALLOWED_ALL = 1
 
const MAIL_ALLOWED_ADMIN = 2
 
const LOCAL_ROLE_PARTICIPANT_PREFIX = 'il_sess_participant'
 
const CAL_REG_START = 1
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 max length of object title More...
 
const DESC_LENGTH = 128
 
 $lng
 
 $id
 
 $ref_id
 
 $type
 
 $title
 
 $untranslatedTitle
 
 $desc
 
 $long_desc
 
 $owner
 
 $create_date
 
 $last_update
 
 $import_id
 
 $register = false
 
 $referenced
 
 $objectList
 
 $max_title
 
 $max_desc
 
 $add_dots
 

Protected Member Functions

 initAppointments ()
 init appointments More...
 
 initParticipants ()
 init participants object More...
 

Protected Attributes

 $db
 
 $location
 
 $name
 
 $phone
 
 $email
 
 $details
 
 $registration
 
 $event_id
 
 $reg_type = ilMembershipRegistrationSettings::TYPE_NONE
 
 $reg_limited = 0
 
 $reg_min_users = 0
 
 $reg_limited_users = 0
 
 $reg_waiting_list = 0
 
 $reg_waiting_list_autofill
 
 $show_members = false
 
 $mail_members = self::MAIL_ALLOWED_ADMIN
 
 $appointments
 
 $files = array()
 
 $session_logger = null
 
 $members_obj
 
- Protected Attributes inherited from ilObject
 $objDefinition
 
 $db
 
 $log
 
 $error
 
 $tree
 
 $app_event_handler
 
 $rbacadmin
 
 $rbacreview
 

Detailed Description

Definition at line 16 of file class.ilObjSession.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjSession::__construct (   $a_id = 0,
  $a_call_by_reference = true 
)

Constructor public.

Parameters
integerreference_id or object_id
booleantreat the id as reference_id (true) or object_id (false)

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

References $DIC, $GLOBALS, and $ilDB.

74  {
75  global $DIC;
76 
77  $ilDB = $DIC['ilDB'];
78 
79  $this->session_logger = $GLOBALS['DIC']->logger()->sess();
80 
81  $this->db = $ilDB;
82  $this->type = "sess";
83  parent::__construct($a_id, $a_call_by_reference);
84  }
global $DIC
Definition: saml.php:7
global $ilDB
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.

Member Function Documentation

◆ _lookupRegistrationEnabled()

static ilObjSession::_lookupRegistrationEnabled (   $a_obj_id)
static

lookup registration enabled

public

Parameters

Definition at line 94 of file class.ilObjSession.php.

References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and ilMembershipRegistrationSettings\TYPE_NONE.

Referenced by ilLPStatusEvent\_getStatusInfo(), and ilLPStatusEvent\determineStatus().

95  {
96  global $DIC;
97 
98  $ilDB = $DIC['ilDB'];
99 
100  $query = "SELECT reg_type FROM event " .
101  "WHERE obj_id = " . $ilDB->quote($a_obj_id, 'integer') . " ";
102  $res = $ilDB->query($query);
103  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
104  return (bool) $row->reg_type != ilMembershipRegistrationSettings::TYPE_NONE;
105  }
106  return false;
107  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
$row
global $ilDB
+ Here is the caller graph for this function:

◆ addAppointment()

ilObjSession::addAppointment (   $appointment)

add appointment

public

Parameters
objectilSessionAppointment
Returns

Definition at line 427 of file class.ilObjSession.php.

428  {
429  $this->appointments[] = $appointment;
430  }

◆ cloneDependencies()

ilObjSession::cloneDependencies (   $a_target_id,
  $a_copy_id 
)

Clone dependencies.

Parameters
inttarget id ref_id of new session
intcopy_id
Returns

Definition at line 603 of file class.ilObjSession.php.

References $DIC, and ilObject\getId().

604  {
605  global $DIC;
606 
607  $ilObjDataCache = $DIC['ilObjDataCache'];
608 
609  parent::cloneDependencies($a_target_id, $a_copy_id);
610 
611  $target_obj_id = $ilObjDataCache->lookupObjId($a_target_id);
612 
613  include_once('./Modules/Session/classes/class.ilEventItems.php');
614  $session_materials = new ilEventItems($target_obj_id);
615  $session_materials->cloneItems($this->getId(), $a_copy_id);
616 
617  return true;
618  }
global $DIC
Definition: saml.php:7
getId()
get object id public
class ilEvent
+ Here is the call graph for this function:

◆ cloneSettings()

ilObjSession::cloneSettings ( ilObjSession  $new_obj)

clone settings

public

Parameters
ilObjSession
Returns

Definition at line 564 of file class.ilObjSession.php.

References ilContainer\_lookupContainerSetting(), ilContainer\_writeContainerSetting(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, enableRegistrationUserLimit(), enableRegistrationWaitingList(), getDetails(), getEmail(), ilObject\getId(), getLocation(), getMailToMembersType(), getName(), getPhone(), getRegistrationMaxUsers(), getRegistrationMinUsers(), getRegistrationType(), getShowMembers(), hasWaitingListAutoFill(), isRegistrationUserLimitEnabled(), isRegistrationWaitingListEnabled(), setDetails(), setEmail(), setLocation(), setMailToMembersType(), setName(), setPhone(), setRegistrationMaxUsers(), setRegistrationMinUsers(), setRegistrationType(), setShowMembers(), setWaitingListAutoFill(), and update().

Referenced by validate().

565  {
567  $new_obj->getId(),
570  $this->getId(),
572  )
573  );
574 
575  // @var
576  $new_obj->setLocation($this->getLocation());
577  $new_obj->setName($this->getName());
578  $new_obj->setPhone($this->getPhone());
579  $new_obj->setEmail($this->getEmail());
580  $new_obj->setDetails($this->getDetails());
581 
582  $new_obj->setRegistrationType($this->getRegistrationType());
588  $new_obj->setShowMembers($this->getShowMembers());
589  $new_obj->setMailToMembersType($this->getMailToMembersType());
590 
591  $new_obj->update(true);
592 
593  return true;
594  }
enableRegistrationUserLimit($a_limit)
getEmail()
get email
getLocation()
get location
setLocation($a_location)
set location
setPhone($a_phone)
set phone
setWaitingListAutoFill($a_value)
setName($a_name)
set name
setEmail($a_email)
set email
setMailToMembersType($a_type)
Set mail to members type.
setRegistrationMinUsers($a_users)
getId()
get object id public
setRegistrationType($a_type)
getPhone()
get phone
getMailToMembersType()
Get mail to members type.
getShowMembers()
Member gallery enabled.
setDetails($a_details)
set details
getDetails()
get details
setShowMembers($a_status)
Show members gallery.
static _writeContainerSetting($a_id, $a_keyword, $a_value)
setRegistrationMaxUsers($a_users)
enableRegistrationWaitingList($a_stat)
update($a_skip_meta_update=false)
update object
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

ilObjSession::create (   $a_skip_meta_data = false)

create new session

public

Definition at line 627 of file class.ilObjSession.php.

References $DIC, $ilDB, $query, $res, ilObject\createMetaData(), enabledRegistration(), getDetails(), getEmail(), ilObject\getId(), getLocation(), getMailToMembersType(), getName(), getPhone(), getRegistrationMaxUsers(), getRegistrationMinUsers(), getRegistrationType(), getShowMembers(), hasWaitingListAutoFill(), isRegistrationUserLimitEnabled(), isRegistrationWaitingListEnabled(), and prepareCalendarAppointments().

628  {
629  global $DIC;
630 
631  $ilDB = $DIC['ilDB'];
632  global $DIC;
633 
634  $ilAppEventHandler = $DIC['ilAppEventHandler'];
635 
636  parent::create();
637 
638  if (!$a_skip_meta_data) {
639  $this->createMetaData();
640  }
641 
642  $next_id = $ilDB->nextId('event');
643  $query = "INSERT INTO event (event_id,obj_id,location,tutor_name,tutor_phone,tutor_email,details,registration, " .
644  'reg_type, reg_limit_users, reg_limited, reg_waiting_list, reg_min_users, reg_auto_wait,show_members,mail_members) ' .
645  "VALUES( " .
646  $ilDB->quote($next_id, 'integer') . ", " .
647  $this->db->quote($this->getId(), 'integer') . ", " .
648  $this->db->quote($this->getLocation(), 'text') . "," .
649  $this->db->quote($this->getName(), 'text') . ", " .
650  $this->db->quote($this->getPhone(), 'text') . ", " .
651  $this->db->quote($this->getEmail(), 'text') . ", " .
652  $this->db->quote($this->getDetails(), 'text') . "," .
653  $this->db->quote($this->enabledRegistration(), 'integer') . ", " .
654  $this->db->quote($this->getRegistrationType(), 'integer') . ', ' .
655  $this->db->quote($this->getRegistrationMaxUsers(), 'integer') . ', ' .
656  $this->db->quote($this->isRegistrationUserLimitEnabled(), 'integer') . ', ' .
657  $this->db->quote($this->isRegistrationWaitingListEnabled(), 'integer') . ', ' .
658  $this->db->quote($this->getRegistrationMinUsers(), 'integer') . ', ' .
659  $this->db->quote($this->hasWaitingListAutoFill(), 'integer') . ', ' .
660  $this->db->quote($this->getShowMembers(), 'integer') . ', ' .
661  $this->db->quote($this->getMailToMembersType(), 'integer') . ' ' .
662  ")";
663  $res = $ilDB->manipulate($query);
664  $this->event_id = $next_id;
665 
666  $ilAppEventHandler->raise(
667  'Modules/Session',
668  'create',
669  array('object' => $this,
670  'obj_id' => $this->getId(),
671  'appointments' => $this->prepareCalendarAppointments('create'))
672  );
673 
674  return $this->getId();
675  }
enabledRegistration()
is registration enabled
getEmail()
get email
global $DIC
Definition: saml.php:7
getLocation()
get location
createMetaData()
create meta data entry
foreach($_POST as $key=> $value) $res
getId()
get object id public
prepareCalendarAppointments($a_mode='create')
Prepare calendar appointments.
getPhone()
get phone
$query
getMailToMembersType()
Get mail to members type.
getShowMembers()
Member gallery enabled.
getDetails()
get details
global $ilDB
+ Here is the call graph for this function:

◆ delete()

ilObjSession::delete ( )

delete session and all related data

public

Returns
bool

Definition at line 734 of file class.ilObjSession.php.

References $DIC, $ilDB, $query, $res, ilEventItems\_delete(), ilEventParticipants\_deleteByEvent(), ilSessionAppointment\_deleteBySession(), ilObject\deleteMetaData(), getFiles(), ilObject\getId(), and prepareCalendarAppointments().

735  {
736  global $DIC;
737 
738  $ilDB = $DIC['ilDB'];
739  global $DIC;
740 
741  $ilAppEventHandler = $DIC['ilAppEventHandler'];
742 
743  if (!parent::delete()) {
744  return false;
745  }
746 
747  // delete meta data
748  $this->deleteMetaData();
749 
750  $query = "DELETE FROM event " .
751  "WHERE obj_id = " . $this->db->quote($this->getId(), 'integer') . " ";
752  $res = $ilDB->manipulate($query);
753 
754  include_once('./Modules/Session/classes/class.ilSessionAppointment.php');
756 
757  include_once('./Modules/Session/classes/class.ilEventItems.php');
758  ilEventItems::_delete($this->getId());
759 
760  include_once('./Modules/Session/classes/class.ilEventParticipants.php');
762 
763  foreach ($this->getFiles() as $file) {
764  $file->delete();
765  }
766 
767  $ilAppEventHandler->raise(
768  'Modules/Session',
769  'delete',
770  array('object' => $this,
771  'obj_id' => $this->getId(),
772  'appointments' => $this->prepareCalendarAppointments('delete'))
773  );
774 
775 
776  return true;
777  }
global $DIC
Definition: saml.php:7
static _deleteBySession($a_event_id)
foreach($_POST as $key=> $value) $res
getId()
get object id public
prepareCalendarAppointments($a_mode='create')
Prepare calendar appointments.
getFiles()
get files
$query
static _deleteByEvent($a_event_id)
global $ilDB
deleteMetaData()
delete meta data entry
static _delete($a_event_id)
+ Here is the call graph for this function:

◆ enabledRegistration()

ilObjSession::enabledRegistration ( )

is registration enabled

public

Returns

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

References ilMembershipRegistrationSettings\TYPE_NONE.

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

+ Here is the caller graph for this function:

◆ enableRegistrationUserLimit()

ilObjSession::enableRegistrationUserLimit (   $a_limit)

Definition at line 335 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

336  {
337  $this->reg_limited = $a_limit;
338  }
+ Here is the caller graph for this function:

◆ enableRegistrationWaitingList()

ilObjSession::enableRegistrationWaitingList (   $a_stat)

Definition at line 365 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

366  {
367  $this->reg_waiting_list = $a_stat;
368  }
+ Here is the caller graph for this function:

◆ getAppointments()

ilObjSession::getAppointments ( )

get appointments

public

Returns
array

Definition at line 415 of file class.ilObjSession.php.

416  {
417  return $this->appointments ? $this->appointments : array();
418  }

◆ getDetails()

ilObjSession::getDetails ( )

get details

public

Returns
string details

Definition at line 315 of file class.ilObjSession.php.

References $details.

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

316  {
317  return $this->details;
318  }
+ Here is the caller graph for this function:

◆ getEmail()

ilObjSession::getEmail ( )

get email

public

Returns
string email

Definition at line 280 of file class.ilObjSession.php.

References $email.

Referenced by cloneSettings(), create(), hasTutorSettings(), and update().

281  {
282  return $this->email;
283  }
+ Here is the caller graph for this function:

◆ getEnableMap()

ilObjSession::getEnableMap ( )

ALways disabled.

Returns
bool

Definition at line 969 of file class.ilObjSession.php.

970  {
971  return false;
972  }

◆ getEventId()

ilObjSession::getEventId ( )

sget event id

public

Returns

Definition at line 191 of file class.ilObjSession.php.

References $event_id.

Referenced by initFiles().

192  {
193  return $this->event_id;
194  }
+ Here is the caller graph for this function:

◆ getFiles()

ilObjSession::getFiles ( )

get files

public

Parameters

Definition at line 462 of file class.ilObjSession.php.

Referenced by delete().

463  {
464  return $this->files ? $this->files : array();
465  }
+ Here is the caller graph for this function:

◆ getFirstAppointment()

ilObjSession::getFirstAppointment ( )

get first appointment

public

Returns
ilSessionAppointment

Definition at line 450 of file class.ilObjSession.php.

Referenced by getPresentationTitle(), getPresentationTitleAppointmentPeriod(), prepareCalendarAppointments(), and validate().

451  {
452  return is_object($this->appointments[0]) ? $this->appointments[0] : ($this->appointments[0] = new ilSessionAppointment());
453  }
class ilSessionAppointment
+ Here is the caller graph for this function:

◆ getLocation()

ilObjSession::getLocation ( )

get location

public

Returns
string location

Definition at line 213 of file class.ilObjSession.php.

References $location.

Referenced by cloneSettings(), create(), prepareCalendarAppointments(), and update().

214  {
215  return $this->location;
216  }
+ Here is the caller graph for this function:

◆ getMailToMembersType()

ilObjSession::getMailToMembersType ( )

Get mail to members type.

Returns
int

Definition at line 481 of file class.ilObjSession.php.

References $mail_members.

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

482  {
483  return $this->mail_members;
484  }
+ Here is the caller graph for this function:

◆ getMembersObject()

ilObjSession::getMembersObject ( )

Get members objects.

Returns

Definition at line 957 of file class.ilObjSession.php.

References $members_obj, and initParticipants().

958  {
959  if (!$this->members_obj instanceof ilSessionParticipants) {
960  $this->initParticipants();
961  }
962  return $this->members_obj;
963  }
Session participation handling.
initParticipants()
init participants object
+ Here is the call graph for this function:

◆ getName()

ilObjSession::getName ( )

get name

public

Returns
string name

Definition at line 235 of file class.ilObjSession.php.

References $name.

Referenced by cloneSettings(), create(), hasTutorSettings(), and update().

236  {
237  return $this->name;
238  }
+ Here is the caller graph for this function:

◆ getPhone()

ilObjSession::getPhone ( )

get phone

public

Returns
string phone

Definition at line 257 of file class.ilObjSession.php.

References $phone.

Referenced by cloneSettings(), create(), hasTutorSettings(), and update().

258  {
259  return $this->phone;
260  }
+ Here is the caller graph for this function:

◆ getPresentationTitle()

ilObjSession::getPresentationTitle ( )

get title (overwritten from base class)

public

Returns

Definition at line 140 of file class.ilObjSession.php.

References ilDatePresentation\formatDate(), getFirstAppointment(), ilObject\getTitle(), and IL_CAL_UNIX.

141  {
142  $date = new ilDate($this->getFirstAppointment()->getStart()->getUnixTime(), IL_CAL_UNIX);
143  if ($this->getTitle()) {
144  return ilDatePresentation::formatDate($this->getFirstAppointment()->getStart()) . ': ' . $this->getTitle();
145  } else {
146  return ilDatePresentation::formatDate($date);
147  }
148  }
const IL_CAL_UNIX
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
Class for single dates.
getTitle()
get object title public
getFirstAppointment()
get first appointment
+ Here is the call graph for this function:

◆ getPresentationTitleAppointmentPeriod()

ilObjSession::getPresentationTitleAppointmentPeriod ( )
Returns
string

Definition at line 153 of file class.ilObjSession.php.

References ilObject\$title, ilDatePresentation\formatPeriod(), getFirstAppointment(), and ilObject\getTitle().

154  {
155  $title = '';
156  if ($this->getTitle()) {
157  $title = ': ' . $this->getTitle();
158  }
160  $this->getFirstAppointment()->getStart(),
161  $this->getFirstAppointment()->getEnd()
162  ) . $title;
163  }
getTitle()
get object title public
static formatPeriod(ilDateTime $start, ilDateTime $end, $a_skip_starting_day=false)
Format a period of two date Shows: 14.
getFirstAppointment()
get first appointment
+ Here is the call graph for this function:

◆ getRegistrationMaxUsers()

ilObjSession::getRegistrationMaxUsers ( )

Definition at line 350 of file class.ilObjSession.php.

References $reg_limited_users.

Referenced by cloneSettings(), create(), handleAutoFill(), update(), and validate().

351  {
353  }
+ Here is the caller graph for this function:

◆ getRegistrationMinUsers()

ilObjSession::getRegistrationMinUsers ( )

Definition at line 340 of file class.ilObjSession.php.

References $reg_min_users.

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

341  {
342  return $this->reg_min_users;
343  }
+ Here is the caller graph for this function:

◆ getRegistrationType()

ilObjSession::getRegistrationType ( )

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

References $reg_type.

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

326  {
327  return $this->reg_type;
328  }
+ Here is the caller graph for this function:

◆ getShowMembers()

ilObjSession::getShowMembers ( )

Member gallery enabled.

Returns
bool

Definition at line 393 of file class.ilObjSession.php.

References $show_members.

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

394  {
395  return (bool) $this->show_members;
396  }
+ Here is the caller graph for this function:

◆ handleAutoFill()

ilObjSession::handleAutoFill ( )

Handle auto fill for session members.

Definition at line 881 of file class.ilObjSession.php.

References $current, $user, ilSessionParticipants\_getInstanceByObjId(), enabledRegistration(), ilObject\getId(), ilObjectFactory\getInstanceByObjId(), getRegistrationMaxUsers(), hasWaitingListAutoFill(), isRegistrationWaitingListEnabled(), and ilSessionMembershipMailNotification\TYPE_ACCEPTED_SUBSCRIPTION_MEMBER.

882  {
883  if (
885  !$this->hasWaitingListAutoFill()
886  ) {
887  $this->session_logger->debug('Waiting list or auto fill is disabled.');
888  return true;
889  }
890 
892  $current = $parts->getCountParticipants();
893  $max = $this->getRegistrationMaxUsers();
894 
895  if ($max <= $current) {
896  $this->session_logger->debug('Maximum number of participants not reached.');
897  $this->session_logger->debug('Maximum number of members: ' . $max);
898  $this->session_logger->debug('Current number of members: ' . $current);
899  return true;
900  }
901 
902  $session_waiting_list = new ilSessionWaitingList($this->getId());
903  foreach ($session_waiting_list->getUserIds() as $user_id) {
905  if (!$user instanceof ilObjUser) {
906  $this->session_logger->warning('Found invalid user id on waiting list: ' . $user_id);
907  continue;
908  }
909  if (in_array($user_id, $parts->getParticipants())) {
910  $this->session_logger->notice('User on waiting list already session member: ' . $user_id);
911  continue;
912  }
913 
914  if ($this->enabledRegistration()) {
915  $this->session_logger->debug('Registration enabled: register user');
916  $parts->register($user_id);
917  $parts->sendNotification(
919  $user_id
920  );
921  } else {
922  $this->session_logger->debug('Registration disabled: set user status to participated.');
923  $parts->getEventParticipants()->updateParticipation($user_id, true);
924  $parts->sendNotification(
926  $user_id
927  );
928  }
929 
930  $session_waiting_list->removeFromList($user_id);
931 
932  $current++;
933  if ($current >= $max) {
934  break;
935  }
936  }
937  }
enabledRegistration()
is registration enabled
static _getInstanceByObjId($a_obj_id)
Get instance.
getId()
get object id public
$user
Definition: migrateto20.php:57
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
+ Here is the call graph for this function:

◆ hasTutorSettings()

ilObjSession::hasTutorSettings ( )

check if there any tutor settings

public

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

References getEmail(), getName(), and getPhone().

291  {
292  return strlen($this->getName()) or
293  strlen($this->getEmail()) or
294  strlen($this->getPhone());
295  }
getEmail()
get email
getPhone()
get phone
+ Here is the call graph for this function:

◆ hasWaitingListAutoFill()

ilObjSession::hasWaitingListAutoFill ( )

Definition at line 375 of file class.ilObjSession.php.

References $reg_waiting_list_autofill.

Referenced by cloneSettings(), create(), handleAutoFill(), and update().

376  {
377  return (bool) $this->reg_waiting_list_autofill;
378  }
+ Here is the caller graph for this function:

◆ initAppointments()

ilObjSession::initAppointments ( )
protected

init appointments

protected

Parameters

Definition at line 822 of file class.ilObjSession.php.

References ilSessionAppointment\_readAppointmentsBySession(), and ilObject\getId().

Referenced by read().

823  {
824  // get assigned appointments
825  include_once('./Modules/Session/classes/class.ilSessionAppointment.php');
826  $this->appointments = ilSessionAppointment::_readAppointmentsBySession($this->getId());
827  }
getId()
get object id public
static _readAppointmentsBySession($a_event_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initDefaultRoles()

ilObjSession::initDefaultRoles ( )

Create local session participant role.

Definition at line 168 of file class.ilObjSession.php.

References ilObjRole\createDefaultRole(), ilObject\getId(), ilObject\getRefId(), and ilLogLevel\WARNING.

169  {
170  include_once './Services/AccessControl/classes/class.ilObjRole.php';
172  self::LOCAL_ROLE_PARTICIPANT_PREFIX . '_' . $this->getRefId(),
173  'Participant of session obj_no.' . $this->getId(),
174  self::LOCAL_ROLE_PARTICIPANT_PREFIX,
175  $this->getRefId()
176  );
177 
178  if (!$role instanceof ilObjRole) {
179  $this->session_logger->warning('Could not create default session role.');
180  $this->session_logger->logStack(ilLogLevel::WARNING);
181  }
182  return array();
183  }
Class ilObjRole.
static createDefaultRole($a_title, $a_description, $a_tpl_name, $a_ref_id)
getId()
get object id public
getRefId()
get reference id public
+ Here is the call graph for this function:

◆ initFiles()

ilObjSession::initFiles ( )

init files

protected

Parameters

Definition at line 836 of file class.ilObjSession.php.

References ilSessionFile\_readFilesByEvent(), and getEventId().

Referenced by read().

837  {
838  include_once('./Modules/Session/classes/class.ilSessionFile.php');
840  }
getEventId()
sget event id
static _readFilesByEvent($a_event_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initParticipants()

ilObjSession::initParticipants ( )
protected

init participants object

protected

Returns

Definition at line 947 of file class.ilObjSession.php.

References ilSessionParticipants\_getInstanceByObjId(), and ilObject\getId().

Referenced by getMembersObject().

948  {
949  $this->members_obj = ilSessionParticipants::_getInstanceByObjId($this->getId());
950  }
static _getInstanceByObjId($a_obj_id)
Get instance.
getId()
get object id public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isRegistrationUserLimitEnabled()

ilObjSession::isRegistrationUserLimitEnabled ( )

Definition at line 330 of file class.ilObjSession.php.

References $reg_limited.

Referenced by cloneSettings(), create(), update(), and validate().

331  {
332  return $this->reg_limited;
333  }
+ Here is the caller graph for this function:

◆ isRegistrationWaitingListEnabled()

ilObjSession::isRegistrationWaitingListEnabled ( )

Definition at line 360 of file class.ilObjSession.php.

References $reg_waiting_list.

Referenced by cloneSettings(), create(), handleAutoFill(), and update().

361  {
363  }
+ Here is the caller graph for this function:

◆ lookupSession()

static ilObjSession::lookupSession (   $a_obj_id)
static

Get session data.

Parameters
object$a_obj_id
Returns

Definition at line 114 of file class.ilObjSession.php.

References $data, $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilObjSessionListGUI\getProperties(), and ilSessionMailTemplateParticipantContext\resolveSpecificPlaceholder().

115  {
116  global $DIC;
117 
118  $ilDB = $DIC['ilDB'];
119 
120  $query = "SELECT * FROM event " .
121  "WHERE obj_id = " . $ilDB->quote($a_obj_id);
122  $res = $ilDB->query($query);
123  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
124  $data['location'] = $row->location ? $row->location : '';
125  $data['details'] = $row->details ? $row->details : '';
126  $data['name'] = $row->tutor_name ? $row->tutor_name : '';
127  $data['email'] = $row->tutor_email ? $row->tutor_email : '';
128  $data['phone'] = $row->tutor_phone ? $row->tutor_phone : '';
129  }
130  return (array) $data;
131  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
$query
$row
global $ilDB
$data
Definition: bench.php:6
+ Here is the caller graph for this function:

◆ prepareCalendarAppointments()

ilObjSession::prepareCalendarAppointments (   $a_mode = 'create')

Prepare calendar appointments.

public

Parameters
stringmode UPDATE|CREATE|DELETE
Returns

Definition at line 850 of file class.ilObjSession.php.

References getFirstAppointment(), getLocation(), ilObject\getLongDescription(), ilObject\getTitle(), and IL_CAL_TRANSLATION_NONE.

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

851  {
852  include_once('./Services/Calendar/classes/class.ilCalendarAppointmentTemplate.php');
853 
854  switch ($a_mode) {
855  case 'create':
856  case 'update':
857 
858  $app = new ilCalendarAppointmentTemplate(self::CAL_REG_START);
859  $app->setTranslationType(IL_CAL_TRANSLATION_NONE);
860  $app->setTitle($this->getTitle() ? $this->getTitle() : $this->lng->txt('obj_sess'));
861  $app->setDescription($this->getLongDescription());
862  $app->setLocation($this->getLocation());
863 
864  $sess_app = $this->getFirstAppointment();
865  $app->setFullday($sess_app->isFullday());
866  $app->setStart($sess_app->getStart());
867  $app->setEnd($sess_app->getEnd());
868  $apps[] = $app;
869 
870  return $apps;
871 
872  case 'delete':
873  // Nothing to do: The category and all assigned appointments will be deleted.
874  return array();
875  }
876  }
const IL_CAL_TRANSLATION_NONE
getLocation()
get location
Apointment templates are used for automatic generated apointments.
getTitle()
get object title public
getLongDescription()
get object long description (stored in object_description)
getFirstAppointment()
get first appointment
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ilObjSession::read ( )

read session data

public

Parameters

Definition at line 786 of file class.ilObjSession.php.

References $query, $res, $row, enableRegistrationUserLimit(), enableRegistrationWaitingList(), ilDBConstants\FETCHMODE_OBJECT, ilObject\getId(), initAppointments(), initFiles(), setDetails(), setEmail(), setLocation(), setMailToMembersType(), setName(), setPhone(), setRegistrationMaxUsers(), setRegistrationMinUsers(), setRegistrationType(), setShowMembers(), and setWaitingListAutoFill().

Referenced by validate().

787  {
788  parent::read();
789 
790  $query = "SELECT * FROM event WHERE " .
791  "obj_id = " . $this->db->quote($this->getId(), 'integer') . " ";
792  $res = $this->db->query($query);
793 
794  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
795  $this->setLocation($row->location);
796  $this->setName($row->tutor_name);
797  $this->setPhone($row->tutor_phone);
798  $this->setEmail($row->tutor_email);
799  $this->setDetails($row->details);
800  $this->setRegistrationType($row->reg_type);
801  $this->enableRegistrationUserLimit($row->reg_limited);
802  $this->enableRegistrationWaitingList($row->reg_waiting_list);
803  $this->setWaitingListAutoFill($row->reg_auto_wait);
804  $this->setRegistrationMaxUsers($row->reg_limit_users);
805  $this->setRegistrationMinUsers($row->reg_min_users);
806  $this->setShowMembers((bool) $row->show_members);
807  $this->setMailToMembersType((int) $row->mail_members);
808  $this->event_id = $row->event_id;
809  }
810 
811  $this->initAppointments();
812  $this->initFiles();
813  }
enableRegistrationUserLimit($a_limit)
initFiles()
init files
setLocation($a_location)
set location
setPhone($a_phone)
set phone
initAppointments()
init appointments
setWaitingListAutoFill($a_value)
setName($a_name)
set name
setEmail($a_email)
set email
setMailToMembersType($a_type)
Set mail to members type.
setRegistrationMinUsers($a_users)
foreach($_POST as $key=> $value) $res
getId()
get object id public
setRegistrationType($a_type)
$query
$row
setDetails($a_details)
set details
setShowMembers($a_status)
Show members gallery.
setRegistrationMaxUsers($a_users)
enableRegistrationWaitingList($a_stat)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAppointments()

ilObjSession::setAppointments (   $appointments)

set appointments

public

Parameters
arrayilSessionAppointments
Returns

Definition at line 439 of file class.ilObjSession.php.

References $appointments.

440  {
441  $this->appointments = $appointments;
442  }

◆ setDetails()

ilObjSession::setDetails (   $a_details)

set details

public

Parameters
stringdetails

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

Referenced by cloneSettings(), and read().

305  {
306  $this->details = $a_details;
307  }
+ Here is the caller graph for this function:

◆ setEmail()

ilObjSession::setEmail (   $a_email)

set email

public

Parameters
stringemail
Returns

Definition at line 269 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

270  {
271  $this->email = $a_email;
272  }
+ Here is the caller graph for this function:

◆ setLocation()

ilObjSession::setLocation (   $a_location)

set location

public

Parameters
stringlocation

Definition at line 202 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

203  {
204  $this->location = $a_location;
205  }
+ Here is the caller graph for this function:

◆ setMailToMembersType()

ilObjSession::setMailToMembersType (   $a_type)

Set mail to members type.

Parameters
int$a_type

Definition at line 472 of file class.ilObjSession.php.

References $a_type.

Referenced by cloneSettings(), and read().

473  {
474  $this->mail_members = $a_type;
475  }
$a_type
Definition: workflow.php:92
+ Here is the caller graph for this function:

◆ setName()

ilObjSession::setName (   $a_name)

set name

public

Parameters
stringname

Definition at line 224 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

225  {
226  $this->name = $a_name;
227  }
+ Here is the caller graph for this function:

◆ setPhone()

ilObjSession::setPhone (   $a_phone)

set phone

public

Parameters
stringphone

Definition at line 246 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

247  {
248  $this->phone = $a_phone;
249  }
+ Here is the caller graph for this function:

◆ setRegistrationMaxUsers()

ilObjSession::setRegistrationMaxUsers (   $a_users)

Definition at line 355 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

356  {
357  $this->reg_limited_users = $a_users;
358  }
+ Here is the caller graph for this function:

◆ setRegistrationMinUsers()

ilObjSession::setRegistrationMinUsers (   $a_users)

Definition at line 345 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

346  {
347  $this->reg_min_users = $a_users;
348  }
+ Here is the caller graph for this function:

◆ setRegistrationType()

ilObjSession::setRegistrationType (   $a_type)

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

References $a_type.

Referenced by cloneSettings(), and read().

321  {
322  $this->reg_type = $a_type;
323  }
$a_type
Definition: workflow.php:92
+ Here is the caller graph for this function:

◆ setShowMembers()

ilObjSession::setShowMembers (   $a_status)

Show members gallery.

Parameters
$a_status

Definition at line 384 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

385  {
386  $this->show_members = (bool) $a_status;
387  }
+ Here is the caller graph for this function:

◆ setWaitingListAutoFill()

ilObjSession::setWaitingListAutoFill (   $a_value)

Definition at line 370 of file class.ilObjSession.php.

Referenced by cloneSettings(), and read().

371  {
372  $this->reg_waiting_list_autofill = (bool) $a_value;
373  }
+ Here is the caller graph for this function:

◆ update()

ilObjSession::update (   $a_skip_meta_update = false)

update object

public

Parameters

Definition at line 684 of file class.ilObjSession.php.

References $DIC, $ilDB, $query, $res, enabledRegistration(), getDetails(), getEmail(), ilObject\getId(), getLocation(), getMailToMembersType(), getName(), getPhone(), getRegistrationMaxUsers(), getRegistrationMinUsers(), getRegistrationType(), getShowMembers(), hasWaitingListAutoFill(), isRegistrationUserLimitEnabled(), isRegistrationWaitingListEnabled(), prepareCalendarAppointments(), League\Flysystem\Adapter\Polyfill\update(), and ilObject\updateMetaData().

Referenced by cloneSettings().

685  {
686  global $DIC;
687 
688  $ilDB = $DIC['ilDB'];
689  global $DIC;
690 
691  $ilAppEventHandler = $DIC['ilAppEventHandler'];
692 
693  if (!parent::update()) {
694  return false;
695  }
696  if (!$a_skip_meta_update) {
697  $this->updateMetaData();
698  }
699 
700  $query = "UPDATE event SET " .
701  "location = " . $this->db->quote($this->getLocation(), 'text') . "," .
702  "tutor_name = " . $this->db->quote($this->getName(), 'text') . ", " .
703  "tutor_phone = " . $this->db->quote($this->getPhone(), 'text') . ", " .
704  "tutor_email = " . $this->db->quote($this->getEmail(), 'text') . ", " .
705  "details = " . $this->db->quote($this->getDetails(), 'text') . ", " .
706  "registration = " . $this->db->quote($this->enabledRegistration(), 'integer') . ", " .
707  "reg_type = " . $this->db->quote($this->getRegistrationType(), 'integer') . ", " .
708  "reg_limited = " . $this->db->quote($this->isRegistrationUserLimitEnabled(), 'integer') . ", " .
709  "reg_limit_users = " . $this->db->quote($this->getRegistrationMaxUsers(), 'integer') . ", " .
710  "reg_min_users = " . $this->db->quote($this->getRegistrationMinUsers(), 'integer') . ", " .
711  "reg_waiting_list = " . $this->db->quote($this->isRegistrationWaitingListEnabled(), 'integer') . ", " .
712  "reg_auto_wait = " . $this->db->quote($this->hasWaitingListAutoFill(), 'integer') . ", " .
713  'show_members = ' . $this->db->quote($this->getShowMembers(), 'integer') . ', ' .
714  'mail_members = ' . $this->db->quote($this->getMailToMembersType(), 'integer') . ' ' .
715  "WHERE obj_id = " . $this->db->quote($this->getId(), 'integer') . " ";
716  $res = $ilDB->manipulate($query);
717 
718  $ilAppEventHandler->raise(
719  'Modules/Session',
720  'update',
721  array('object' => $this,
722  'obj_id' => $this->getId(),
723  'appointments' => $this->prepareCalendarAppointments('update'))
724  );
725  return true;
726  }
enabledRegistration()
is registration enabled
getEmail()
get email
global $DIC
Definition: saml.php:7
getLocation()
get location
updateMetaData()
update meta data entry
foreach($_POST as $key=> $value) $res
getId()
get object id public
prepareCalendarAppointments($a_mode='create')
Prepare calendar appointments.
getPhone()
get phone
$query
getMailToMembersType()
Get mail to members type.
getShowMembers()
Member gallery enabled.
update($pash, $contents, Config $config)
getDetails()
get details
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validate()

ilObjSession::validate ( )

validate

public

Parameters

Definition at line 494 of file class.ilObjSession.php.

References $DIC, $ilErr, ilObject\cloneMetaData(), cloneSettings(), getFirstAppointment(), ilObject\getId(), ilObject\getRefId(), getRegistrationMaxUsers(), isRegistrationUserLimitEnabled(), ilDidacticTemplateObjSettings\lookupTemplateId(), and read().

495  {
496  global $DIC;
497 
498  $ilErr = $DIC['ilErr'];
499 
500  // #17114
501  if ($this->isRegistrationUserLimitEnabled() &&
502  !$this->getRegistrationMaxUsers()) {
503  $ilErr->appendMessage($this->lng->txt("sess_max_members_needed"));
504  return false;
505  }
506 
507  return true;
508  }
global $DIC
Definition: saml.php:7
$ilErr
Definition: raiseError.php:18
+ Here is the call graph for this function:

Field Documentation

◆ $appointments

ilObjSession::$appointments
protected

Definition at line 52 of file class.ilObjSession.php.

Referenced by setAppointments().

◆ $db

ilObjSession::$db
protected

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

◆ $details

ilObjSession::$details
protected

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

Referenced by getDetails().

◆ $email

ilObjSession::$email
protected

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

Referenced by getEmail().

◆ $event_id

ilObjSession::$event_id
protected

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

Referenced by getEventId().

◆ $files

ilObjSession::$files = array()
protected

Definition at line 53 of file class.ilObjSession.php.

◆ $location

ilObjSession::$location
protected

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

Referenced by getLocation().

◆ $mail_members

ilObjSession::$mail_members = self::MAIL_ALLOWED_ADMIN
protected

Definition at line 50 of file class.ilObjSession.php.

Referenced by getMailToMembersType().

◆ $members_obj

ilObjSession::$members_obj
protected

Definition at line 63 of file class.ilObjSession.php.

Referenced by getMembersObject().

◆ $name

ilObjSession::$name
protected

Definition at line 28 of file class.ilObjSession.php.

Referenced by getName().

◆ $phone

ilObjSession::$phone
protected

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

Referenced by getPhone().

◆ $reg_limited

ilObjSession::$reg_limited = 0
protected

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

Referenced by isRegistrationUserLimitEnabled().

◆ $reg_limited_users

ilObjSession::$reg_limited_users = 0
protected

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

Referenced by getRegistrationMaxUsers().

◆ $reg_min_users

ilObjSession::$reg_min_users = 0
protected

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

Referenced by getRegistrationMinUsers().

◆ $reg_type

ilObjSession::$reg_type = ilMembershipRegistrationSettings::TYPE_NONE
protected

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

Referenced by getRegistrationType().

◆ $reg_waiting_list

ilObjSession::$reg_waiting_list = 0
protected

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

Referenced by isRegistrationWaitingListEnabled().

◆ $reg_waiting_list_autofill

ilObjSession::$reg_waiting_list_autofill
protected

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

Referenced by hasWaitingListAutoFill().

◆ $registration

ilObjSession::$registration
protected

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

◆ $session_logger

ilObjSession::$session_logger = null
protected

Definition at line 58 of file class.ilObjSession.php.

◆ $show_members

ilObjSession::$show_members = false
protected

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

Referenced by getShowMembers().

◆ CAL_REG_START

const ilObjSession::CAL_REG_START = 1

Definition at line 23 of file class.ilObjSession.php.

◆ LOCAL_ROLE_PARTICIPANT_PREFIX

const ilObjSession::LOCAL_ROLE_PARTICIPANT_PREFIX = 'il_sess_participant'

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

◆ MAIL_ALLOWED_ADMIN

const ilObjSession::MAIL_ALLOWED_ADMIN = 2

Definition at line 19 of file class.ilObjSession.php.

Referenced by ilObjSessionGUI\initForm().

◆ MAIL_ALLOWED_ALL

const ilObjSession::MAIL_ALLOWED_ALL = 1

Definition at line 18 of file class.ilObjSession.php.

Referenced by ilObjSessionGUI\initForm().


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