コード例 #1
0
 /**
  * Get all pages of lm that contain any internal links
  */
 function getPagesWithLinksList($a_lm_id, $a_par_type)
 {
     $pages = ilLMPageObject::getPageList($a_lm_id);
     $ids = array();
     foreach ($pages as $page) {
         $ids[] = $page["obj_id"];
     }
     $linked_pages = ilLMPage::getPagesWithLinks($a_par_type, $a_lm_id);
     $result = array();
     foreach ($pages as $page) {
         if (is_array($linked_pages[$page["obj_id"]])) {
             $result[] = $page;
         }
     }
     return $result;
 }