4 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
45 function update($a_validate =
true, $a_no_history =
false)
112 static function exists($a_media_pool_id, $a_title)
138 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
198 $q =
"SELECT * FROM page_pc_usage WHERE pc_id = ".
199 $ilDB->quote($a_id,
"integer").
200 " AND pc_type = ".$ilDB->quote(
"incl",
"text");
201 $us_set = $ilDB->query($q);
203 while($us_rec = $ilDB->fetchAssoc($us_set))
206 if(is_int(strpos($us_rec[
"usage_type"],
":")))
208 $us_arr = explode(
":", $us_rec[
"usage_type"]);
217 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
226 $ret[] = array(
"type" => $us_rec[
"usage_type"],
227 "id" => $us_rec[
"usage_id"],
228 "hist_nr" => $us_rec[
"usage_hist_nr"]);
233 $q =
"SELECT DISTINCT mep_id FROM mep_tree JOIN mep_item ON (child = obj_id) WHERE mep_item.obj_id = ".
234 $ilDB->quote($a_id,
"integer").
" AND mep_item.type = ".$ilDB->quote(
"pg",
"text");
235 $us_set = $ilDB->query($q);
236 while($us_rec = $ilDB->fetchAssoc($us_set))
238 $ret[] = array(
"type" =>
"mep",
239 "id" => $us_rec[
"mep_id"]);