ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilObjSession Class Reference
+ Inheritance diagram for ilObjSession:
+ Collaboration diagram for ilObjSession:

Public Member Functions

 __construct ($a_id=0, $a_call_by_reference=true)
 Constructor @access 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...
 
 isRegistrationNotificationEnabled ()
 
 setRegistrationNotificationEnabled ($value)
 
 getRegistrationNotificationOption ()
 
 setRegistrationNotificationOption ($value)
 
 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 @access 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 @access public More...
 
 setId ($a_id)
 set object id @access public More...
 
 setRefId ($a_id)
 set reference id @access public More...
 
 getRefId ()
 get reference id @access public More...
 
 getType ()
 get object type @access public More...
 
 setType ($a_type)
 set object type @access public More...
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 get object title @access public More...
 
 getUntranslatedTitle ()
 get untranslated object title @access 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 @access public More...
 
 getLastUpdateDate ()
 get last update date @access 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) @access 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, $a_deleted_by)
 
static setDeletedDates ($a_ref_ids, $a_user_id)
 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@access public 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
 

Private Attributes

 $registrationNotificationEnabled = false
 
 $notificationOption = ilSessionConstants::NOTIFICATION_INHERIT_OPTION
 

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 @access public.

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

Reimplemented from ilObject.

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

75 {
76 global $DIC;
77
78 $ilDB = $DIC['ilDB'];
79
80 $this->session_logger = $GLOBALS['DIC']->logger()->sess();
81
82 $this->db = $ilDB;
83 $this->type = "sess";
84 parent::__construct($a_id, $a_call_by_reference);
85 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $ilDB
$DIC
Definition: xapitoken.php:46

References $DIC, $GLOBALS, $ilDB, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ _lookupRegistrationEnabled()

static ilObjSession::_lookupRegistrationEnabled (   $a_obj_id)
static

lookup registration enabled

@access public

Parameters

return

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

96 {
97 global $DIC;
98
99 $ilDB = $DIC['ilDB'];
100
101 $query = "SELECT reg_type FROM event " .
102 "WHERE obj_id = " . $ilDB->quote($a_obj_id, 'integer') . " ";
103 $res = $ilDB->query($query);
104 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
105 return (bool) $row->reg_type != ilMembershipRegistrationSettings::TYPE_NONE;
106 }
107 return false;
108 }
$query
foreach($_POST as $key=> $value) $res

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

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

+ Here is the caller graph for this function:

◆ addAppointment()

ilObjSession::addAppointment (   $appointment)

add appointment

@access public

Parameters
objectilSessionAppointment
Returns

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

462 {
463 $this->appointments[] = $appointment;
464 }

◆ cloneDependencies()

ilObjSession::cloneDependencies (   $a_target_id,
  $a_copy_id 
)

Clone dependencies.

Parameters
inttarget id ref_id of new session
intcopy_id
Returns

Reimplemented from ilObject.

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

641 {
642 global $DIC;
643
644 $ilObjDataCache = $DIC['ilObjDataCache'];
645
646 parent::cloneDependencies($a_target_id, $a_copy_id);
647
648 $target_obj_id = $ilObjDataCache->lookupObjId($a_target_id);
649
650 include_once('./Modules/Session/classes/class.ilEventItems.php');
651 $session_materials = new ilEventItems($target_obj_id);
652 $session_materials->cloneItems($this->getId(), $a_copy_id);
653
654 return true;
655 }
class ilEvent
getId()
get object id @access public

References $DIC, and ilObject\getId().

+ Here is the call graph for this function:

◆ cloneSettings()

ilObjSession::cloneSettings ( ilObjSession  $new_obj)

clone settings

@access public

Parameters
ilObjSession
Returns

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

