4 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
32 function update($a_validate =
true, $a_no_history =
false)
99 static function exists($a_media_pool_id, $a_title)
125 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
185 $q =
"SELECT * FROM page_pc_usage WHERE pc_id = ".
186 $ilDB->quote($a_id,
"integer").
187 " AND pc_type = ".$ilDB->quote(
"incl",
"text");
191 $q.=
" AND usage_hist_nr = ".$ilDB->quote(0,
"integer");
194 $us_set = $ilDB->query($q);
196 while($us_rec = $ilDB->fetchAssoc($us_set))
199 if(is_int(strpos($us_rec[
"usage_type"],
":")))
201 $us_arr = explode(
":", $us_rec[
"usage_type"]);
210 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
219 $ret[] = array(
"type" => $us_rec[
"usage_type"],
220 "id" => $us_rec[
"usage_id"],
221 "hist_nr" => $us_rec[
"usage_hist_nr"]);
226 $q =
"SELECT DISTINCT mep_id FROM mep_tree JOIN mep_item ON (child = obj_id) WHERE mep_item.obj_id = ".
227 $ilDB->quote($a_id,
"integer").
" AND mep_item.type = ".$ilDB->quote(
"pg",
"text");
228 $us_set = $ilDB->query($q);
229 while($us_rec = $ilDB->fetchAssoc($us_set))
231 $ret[] = array(
"type" =>
"mep",
232 "id" => $us_rec[
"mep_id"]);