/** * Get tail dependencies * * @param string entity * @param string target release * @param array ids * @return array array of array with keys "component", entity", "ids" */ function getXmlExportHeadDependencies($a_entity, $a_target_release, $a_ids) { include_once "./Services/News/classes/class.ilNewsItem.php"; $mob_ids = array(); foreach ($a_ids as $id) { $mob_id = ilNewsItem::_lookupMobId($id); if ($mob_id > 0) { $mob_ids[$mob_id] = $mob_id; } } return array(array("component" => "Services/MediaObjects", "entity" => "mob", "ids" => $mob_ids)); }