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");
225 $q =
"SELECT * FROM page_pc_usage WHERE pc_id = ".
226 $ilDB->quote($a_id,
"integer").
227 " AND pc_type = ".$ilDB->quote(
"incl",
"text");
228 $us_set = $ilDB->query(
$q);
230 while($us_rec = $ilDB->fetchAssoc($us_set))
233 if(is_int(strpos($us_rec[
"usage_type"],
":")))
235 $us_arr = explode(
":", $us_rec[
"usage_type"]);
244 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
253 $ret[] = array(
"type" => $us_rec[
"usage_type"],
254 "id" => $us_rec[
"usage_id"],
255 "hist_nr" => $us_rec[
"usage_hist_nr"]);
260 $q =
"SELECT DISTINCT mep_id FROM mep_tree JOIN mep_item ON (child = obj_id) WHERE mep_item.obj_id = ".
261 $ilDB->quote($a_id,
"integer").
" AND mep_item.type = ".$ilDB->quote(
"pg",
"text");
262 $us_set = $ilDB->query(
$q);
263 while($us_rec = $ilDB->fetchAssoc($us_set))
265 $ret[] = array(
"type" =>
"mep",
266 "id" => $us_rec[
"mep_id"]);