599 {
601 $new_obj->getId(),
604 $this->getId(),
606 )
607 );
608
609 // @var
610 $new_obj->setLocation($this->getLocation());
611 $new_obj->setName($this->getName());
612 $new_obj->setPhone($this->getPhone());
613 $new_obj->setEmail($this->getEmail());
614 $new_obj->setDetails($this->getDetails());
615
616 $new_obj->setRegistrationType($this->getRegistrationType());
622 $new_obj->setShowMembers($this->getShowMembers());
623 $new_obj->setMailToMembersType($this->getMailToMembersType());
624
627
628 $new_obj->update(true);
629
630 return true;
631 }
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
static _writeContainerSetting($a_id, $a_keyword, $a_value)
getShowMembers()
Member gallery enabled.
getMailToMembersType()
Get mail to members type.
setLocation($a_location)
set location
setEmail($a_email)
set email
getDetails()
get details
setRegistrationNotificationOption($value)
getLocation()
get location
update($a_skip_meta_update=false)
update object
setRegistrationType($a_type)
setName($a_name)
set name
setRegistrationMinUsers($a_users)
setPhone($a_phone)
set phone
setDetails($a_details)
set details
setWaitingListAutoFill($a_value)
setMailToMembersType($a_type)
Set mail to members type.
setRegistrationNotificationEnabled($value)
setShowMembers($a_status)
Show members gallery.
enableRegistrationUserLimit($a_limit)
enableRegistrationWaitingList($a_stat)
setRegistrationMaxUsers($a_users)

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

+ Here is the call graph for this function:

◆ create()

ilObjSession::create (   $a_skip_meta_data = false)

create new session

@access public

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

665 {
666 global $DIC;
667
668 $ilDB = $DIC['ilDB'];
669 global $DIC;
670
671 $ilAppEventHandler = $DIC['ilAppEventHandler'];
672
673 parent::create();
674
675 if (!$a_skip_meta_data) {
676 $this->createMetaData();
677 }
678
679 $next_id = $ilDB->nextId('event');
680 $query = "INSERT INTO event (event_id,obj_id,location,tutor_name,tutor_phone,tutor_email,details,registration, " .
681 'reg_type, reg_limit_users, reg_limited, reg_waiting_list, reg_min_users, reg_auto_wait,show_members,mail_members,
682 reg_notification, notification_opt) ' .
683 "VALUES( " .
684 $ilDB->quote($next_id, 'integer') . ", " .
685 $this->db->quote($this->getId(), 'integer') . ", " .
686 $this->db->quote($this->getLocation(), 'text') . "," .
687 $this->db->quote($this->getName(), 'text') . ", " .
688 $this->db->quote($this->getPhone(), 'text') . ", " .
689 $this->db->quote($this->getEmail(), 'text') . ", " .
690 $this->db->quote($this->getDetails(), 'text') . "," .
691 $this->db->quote($this->enabledRegistration(), 'integer') . ", " .
692 $this->db->quote($this->getRegistrationType(), 'integer') . ', ' .
693 $this->db->quote($this->getRegistrationMaxUsers(), 'integer') . ', ' .
694 $this->db->quote($this->isRegistrationUserLimitEnabled(), 'integer') . ', ' .
695 $this->db->quote($this->isRegistrationWaitingListEnabled(), 'integer') . ', ' .
696 $this->db->quote($this->getRegistrationMinUsers(), 'integer') . ', ' .
697 $this->db->quote($this->hasWaitingListAutoFill(), 'integer') . ', ' .
698 $this->db->quote($this->getShowMembers(), 'integer') . ', ' .
699 $this->db->quote($this->getMailToMembersType(), 'integer') . ',' .
700 $this->db->quote($this->isRegistrationNotificationEnabled(), 'integer') . ', ' .
701 $this->db->quote($this->getRegistrationNotificationOption(), 'text') .
702 ")";
703 $res = $ilDB->manipulate($query);
704 $this->event_id = $next_id;
705
706 $ilAppEventHandler->raise(
707 'Modules/Session',
708 'create',
709 array('object' => $this,
710 'obj_id' => $this->getId(),
711 'appointments' => $this->prepareCalendarAppointments('create'))
712 );
713
714 return $this->getId();
715 }
enabledRegistration()
is registration enabled
prepareCalendarAppointments($a_mode='create')
Prepare calendar appointments.
createMetaData()
create meta data entry

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

+ Here is the call graph for this function:

◆ delete()

ilObjSession::delete ( )

delete session and all related data

@access public

Returns
bool

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

