| 
|   | collectPropertiesAndActions () | 
|   | 
|   | __construct (array $a_appointment, ?ilInfoScreenGUI $a_info_screen, ?ilToolbarGUI $a_toolbar, ?Item $a_list_item) | 
|   | 
|   | getObjIdForAppointment () | 
|   | 
|   | getToolbar () | 
|   | 
|   | getListItem () | 
|   | Get list item.  More...
  | 
|   | 
|   | getInfoScreen () | 
|   | 
|   | getCatId (int $a_entry_id) | 
|   | 
|   | getCatInfo () | 
|   | 
|   | executeCommand () | 
|   | 
|   | getHTML () | 
|   | 
|   | addContainerInfo (int $a_obj_id) | 
|   | Add course/group container info.  More...
  | 
|   | 
|   | addInfoSection (string $a_txt) | 
|   | Add info section.  More...
  | 
|   | 
|   | addInfoProperty (string $a_txt, string $a_val) | 
|   | Add info property.  More...
  | 
|   | 
|   | addListItemProperty (string $a_txt, string $a_val) | 
|   | Add list item property.  More...
  | 
|   | 
|   | addAction (string $a_txt, string $a_link) | 
|   | Add action.  More...
  | 
|   | 
|   | collectPropertiesAndActions () | 
|   | Collect properties and actions.  More...
  | 
|   | 
|   | collectStandardPropertiesAndActions () | 
|   | Collect standard properties and actions.  More...
  | 
|   | 
|   | addObjectLinks (int $obj_id, ?array $a_appointment=null) | 
|   | Add object link.  More...
  | 
|   | 
|   | getReadableRefIds (int $a_obj_id) | 
|   | 
|   | addEventDescription (array $a_app) | 
|   | Add event description.  More...
  | 
|   | 
|   | addEventLocation (array $a_app) | 
|   | Add event location.  More...
  | 
|   | 
|   | addLastUpdate (array $a_app) | 
|   | Add last update.  More...
  | 
|   | 
|   | addCalendarInfo (array $cat_info) | 
|   | 
|   | addCommonSection (array $a_app, int $a_obj_id=0, ?array $cat_info=null, bool $a_container_info=false) | 
|   | 
|   | addMetaData (string $a_obj_type, int $a_obj_id, ?string $a_sub_obj_type=null, ?int $a_sub_obj_id=null) | 
|   | 
|   | getUserName (int $a_user_id, bool $a_force_name=false) | 
|   | Get (linked if possible) user name.  More...
  | 
|   | 
|   | downloadFiles () | 
|   | Download files from an appointment ( Modals )  More...
  | 
|   | 
      
        
          | ilAppointmentPresentationExerciseGUI::collectPropertiesAndActions  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 13 of file class.ilAppointmentPresentationExerciseGUI.php.
References ilAppointmentPresentationGUI\$appointment, $DIC, Vendor\Package\$f, $r, $url, ilAppointmentPresentationGUI\addAction(), ilAppointmentPresentationGUI\addCommonSection(), ilAppointmentPresentationGUI\addInfoProperty(), ilAppointmentPresentationGUI\addInfoSection(), ilAppointmentPresentationGUI\addLastUpdate(), ilAppointmentPresentationGUI\addListItemProperty(), CLIENT_ID, ILIAS\Repository\ctrl(), ilExcAssMemberState\getInstanceByIds(), ilAppointmentPresentationGUI\getObjIdForAppointment(), ilAppointmentPresentationGUI\getReadableRefIds(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
   17         $this->
lng->loadLanguageModule(
"exc");
    19         $f = $DIC->ui()->factory();
    20         $r = $DIC->ui()->renderer();
    27         $exc_ref = current($refs);
    36         $ass_id = $a_app[
"event"]->getContextId() / 10;            
    39         if ($state->areInstructionsVisible()) {
    40             $assignment_instructions = trim($assignment->getInstruction());
    41             if ($assignment_instructions != 
"") {
    43                 $is_html = (strlen($assignment_instructions) != strlen(strip_tags($assignment_instructions)));
    45                     $assignment_instructions = nl2br($assignment_instructions);
    49             $files = $assignment->getFiles();
    50             if (count($files) > 0) {
    51                 $this->has_files = 
true;
    53                 foreach ($files as $file) {
    54                     $this->
ctrl->setParameterByClass(
"ilexsubmissiongui", 
"ref_id", $exc_ref);
    55                     $this->
ctrl->setParameterByClass(
"ilexsubmissiongui", 
"file", urlencode($file[
"name"]));
    56                     $this->
ctrl->setParameterByClass(
"ilexsubmissiongui", 
"ass_id", $ass_id);
    57                     $url = $this->
ctrl->getLinkTargetByClass(array(
"ilExerciseHandlerGUI",
    59                                                                    ilAssignmentPresentationGUI::class, ilExSubmissionGUI::class
    61                     $this->
ctrl->setParameterByClass(
"ilexsubmissiongui", 
"ass_id", 
"");
    62                     $this->
ctrl->setParameterByClass(
"ilexsubmissiongui", 
"file", 
"");
    63                     $this->
ctrl->setParameterByClass(
"ilexsubmissiongui", 
"ref_if", 
"");
    64                     $str_files[$file[
"name"]] = 
$r->render(
$f->button()->shy($file[
"name"], 
$url));
    66                 ksort($str_files, SORT_NATURAL | SORT_FLAG_CASE);
    67                 $str_files = implode(
"<br>", $str_files);
    70                     $this->
lng->txt(
"exc_instruction_files"),
    71                     str_replace(
"<br>", 
", ", $str_files)
    77         if ($assignment->getMandatory()) {
    90             $this->
lng->txt(
"cal_exc_open"),
    91             "goto.php?target=exc_" . $exc_ref . 
"_" . $ass_id . 
"&client_id=" . 
CLIENT_ID 
addListItemProperty(string $a_txt, string $a_val)
Add list item property. 
 
getReadableRefIds(int $a_obj_id)
 
addInfoSection(string $a_txt)
Add info section. 
 
addInfoProperty(string $a_txt, string $a_val)
Add info property. 
 
addLastUpdate(array $a_app)
Add last update. 
 
static getInstanceByIds(int $a_ass_id, int $a_user_id=0)
 
addCommonSection(array $a_app, int $a_obj_id=0, ?array $cat_info=null, bool $a_container_info=false)
 
addAction(string $a_txt, string $a_link)
Add action.