24 include_once
"./Services/Object/classes/class.ilObject.php";
49 parent::__construct($a_id,$a_call_by_reference);
59 $new_id = parent::create();
88 parent::MDUpdateListener($a_element);
91 if(!is_object($md_gen = $md->getGeneral()))
95 $title = $md_gen->getTitle();
96 foreach($md_gen->getDescriptionIds() as
$id)
98 $md_des = $md_gen->getDescription(
$id);
99 $description = $md_des->getDescription();
105 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
110 $link->readItem($link_arr[
'link_id']);
112 $link->setDescription($description);
133 if (!parent::delete())
139 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
144 include_once
'./Services/LinkChecker/classes/class.ilLinkCheckNotify.php';
155 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
172 $new_obj = parent::cloneObject($a_target_id,$a_copy_id);
176 include_once(
'Modules/WebResource/classes/class.ilLinkResourceItems.php');
178 $links->cloneItems($new_obj->getId());
197 $attribs = array(
"obj_id" =>
"il_".IL_INST_ID.
"_webr_".$this->getId());
202 include_once
'Services/MetaData/classes/class.ilMD2XML.php';
204 $md2xml->startExport();
208 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
214 array(
'type' =>
'Manual')
222 array(
'type' =>
'Title')
228 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
230 $links->toXML($writer);
static _isSingular($a_webr_id)
Check whether there is only one active link in the web resource.
toXML(ilXmlWriter $writer)
Write webresource xml.
static updateTitle($a_link_id, $a_title)
Update title.
updateMetaData()
update meta data entry
Class ilObject Basic functions for all objects.
static lookupNumberOfLinks($a_webr_id)
Get number of assigned links.
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
cloneObject($a_target_id, $a_copy_id=0)
Clone.
createMetaData()
create meta data entry
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)
ilObjLinkResource($a_id=0, $a_call_by_reference=true)
Constructor public.
MDUpdateListener($a_element)
Overwriten Metadata update listener for ECS functionalities.
xmlEndTag($tag)
Writes an endtag.
getId()
get object id public
cloneMetaData($target_obj)
Copy meta data.
getType()
get object type public
static _getFirstLink($a_webr_id)
Get first link item Check before with _isSingular() if there is more or less than one...
create($a_upload=false)
create object
Class ilObjLinkResourceGUI.
initLinkResourceItemsObject()
deleteMetaData()
delete meta data entry
appendXML($a_str)
append xml string to document
static _lookupSortMode($a_obj_id)
lookup sort mode