778 {
779 global $DIC;
780
781 $ilDB = $DIC['ilDB'];
782 global $DIC;
783
784 $ilAppEventHandler = $DIC['ilAppEventHandler'];
785
786 if (!parent::delete()) {
787 return false;
788 }
789
790 // delete meta data
791 $this->deleteMetaData();
792
793 $query = "DELETE FROM event " .
794 "WHERE obj_id = " . $this->db->quote($this->getId(), 'integer') . " ";
795 $res = $ilDB->manipulate($query);
796
797 include_once('./Modules/Session/classes/class.ilSessionAppointment.php');
799
800 include_once('./Modules/Session/classes/class.ilEventItems.php');
802
803 include_once('./Modules/Session/classes/class.ilEventParticipants.php');
805
806 foreach ($this->getFiles() as $file) {
807 $file->delete();
808 }
809
810 $ilAppEventHandler->raise(
811 'Modules/Session',
812 'delete',
813 array('object' => $this,
814 'obj_id' => $this->getId(),
815 'appointments' => $this->prepareCalendarAppointments('delete'))
816 );
817
818
819 return true;
820 }
static _delete($a_event_id)
static _deleteByEvent($a_event_id)
deleteMetaData()
delete meta data entry
static _deleteBySession($a_event_id)

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

+ Here is the call graph for this function:

◆ enabledRegistration()

ilObjSession::enabledRegistration ( )

is registration enabled

@access public

Returns

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

439 {
440 return $this->reg_type != ilMembershipRegistrationSettings::TYPE_NONE;
441 }

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 336 of file class.ilObjSession.php.

337 {
338 $this->reg_limited = $a_limit;
339 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ enableRegistrationWaitingList()

ilObjSession::enableRegistrationWaitingList (   $a_stat)

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

367 {
368 $this->reg_waiting_list = $a_stat;
369 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ getAppointments()

ilObjSession::getAppointments ( )

get appointments

@access public

Returns
array

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

450 {
451 return $this->appointments ? $this->appointments : array();
452 }

◆ getDetails()

ilObjSession::getDetails ( )

get details

@access public

Returns
string details

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

317 {
318 return $this->details;
319 }

References $details.

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

+ Here is the caller graph for this function:

◆ getEmail()

ilObjSession::getEmail ( )

get email

@access public

Returns
string email

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

282 {
283 return $this->email;
284 }

References $email.

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

+ Here is the caller graph for this function:

◆ getEnableMap()

ilObjSession::getEnableMap ( )

ALways disabled.

Returns
bool

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

1015 {
1016 return false;
1017 }

◆ getEventId()

ilObjSession::getEventId ( )

sget event id

@access public

Returns

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

193 {
194 return $this->event_id;
195 }

References $event_id.

Referenced by initFiles().

+ Here is the caller graph for this function:

◆ getFiles()

ilObjSession::getFiles ( )

get files

@access public

Parameters

return

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

497 {
498 return $this->files ? $this->files : array();
499 }

Referenced by delete().

+ Here is the caller graph for this function:

◆ getFirstAppointment()

ilObjSession::getFirstAppointment ( )

get first appointment

@access public

Returns
ilSessionAppointment

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

485 {
486 return is_object($this->appointments[0]) ? $this->appointments[0] : ($this->appointments[0] = new ilSessionAppointment());
487 }
class ilSessionAppointment

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

+ Here is the caller graph for this function:

◆ getLocation()

ilObjSession::getLocation ( )

get location

@access public

Returns
string location

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

215 {
216 return $this->location;
217 }

References $location.

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

+ Here is the caller graph for this function:

◆ getMailToMembersType()

ilObjSession::getMailToMembersType ( )

Get mail to members type.

Returns
int

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

516 {
517 return $this->mail_members;
518 }

References $mail_members.

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

+ Here is the caller graph for this function:

◆ getMembersObject()

ilObjSession::getMembersObject ( )

Get members objects.

Returns
\ilSessionParticipants

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

1003 {
1004 if (!$this->members_obj instanceof ilSessionParticipants) {
1005 $this->initParticipants();
1006 }
1007 return $this->members_obj;
1008 }
initParticipants()
init participants object
Session participation handling.

References $members_obj, and initParticipants().

+ Here is the call graph for this function:

◆ getName()

ilObjSession::getName ( )

get name

@access public

Returns
string name

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

237 {
238 return $this->name;
239 }

References $name.

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

+ Here is the caller graph for this function:

◆ getPhone()

ilObjSession::getPhone ( )

get phone

@access public

Returns
string phone

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

259 {
260 return $this->phone;
261 }

References $phone.

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

+ Here is the caller graph for this function:

◆ getPresentationTitle()

ilObjSession::getPresentationTitle ( )

get title (overwritten from base class)

@access public

Returns

Reimplemented from ilObject.

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

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

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

+ Here is the call graph for this function:

◆ getPresentationTitleAppointmentPeriod()

ilObjSession::getPresentationTitleAppointmentPeriod ( )
Returns
string

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

155 {
156 $title = '';
157 if ($this->getTitle()) {
158 $title = ': ' . $this->getTitle();
159 }
161 $this->getFirstAppointment()->getStart(),
162 $this->getFirstAppointment()->getEnd()
163 ) . $title;
164 }
static formatPeriod(ilDateTime $start, ilDateTime $end, $a_skip_starting_day=false)
Format a period of two date Shows: 14.

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

+ Here is the call graph for this function:

◆ getRegistrationMaxUsers()

ilObjSession::getRegistrationMaxUsers ( )

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

352 {
354 }

References $reg_limited_users.

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

+ Here is the caller graph for this function:

◆ getRegistrationMinUsers()

ilObjSession::getRegistrationMinUsers ( )

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

342 {
344 }

References $reg_min_users.

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

+ Here is the caller graph for this function:

◆ getRegistrationNotificationOption()

ilObjSession::getRegistrationNotificationOption ( )
Returns
string

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

420 {
422 }

References $notificationOption.

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

+ Here is the caller graph for this function:

◆ getRegistrationType()

ilObjSession::getRegistrationType ( )

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

327 {
328 return $this->reg_type;
329 }

References $reg_type.

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

+ Here is the caller graph for this function:

◆ getShowMembers()

ilObjSession::getShowMembers ( )

Member gallery enabled.

Returns
bool

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

395 {
396 return (bool) $this->show_members;
397 }

References $show_members.

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

+ Here is the caller graph for this function:

◆ handleAutoFill()

ilObjSession::handleAutoFill ( )

Handle auto fill for session members.

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

927 {
928 if (
930 !$this->hasWaitingListAutoFill()
931 ) {
932 $this->session_logger->debug('Waiting list or auto fill is disabled.');
933 return true;
934 }
935
937 $current = $parts->getCountParticipants();
938 $max = $this->getRegistrationMaxUsers();
939
940 if ($max <= $current) {
941 $this->session_logger->debug('Maximum number of participants not reached.');
942 $this->session_logger->debug('Maximum number of members: ' . $max);
943 $this->session_logger->debug('Current number of members: ' . $current);
944 return true;
945 }
946
947 $session_waiting_list = new ilSessionWaitingList($this->getId());
948 foreach ($session_waiting_list->getUserIds() as $user_id) {
949 $user = ilObjectFactory::getInstanceByObjId($user_id);
950 if (!$user instanceof ilObjUser) {
951 $this->session_logger->warning('Found invalid user id on waiting list: ' . $user_id);
952 continue;
953 }
954 if (in_array($user_id, $parts->getParticipants())) {
955 $this->session_logger->notice('User on waiting list already session member: ' . $user_id);
956 continue;
957 }
958
959 if ($this->enabledRegistration()) {
960 $this->session_logger->debug('Registration enabled: register user');
961 $parts->register($user_id);
962 $parts->sendNotification(
964 $user_id
965 );
966 } else {
967 $this->session_logger->debug('Registration disabled: set user status to participated.');
968 $parts->getEventParticipants()->updateParticipation($user_id, true);
969 $parts->sendNotification(
971 $user_id
972 );
973 }
974
975 $session_waiting_list->removeFromList($user_id);
976
977 $current++;
978 if ($current >= $max) {
979 break;
980 }
981 }
982 }
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static _getInstanceByObjId($a_obj_id)
Get instance.

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

+ Here is the call graph for this function:

◆ hasTutorSettings()

ilObjSession::hasTutorSettings ( )

check if there any tutor settings

@access public

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

292 {
293 return strlen($this->getName()) or
294 strlen($this->getEmail()) or
295 strlen($this->getPhone());
296 }

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

+ Here is the call graph for this function:

◆ hasWaitingListAutoFill()

ilObjSession::hasWaitingListAutoFill ( )

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

377 {
379 }

References $reg_waiting_list_autofill.

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

+ Here is the caller graph for this function:

◆ initAppointments()

ilObjSession::initAppointments ( )
protected

init appointments

@access protected

Parameters

return

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

868 {
869 // get assigned appointments
870 include_once('./Modules/Session/classes/class.ilSessionAppointment.php');
871 $this->appointments = ilSessionAppointment::_readAppointmentsBySession($this->getId());
872 }
static _readAppointmentsBySession($a_event_id)

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

Referenced by read().

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

◆ initDefaultRoles()

ilObjSession::initDefaultRoles ( )

Create local session participant role.

Reimplemented from ilObject.

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

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

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

+ Here is the call graph for this function:

◆ initFiles()

ilObjSession::initFiles ( )

init files

@access protected

Parameters

return

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

882 {
883 include_once('./Modules/Session/classes/class.ilSessionFile.php');
884 $this->files = ilSessionFile::_readFilesByEvent($this->getEventId());
885 }
getEventId()
sget event id
static _readFilesByEvent($a_event_id)

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

Referenced by read().

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

◆ initParticipants()

ilObjSession::initParticipants ( )
protected

init participants object

@access protected

Returns

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

993 {
994 $this->members_obj = ilSessionParticipants::_getInstanceByObjId($this->getId());
995 }

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

Referenced by getMembersObject().

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

◆ isRegistrationNotificationEnabled()

ilObjSession::isRegistrationNotificationEnabled ( )
Returns
bool

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

403 {
405 }

References $registrationNotificationEnabled.

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

+ Here is the caller graph for this function:

◆ isRegistrationUserLimitEnabled()

ilObjSession::isRegistrationUserLimitEnabled ( )

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

332 {
333 return $this->reg_limited;
334 }

References $reg_limited.

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

+ Here is the caller graph for this function:

◆ isRegistrationWaitingListEnabled()

ilObjSession::isRegistrationWaitingListEnabled ( )

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

362 {
364 }

References $reg_waiting_list.

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

+ 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 115 of file class.ilObjSession.php.

116 {
117 global $DIC;
118
119 $ilDB = $DIC['ilDB'];
120
121 $query = "SELECT * FROM event " .
122 "WHERE obj_id = " . $ilDB->quote($a_obj_id);
123 $res = $ilDB->query($query);
124 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
125 $data['location'] = $row->location ? $row->location : '';
126 $data['details'] = $row->details ? $row->details : '';
127 $data['name'] = $row->tutor_name ? $row->tutor_name : '';
128 $data['email'] = $row->tutor_email ? $row->tutor_email : '';
129 $data['phone'] = $row->tutor_phone ? $row->tutor_phone : '';
130 }
131 return (array) $data;
132 }
$data
Definition: storeScorm.php:23

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

Referenced by ilObjSessionListGUI\getProperties().

+ Here is the caller graph for this function:

◆ prepareCalendarAppointments()

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

Prepare calendar appointments.

@access public

Parameters
stringmode UPDATE|CREATE|DELETE
Returns

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

896 {
897 include_once('./Services/Calendar/classes/class.ilCalendarAppointmentTemplate.php');
898
899 switch ($a_mode) {
900 case 'create':
901 case 'update':
902
903 $app = new ilCalendarAppointmentTemplate(self::CAL_REG_START);
904 $app->setTranslationType(IL_CAL_TRANSLATION_NONE);
905 $app->setTitle($this->getTitle() ? $this->getTitle() : $this->lng->txt('obj_sess'));
906 $app->setDescription($this->getLongDescription());
907 $app->setLocation($this->getLocation());
908
909 $sess_app = $this->getFirstAppointment();
910 $app->setFullday($sess_app->isFullday());
911 $app->setStart($sess_app->getStart());
912 $app->setEnd($sess_app->getEnd());
913 $apps[] = $app;
914
915 return $apps;
916
917 case 'delete':
918 // Nothing to do: The category and all assigned appointments will be deleted.
919 return array();
920 }
921 }
const IL_CAL_TRANSLATION_NONE
Apointment templates are used for automatic generated apointments.
getLongDescription()
get object long description (stored in object_description)
$app
Definition: cli.php:38

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

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

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

◆ read()

ilObjSession::read ( )

read session data

@access public

Parameters

return

Reimplemented from ilObject.

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

830 {
831 parent::read();
832
833 $query = "SELECT * FROM event WHERE " .
834 "obj_id = " . $this->db->quote($this->getId(), 'integer') . " ";
835 $res = $this->db->query($query);
836
837 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
838 $this->setLocation($row->location);
839 $this->setName($row->tutor_name);
840 $this->setPhone($row->tutor_phone);
841 $this->setEmail($row->tutor_email);
842 $this->setDetails($row->details);
843 $this->setRegistrationType($row->reg_type);
844 $this->enableRegistrationUserLimit($row->reg_limited);
845 $this->enableRegistrationWaitingList($row->reg_waiting_list);
846 $this->setWaitingListAutoFill($row->reg_auto_wait);
847 $this->setRegistrationMaxUsers($row->reg_limit_users);
848 $this->setRegistrationMinUsers($row->reg_min_users);
849 $this->setShowMembers((bool) $row->show_members);
850 $this->setMailToMembersType((int) $row->mail_members);
851 $this->setRegistrationNotificationEnabled($row->reg_notification);
852 $this->setRegistrationNotificationOption($row->notification_opt);
853 $this->event_id = $row->event_id;
854 }
855
856 $this->initAppointments();
857 $this->initFiles();
858 }
initAppointments()
init appointments
initFiles()
init files

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

+ Here is the call graph for this function:

◆ setAppointments()

ilObjSession::setAppointments (   $appointments)

set appointments

@access public

Parameters
arrayilSessionAppointments
Returns

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

474 {
475 $this->appointments = $appointments;
476 }

References $appointments.

◆ setDetails()

ilObjSession::setDetails (   $a_details)

set details

@access public

Parameters
stringdetails

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

