This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.  
 More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Collects terms (reference or copy) from other glossaries 
- Author
 - Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de 
 
Definition at line 23 of file class.ilGlossaryForeignTermCollectorGUI.php.
 
◆ copyTerms()
      
        
          | ilGlossaryForeignTermCollectorGUI::copyTerms  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 147 of file class.ilGlossaryForeignTermCollectorGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
  149         if ($this->requested_table_glossary_foreign_term_action === 
"copyTerms"   150             && !empty($this->requested_table_glossary_foreign_term_ids)
   151             && $this->requested_table_glossary_foreign_term_ids[0] === 
"ALL_OBJECTS"   153             foreach ($this->foreign_glossary->getTermList() as $term) {
   154                 $this->term_manager->copyTermFromOtherGlossary(
   155                     $this->foreign_glossary->getRefId(),
   159         } elseif ($this->requested_table_glossary_foreign_term_action === 
"copyTerms") {
   160             foreach ($this->requested_table_glossary_foreign_term_ids as $term_id) {
   161                 $this->term_manager->copyTermFromOtherGlossary(
   162                     $this->foreign_glossary->getRefId(),
   167         if (empty($this->requested_table_glossary_foreign_term_ids)) {
   168             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"no_checkbox"), 
true);
   169             $this->
ctrl->redirect($this, 
"showTerms");
   172         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"), 
true);
   173         $this->
ctrl->returnToParent($this);
 
 
 
 
◆ executeCommand()
      
        
          | ilGlossaryForeignTermCollectorGUI::executeCommand  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getInstance()
  
  
      
        
          | static ilGlossaryForeignTermCollectorGUI::getInstance  | 
          ( | 
          ilObjGlossaryGUI  | 
          $a_glossary_gui | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ referenceTerms()
      
        
          | ilGlossaryForeignTermCollectorGUI::referenceTerms  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 176 of file class.ilGlossaryForeignTermCollectorGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
  179         if ($this->requested_table_glossary_foreign_term_action === 
"referenceTerms"   180             && !empty($this->requested_table_glossary_foreign_term_ids)
   181             && $this->requested_table_glossary_foreign_term_ids[0] === 
"ALL_OBJECTS"   183             foreach ($this->foreign_glossary->getTermList() as $term) {
   184                 $term_ids[] = (
int) $term[
"id"];
   186         } elseif ($this->requested_table_glossary_foreign_term_action === 
"referenceTerms") {
   187             $term_ids = 
array_map(
"intval", $this->requested_table_glossary_foreign_term_ids);
   189         if (empty($term_ids)) {
   190             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"no_checkbox"), 
true);
   191             $this->
ctrl->redirect($this, 
"showTerms");
   194         $this->term_manager->referenceTermsFromOtherGlossary(
   195             $this->foreign_glossary->getRefId(),
   199         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"), 
true);
   200         $this->
ctrl->returnToParent($this);
 
 
 
 
◆ setForeignGlossary()
      
        
          | ilGlossaryForeignTermCollectorGUI::setForeignGlossary  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 122 of file class.ilGlossaryForeignTermCollectorGUI.php.
References $ctrl, $lng, $ref_id, and ilLanguage\txt().
  127         $ref_id = $this->request->getForeignGlossaryRefId();
   129         if (
$ref_id == $this->glossary->getRefId()) {
   130             $this->tpl->setOnScreenMessage(
'failure', 
$lng->
txt(
"glo_please_select_other_glo"), 
true);
   131             $ilCtrl->redirect($this, 
"showGlossarySelector");
   134         $ilCtrl->redirect($this, 
"showTerms");
 txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
 
 
 
◆ showGlossarySelector()
      
        
          | ilGlossaryForeignTermCollectorGUI::showGlossarySelector  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 105 of file class.ilGlossaryForeignTermCollectorGUI.php.
References ILIAS\Repository\lng().
  107         $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
"glo_select_source_glo"));
   110             "showGlossarySelector",
   112             "setForeignGlossary",
   115         $exp->setTypeWhiteList(array(
"root", 
"cat", 
"grp", 
"crs", 
"glo", 
"fold"));
   116         $exp->setClickableTypes(array(
"glo"));
   117         if (!$exp->handleCommand()) {
   118             $this->tpl->setContent($exp->getHTML());
 
 
 
 
◆ showTerms()
      
        
          | ilGlossaryForeignTermCollectorGUI::showTerms  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ $ctrl
  
  
      
        
          | ilCtrl ilGlossaryForeignTermCollectorGUI::$ctrl | 
         
       
   | 
  
protected   | 
  
 
 
◆ $fglo_ref_id
  
  
      
        
          | int ilGlossaryForeignTermCollectorGUI::$fglo_ref_id | 
         
       
   | 
  
protected   | 
  
 
 
◆ $foreign_glossary
  
  
      
        
          | ilObjGlossary ilGlossaryForeignTermCollectorGUI::$foreign_glossary | 
         
       
   | 
  
protected   | 
  
 
 
◆ $glossary
◆ $glossary_gui
◆ $lng
  
  
      
        
          | ilLanguage ilGlossaryForeignTermCollectorGUI::$lng | 
         
       
   | 
  
protected   | 
  
 
 
◆ $request
  
  
      
        
          | ILIAS Glossary Editing EditingGUIRequest ilGlossaryForeignTermCollectorGUI::$request | 
         
       
   | 
  
protected   | 
  
 
 
◆ $requested_table_glossary_foreign_term_action
  
  
      
        
          | string ilGlossaryForeignTermCollectorGUI::$requested_table_glossary_foreign_term_action = "" | 
         
       
   | 
  
protected   | 
  
 
 
◆ $requested_table_glossary_foreign_term_ids
  
  
      
        
          | array ilGlossaryForeignTermCollectorGUI::$requested_table_glossary_foreign_term_ids = [] | 
         
       
   | 
  
protected   | 
  
 
 
◆ $table_manager
  
  
      
        
          | ILIAS components ILIAS Glossary Table TableManager ilGlossaryForeignTermCollectorGUI::$table_manager | 
         
       
   | 
  
protected   | 
  
 
 
◆ $term_manager
  
  
      
        
          | ILIAS Glossary Term TermManager ilGlossaryForeignTermCollectorGUI::$term_manager | 
         
       
   | 
  
protected   | 
  
 
 
◆ $tpl
◆ $ui_ren
  
  
      
        
          | ILIAS UI Renderer ilGlossaryForeignTermCollectorGUI::$ui_ren | 
         
       
   | 
  
protected   | 
  
 
 
◆ $user
  
  
      
        
          | ilObjUser ilGlossaryForeignTermCollectorGUI::$user | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: