/**
  * Preload common properties
  *
  * @param
  * @return
  */
 static function preloadCommonProperties($a_obj_ids, $a_context)
 {
     global $lng, $ilSetting, $ilUser;
     if ($a_context == self::CONTEXT_REPOSITORY) {
         $active_notes = !$ilSetting->get("disable_notes");
         $active_comments = !$ilSetting->get("disable_comments");
         if ($active_notes || $active_comments) {
             include_once "./Services/Notes/classes/class.ilNote.php";
         }
         if ($active_comments) {
             // needed for action
             self::$comments_activation = ilNote::getRepObjActivation($a_obj_ids);
         }
         // properties are optional
         if ($ilSetting->get('comments_tagging_in_lists')) {
             if ($active_notes || $active_comments) {
                 self::$cnt_notes = ilNote::_countNotesAndCommentsMultiple($a_obj_ids, true);
                 $lng->loadLanguageModule("notes");
             }
             $tags_set = new ilSetting("tags");
             if ($tags_set->get("enable")) {
                 $all_users = $tags_set->get("enable_all_users");
                 include_once "./Services/Tagging/classes/class.ilTagging.php";
                 if (!$ilSetting->get('comments_tagging_in_lists_tags')) {
                     self::$cnt_tags = ilTagging::_countTags($a_obj_ids, $all_users);
                 } else {
                     $tag_user_id = null;
                     if (!$all_users) {
                         $tag_user_id = $ilUser->getId();
                     }
                     self::$tags = ilTagging::_getListTagsForObjects($a_obj_ids, $tag_user_id);
                 }
                 $lng->loadLanguageModule("tagging");
             }
         }
         $lng->loadLanguageModule("rating");
     }
     self::$preload_done = true;
 }
 /**
  * Preload common properties
  *
  * @param
  * @return
  */
 static function preloadCommonProperties($a_obj_ids)
 {
     global $lng;
     $lng->loadLanguageModule("notes");
     $lng->loadLanguageModule("tagging");
     include_once "./Services/Tagging/classes/class.ilTagging.php";
     self::$cnt_tags = ilTagging::_countTags($a_obj_ids);
     include_once "./Services/Notes/classes/class.ilNote.php";
     self::$cnt_notes = ilNote::_countNotesAndCommentsMultiple($a_obj_ids, true);
     self::$comments_activation = ilNote::getRepObjActivation($a_obj_ids);
     self::$preload_done = true;
 }