306 {
307 $this->details = $a_details;
308 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setEmail()

ilObjSession::setEmail (   $a_email)

set email

@access public

Parameters
stringemail
Returns

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

271 {
272 $this->email = $a_email;
273 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setLocation()

ilObjSession::setLocation (   $a_location)

set location

@access public

Parameters
stringlocation

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

204 {
205 $this->location = $a_location;
206 }

Referenced by cloneSettings(), and read().

+ 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 506 of file class.ilObjSession.php.

507 {
508 $this->mail_members = $a_type;
509 }
$a_type
Definition: workflow.php:92

References $a_type.

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setName()

ilObjSession::setName (   $a_name)

set name

@access public

Parameters
stringname

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

226 {
227 $this->name = $a_name;
228 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setPhone()

ilObjSession::setPhone (   $a_phone)

set phone

@access public

Parameters
stringphone

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

248 {
249 $this->phone = $a_phone;
250 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setRegistrationMaxUsers()

ilObjSession::setRegistrationMaxUsers (   $a_users)

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

357 {
358 $this->reg_limited_users = $a_users;
359 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setRegistrationMinUsers()

ilObjSession::setRegistrationMinUsers (   $a_users)

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

347 {
348 $this->reg_min_users = $a_users;
349 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setRegistrationNotificationEnabled()

ilObjSession::setRegistrationNotificationEnabled (   $value)
Parameters
$value
Returns
mixed

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

412 {
413 return $this->registrationNotificationEnabled = $value;
414 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setRegistrationNotificationOption()

ilObjSession::setRegistrationNotificationOption (   $value)
Parameters
$value

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

428 {
429 $this->notificationOption = $value;
430 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setRegistrationType()

ilObjSession::setRegistrationType (   $a_type)

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

322 {
323 $this->reg_type = $a_type;
324 }

References $a_type.

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setShowMembers()

ilObjSession::setShowMembers (   $a_status)

Show members gallery.

Parameters
$a_status

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

386 {
387 $this->show_members = (bool) $a_status;
388 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ setWaitingListAutoFill()

ilObjSession::setWaitingListAutoFill (   $a_value)

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

372 {
373 $this->reg_waiting_list_autofill = (bool) $a_value;
374 }

Referenced by cloneSettings(), and read().

+ Here is the caller graph for this function:

◆ update()

ilObjSession::update (   $a_skip_meta_update = false)

update object

@access public

Parameters

return bool success

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

725 {
726 global $DIC;
727
728 $ilDB = $DIC['ilDB'];
729 global $DIC;
730
731 $ilAppEventHandler = $DIC['ilAppEventHandler'];
732
733 if (!parent::update()) {
734 return false;
735 }
736 if (!$a_skip_meta_update) {
737 $this->updateMetaData();
738 }
739
740 $query = "UPDATE event SET " .
741 "location = " . $this->db->quote($this->getLocation(), 'text') . "," .
742 "tutor_name = " . $this->db->quote($this->getName(), 'text') . ", " .
743 "tutor_phone = " . $this->db->quote($this->getPhone(), 'text') . ", " .
744 "tutor_email = " . $this->db->quote($this->getEmail(), 'text') . ", " .
745 "details = " . $this->db->quote($this->getDetails(), 'text') . ", " .
746 "registration = " . $this->db->quote($this->enabledRegistration(), 'integer') . ", " .
747 "reg_type = " . $this->db->quote($this->getRegistrationType(), 'integer') . ", " .
748 "reg_limited = " . $this->db->quote($this->isRegistrationUserLimitEnabled(), 'integer') . ", " .
749 "reg_limit_users = " . $this->db->quote($this->getRegistrationMaxUsers(), 'integer') . ", " .
750 "reg_min_users = " . $this->db->quote($this->getRegistrationMinUsers(), 'integer') . ", " .
751 "reg_waiting_list = " . $this->db->quote($this->isRegistrationWaitingListEnabled(), 'integer') . ", " .
752 "reg_auto_wait = " . $this->db->quote($this->hasWaitingListAutoFill(), 'integer') . ", " .
753 'show_members = ' . $this->db->quote($this->getShowMembers(), 'integer') . ', ' .
754 'mail_members = ' . $this->db->quote($this->getMailToMembersType(), 'integer') . ', ' .
755 "reg_auto_wait = " . $this->db->quote($this->hasWaitingListAutoFill(), 'integer') . ", " .
756 "reg_notification = " . $this->db->quote($this->isRegistrationNotificationEnabled(), 'integer') . ", " .
757 "notification_opt = " . $this->db->quote($this->getRegistrationNotificationOption(), 'text') . " " .
758 "WHERE obj_id = " . $this->db->quote($this->getId(), 'integer') . " ";
759 $res = $ilDB->manipulate($query);
760
761 $ilAppEventHandler->raise(
762 'Modules/Session',
763 'update',
764 array('object' => $this,
765 'obj_id' => $this->getId(),
766 'appointments' => $this->prepareCalendarAppointments('update'))
767 );
768 return true;
769 }
updateMetaData()
update meta data entry

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

Referenced by cloneSettings().

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

◆ validate()

ilObjSession::validate ( )

validate

@access public

Parameters

return bool

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

529 {
530 global $DIC;
531
532 $ilErr = $DIC['ilErr'];
533
534 // #17114
535 if ($this->isRegistrationUserLimitEnabled() &&
536 !$this->getRegistrationMaxUsers()) {
537 $ilErr->appendMessage($this->lng->txt("sess_max_members_needed"));
538 return false;
539 }
540
541 return true;
542 }
$ilErr
Definition: raiseError.php:18

References $DIC, $ilErr, getRegistrationMaxUsers(), and isRegistrationUserLimitEnabled().

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

◆ $notificationOption

ilObjSession::$notificationOption = ilSessionConstants::NOTIFICATION_INHERIT_OPTION
private

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

Referenced by getRegistrationNotificationOption().

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

◆ $registrationNotificationEnabled

ilObjSession::$registrationNotificationEnabled = false
private

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

Referenced by isRegistrationNotificationEnabled().

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