◆ __construct()
      
        
          | ilECSUserConsentModalGUI::__construct  | 
          ( | 
          int  | 
          $a_usr_id,  | 
        
        
           | 
           | 
          int  | 
          $a_ref_id,  | 
        
        
           | 
           | 
          ilRemoteObjectBaseGUI  | 
          $remote_gui = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ addConsentModalToCard()
◆ addConsentModalToToolbar()
      
        
          | ilECSUserConsentModalGUI::addConsentModalToToolbar  | 
          ( | 
          ilToolbarGUI  | 
          $toolbar | ) | 
           | 
        
      
 
 
◆ addLinkToToolbar()
      
        
          | ilECSUserConsentModalGUI::addLinkToToolbar  | 
          ( | 
          ilToolbarGUI  | 
          $toolbar | ) | 
           | 
        
      
 
 
◆ addRemoteLinkToToolbar()
  
  
      
        
          | ilECSUserConsentModalGUI::addRemoteLinkToToolbar  | 
          ( | 
          ilToolbarGUI  | 
          $toolbar | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ getConsentModalComponents()
  
  
      
        
          | ilECSUserConsentModalGUI::getConsentModalComponents  | 
          ( | 
          int  | 
          $a_trigger_type = self::TRIGGER_TYPE_STANDARD | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 177 of file class.ilECSUserConsentModalGUI.php.
References $id, $valid, initConsentForm(), ILIAS\Repository\lng(), and saveConsent().
Referenced by addConsentModalToCard(), addConsentModalToToolbar(), and getTitleLink().
  181         $form_id = 
'form_' . $form->getId();
   182         $agree = $this->ui_factory->button()
   183                                   ->primary(
'Agree and Proceed', 
'#')
   185                                       function (
$id) use ($form_id) {
   186                                           return "$('#$id').click(function() { $('#$form_id').submit(); return false; });";
   190         $submitted = (string) ($this->request->getParsedBody()[
'cmd'] ?? 
'');
   193         if (strcmp($submitted, 
'submit') === 0) {
   195                 $form->setValuesByPost();
   196                 $error = $this->ui_factory->messageBox()->failure(
   197                     $this->
lng->txt(
'ecs_consent_required')
   199                 $error_html = $this->ui_renderer->render([$error]);
   204         $modal = $this->ui_factory->modal()->roundtrip(
   205             $this->
lng->txt(
'ecs_consent_modal_title'),
   206             $this->ui_factory->legacy(
   210         )->withActionButtons([$agree]);
   212             $modal = $modal->withOnLoad($modal->getShowSignal());
   216         if ($a_trigger_type === self::TRIGGER_TYPE_STANDARD) {
   217             $button = $this->ui_factory->button()->standard(
   218                 $this->
lng->txt($this->remote_object->getType() . 
'_call'),
   221                 $modal->getShowSignal()
   223         } elseif ($a_trigger_type === self::TRIGGER_TYPE_SHY) {
   224             $button = $this->ui_factory->button()->shy(
   225                 $this->remote_object->getTitle(),
   228                 $modal->getShowSignal()
   231         return [$button, $modal];
 
saveConsent(ilPropertyFormGUI $form)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ getGUIClassName()
  
  
      
        
          | ilECSUserConsentModalGUI::getGUIClassName  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ getOrganisation()
  
  
      
        
          | ilECSUserConsentModalGUI::getOrganisation  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ getTitleLink()
      
        
          | ilECSUserConsentModalGUI::getTitleLink  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ hasConsented()
      
        
          | ilECSUserConsentModalGUI::hasConsented  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ initConsentForm()
  
  
      
        
          | ilECSUserConsentModalGUI::initConsentForm  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Definition at line 260 of file class.ilECSUserConsentModalGUI.php.
References $provider, ilObject\_lookupTitle(), getGUIClassName(), getOrganisation(), ILIAS\Repository\lng(), and lookupOrganization().
Referenced by getConsentModalComponents().
  263         $form->setId(uniqid(
'form', 
false));
   264         $form->setFormAction(
'#');
   267         $ref_id_hidden->setValue((
string) $this->ref_id);
   268         $form->addItem($ref_id_hidden);
   271         $form->addItem($ref_type_hidden);
   273             $this->
lng->txt(
'title'),
   279         $form->addItem($title);
   282             $this->
lng->txt(
'ecs_form_target_platform'),
   286         $form->addItem($target);
   292                 $this->
lng->txt(
'organization'),
   295             $provider->setValue($organisation->getName());
   300             $this->
lng->txt(
'ecs_form_consent'),
   303         $consent->setValue(
"1");
   304         $consent->setChecked($this->consents->hasConsented($this->server_id, $this->mid));
   305         $consent->setRequired(
true);
   306         $form->addItem($consent);
   308         $user_data_fields = [];
   315             $user_data_fields[] = $this->
lng->txt(
'ecs_' . $field);
   317         $listing = $this->ui_factory->listing()->unordered($user_data_fields);
   318         $listing_html = $this->ui_renderer->render([$listing]);
   319         $consent->setOptionTitle(
   321                 'ecs_form_consent_option_title'   322             ) . 
'<br />' . $listing_html
   325         $submit->setValue(
'submit');
   326         $form->addItem($submit);
 
static _lookupTitle(int $obj_id)
 
 
 
 
◆ initMidAndServer()
  
  
      
        
          | ilECSUserConsentModalGUI::initMidAndServer  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ initRemoteObject()
  
  
      
        
          | ilECSUserConsentModalGUI::initRemoteObject  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ isLocalObject()
  
  
      
        
          | ilECSUserConsentModalGUI::isLocalObject  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ lookupOrganization()
  
  
      
        
          | ilECSUserConsentModalGUI::lookupOrganization  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ saveConsent()
◆ $consents
◆ $ctrl
◆ $exportManager
◆ $importManager
◆ $lng
◆ $mid
  
  
      
        
          | int ilECSUserConsentModalGUI::$mid | 
         
       
   | 
  
private   | 
  
 
 
◆ $obj_id
  
  
      
        
          | int ilECSUserConsentModalGUI::$obj_id | 
         
       
   | 
  
private   | 
  
 
 
◆ $objDefinition
◆ $ref_id
  
  
      
        
          | int ilECSUserConsentModalGUI::$ref_id | 
         
       
   | 
  
private   | 
  
 
 
◆ $remote_gui
◆ $remote_object
◆ $request
  
  
      
        
          | RequestInterface ilECSUserConsentModalGUI::$request | 
         
       
   | 
  
protected   | 
  
 
 
◆ $server_id
  
  
      
        
          | int ilECSUserConsentModalGUI::$server_id | 
         
       
   | 
  
private   | 
  
 
 
◆ $toolbar
◆ $ui_factory
  
  
      
        
          | UIFactory ilECSUserConsentModalGUI::$ui_factory | 
         
       
   | 
  
protected   | 
  
 
 
◆ $ui_renderer
  
  
      
        
          | UIRenderer ilECSUserConsentModalGUI::$ui_renderer | 
         
       
   | 
  
protected   | 
  
 
 
◆ $usr_id
  
  
      
        
          | int ilECSUserConsentModalGUI::$usr_id | 
         
       
   | 
  
private   | 
  
 
 
◆ CMD_RENDER_MODAL
      
        
          | const ilECSUserConsentModalGUI::CMD_RENDER_MODAL = 'renderConsentModal' | 
        
      
 
 
◆ CMD_SAVE_CONSENT
      
        
          | const ilECSUserConsentModalGUI::CMD_SAVE_CONSENT = 'saveConsent' | 
        
      
 
 
◆ TRIGGER_TYPE_CARD
  
  
      
        
          | const ilECSUserConsentModalGUI::TRIGGER_TYPE_CARD = 3 | 
         
       
   | 
  
protected   | 
  
 
 
◆ TRIGGER_TYPE_SHY
  
  
      
        
          | const ilECSUserConsentModalGUI::TRIGGER_TYPE_SHY = 1 | 
         
       
   | 
  
protected   | 
  
 
 
◆ TRIGGER_TYPE_STANDARD
  
  
      
        
          | const ilECSUserConsentModalGUI::TRIGGER_TYPE_STANDARD = 2 | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: