24 include_once
"./Services/Object/classes/class.ilObject.php";
45 public function __construct($a_id = 0,$a_call_by_reference =
true)
48 parent::__construct($a_id,$a_call_by_reference);
58 $new_id = parent::create();
87 parent::MDUpdateListener($a_element);
90 if(!is_object($md_gen = $md->getGeneral()))
94 $title = $md_gen->getTitle();
95 foreach($md_gen->getDescriptionIds() as
$id)
97 $md_des = $md_gen->getDescription(
$id);
98 $description = $md_des->getDescription();
104 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
109 $link->readItem($link_arr[
'link_id']);
111 $link->setDescription($description);
132 if (!parent::delete())
138 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
143 include_once
'./Services/LinkChecker/classes/class.ilLinkCheckNotify.php';
154 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
169 public function cloneObject($a_target_id,$a_copy_id = 0, $a_omit_tree =
false)
171 $new_obj = parent::cloneObject($a_target_id,$a_copy_id, $a_omit_tree);
175 include_once(
'Modules/WebResource/classes/class.ilLinkResourceItems.php');
177 $links->cloneItems($new_obj->getId());
196 $attribs =
array(
"obj_id" =>
"il_".IL_INST_ID.
"_webr_".$this->getId());
201 include_once
'Services/MetaData/classes/class.ilMD2XML.php';
203 $md2xml->startExport();
207 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
213 array(
'type' =>
'Manual')
221 array(
'type' =>
'Title')
227 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
229 $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.
static _deleteAll($webr_id)
createMetaData()
create meta data entry
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)
static _deleteObject($a_obj_id)
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
Create styles array
The data for the language used.
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
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone.
Class ilObjLinkResourceGUI.
initLinkResourceItemsObject()
deleteMetaData()
delete meta data entry
appendXML($a_str)
append xml string to document
static _lookupSortMode($a_obj_id)
lookup sort mode
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.