5include_once 
"Services/Object/classes/class.ilObjectListGUI.php";
 
   31                $this->static_link_enabled = 
true;
 
   32                $this->delete_enabled = 
true;
 
   33                $this->cut_enabled = 
true;
 
   34                $this->copy_enabled = 
true;
 
   35                $this->subscribe_enabled = 
true;
 
   36                $this->link_enabled = 
false;
 
   37                $this->payment_enabled = 
true;
 
   38                $this->info_screen_enabled = 
true;
 
   40                $this->gui_class_name = 
"ilobjcoursegui";
 
   42                include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
 
   44                if($this->substitutions->isActive())
 
   46                        $this->substitutions_enabled = 
true;
 
   50                include_once(
'Modules/Course/classes/class.ilObjCourseAccess.php');
 
   62        function initItem($a_ref_id, $a_obj_id, $a_title = 
"", $a_description = 
"")
 
   66                parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
 
   84                $props = parent::getProperties();
 
   87                include_once 
'Modules/Course/classes/class.ilObjCourseAccess.php';
 
   90                        $showRegistrationInfo = 
false;
 
   91                        $props[] = array(
"alert" => 
true, 
"property" => 
$lng->txt(
"status"),
 
   92                                "value" => 
$lng->txt(
"offline"));
 
   96                include_once 
'Modules/Course/classes/class.ilCourseParticipant.php';
 
   98                if($members->isBlocked(
$ilUser->getId()) and $members->isAssigned(
$ilUser->getId()))
 
  100                        $props[] = array(
"alert" => 
true, 
"property" => 
$lng->txt(
"member_status"),
 
  101                                "value" => 
$lng->txt(
"crs_status_blocked"));
 
  105                include_once 
'Modules/Course/classes/class.ilCourseParticipants.php';
 
  108                        $props[] = array(
"alert" => 
true, 
"property" => 
$lng->txt(
"member_status"),
 
  109                                "value" => 
$lng->txt(
"crs_status_pending"));
 
  112                include_once 
'./Modules/Course/classes/class.ilObjCourseAccess.php';
 
  114                if(
$info[
'reg_info_list_prop'])
 
  119                                'property' => 
$info[
'reg_info_list_prop'][
'property'],
 
  120                                'value' => 
$info[
'reg_info_list_prop'][
'value']
 
  123                if(
$info[
'reg_info_list_prop_limit'])
 
  129                                'property' => 
$info[
'reg_info_list_prop_limit'][
'property'],
 
  130                                'propertyNameVisible' => strlen(
$info[
'reg_info_list_prop_limit'][
'property']) ? 
true : 
false,
 
  131                                'value' => 
$info[
'reg_info_list_prop_limit'][
'value']
 
  136                include_once 
'./Modules/Course/classes/class.ilCourseWaitingList.php';
 
  141                                "property"      => 
$lng->txt(
'member_status'),
 
  142                                "value"         => 
$lng->txt(
'on_waiting_list')
 
  153                                'property' => 
$info[
'property'],
 
  154                                'value' => 
$info[
'value']
 
  159                include_once 
"./Modules/Course/classes/class.ilCourseCertificateAdapter.php";
 
  162                        $lng->loadLanguageModule(
'certificate');
 
  163                        $cmd_link = 
"ilias.php?baseClass=ilRepositoryGUI&ref_id=".$this->ref_id.
 
  164                                        "&cmd=deliverCertificate";
 
  165                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"passed"),
 
  166                                "value" => 
'<a href="' . $cmd_link . 
'">' . 
$lng->txt(
"download_certificate") . 
'</a>');
 
  185                if($a_cmd != 
'view' and $a_cmd != 
'leave' and $a_cmd != 
'join')
 
  190                if($a_permission == 
'crs_linked')
 
  193                                parent::checkCommandAccess(
'read', $a_cmd, $a_ref_id, $a_type, $a_obj_id) ||
 
  194                                parent::checkCommandAccess(
'join', $a_cmd, $a_ref_id, $a_type, $a_obj_id);
 
  196                return parent::checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id);
 
static _getInstanceByObjectType($a_type)
Singleton: use this method to get an instance.
_checkAllConditionsOfTarget($a_target_ref_id, $a_target_id, $a_target_type="", $a_usr_id=0)
checks wether all conditions of a target object are fulfilled
static _hasUserCertificate($a_usr_id, $a_obj_id)
Check if user has certificate for course.
static _getInstanceByObjId($a_obj_id, $a_usr_id)
Get singleton instance.
static lookupPeriodInfo($a_obj_id)
Lookup course period info.
_getCommands()
get commands
static lookupRegistrationInfo($a_obj_id)
Lookup registration info @global ilDB $ilDB @global ilObjUser $ilUser @global ilLanguage $lng.
static _isOffline($a_obj_id)
Type-specific implementation of general status.
Class ilObjCourseListGUI.
getProperties()
Get item properties.
ilObjCourseListGUI()
constructor
checkCommandAccess($a_permission, $a_cmd, $a_ref_id, $a_type, $a_obj_id="")
Workaround for course titles (linked if join or read permission is granted)
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
ilObjectListGUI()
constructor
static _isSubscriber($a_obj_id, $a_usr_id)
check if user is subscriber
static _isOnList($a_usr_id, $a_obj_id)
Check if a user on the waiting list.