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");
204 $q.=
" AND usage_hist_nr = ".$ilDB->quote(0,
"integer");
207 $us_set = $ilDB->query($q);
209 while($us_rec = $ilDB->fetchAssoc($us_set))
212 if(is_int(strpos($us_rec[
"usage_type"],
":")))
214 $us_arr = explode(
":", $us_rec[
"usage_type"]);
223 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
232 $ret[] = array(
"type" => $us_rec[
"usage_type"],
233 "id" => $us_rec[
"usage_id"],
234 "hist_nr" => $us_rec[
"usage_hist_nr"]);
239 $q =
"SELECT DISTINCT mep_id FROM mep_tree JOIN mep_item ON (child = obj_id) WHERE mep_item.obj_id = ".
240 $ilDB->quote($a_id,
"integer").
" AND mep_item.type = ".$ilDB->quote(
"pg",
"text");
241 $us_set = $ilDB->query($q);
242 while($us_rec = $ilDB->fetchAssoc($us_set))
244 $ret[] = array(
"type" =>
"mep",
245 "id" => $us_rec[
"mep_id"]);