4 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
32 function update($a_validate =
true, $a_no_history =
false)
35 parent::update($a_validate, $a_no_history);
99 static function exists($a_media_pool_id, $a_title)
125 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
161 return self::lookupUsages($this->
getId(), $a_incl_hist);
174 $q =
"SELECT * FROM page_pc_usage WHERE pc_id = ".
175 $ilDB->quote($a_id,
"integer").
176 " AND pc_type = ".$ilDB->quote(
"incl",
"text");
180 $q.=
" AND usage_hist_nr = ".$ilDB->quote(0,
"integer");
183 $us_set = $ilDB->query($q);
185 while($us_rec = $ilDB->fetchAssoc($us_set))
188 if(is_int(strpos($us_rec[
"usage_type"],
":")))
190 $us_arr = explode(
":", $us_rec[
"usage_type"]);
199 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
208 $ret[] =
array(
"type" => $us_rec[
"usage_type"],
209 "id" => $us_rec[
"usage_id"],
210 "hist_nr" => $us_rec[
"usage_hist_nr"]);
215 $q =
"SELECT DISTINCT mep_id FROM mep_tree JOIN mep_item ON (child = obj_id) WHERE mep_item.obj_id = ".
216 $ilDB->quote($a_id,
"integer").
" AND mep_item.type = ".$ilDB->quote(
"pg",
"text");
217 $us_set = $ilDB->query($q);
218 while($us_rec = $ilDB->fetchAssoc($us_set))
221 "id" => $us_rec[
"mep_id"]);
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
static _mediaPoolPageExists($a_media_pool_id, $a_title)
Check whether page exists in media pool or not.
static lookupTitle($a_page_id)
Lookup title.
read()
Read media_pool data.
static deleteAllPagesOfMediaPool($a_media_pool_id)
delete media pool page and al related data
update($a_validate=true, $a_no_history=false)
update object data
getUsages($a_incl_hist=true)
get all usages of current media object
static lookupUsages($a_id, $a_incl_hist=true)
Lookup usages of media object.
Create styles array
The data for the language used.
getParentType()
Get parent type.
static exists($a_media_pool_id, $a_title)
Checks whether a page with given title exists.