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);
56 public function create($a_upload =
false)
58 $new_id = parent::create();
86 parent::MDUpdateListener($a_element);
89 if (!is_object($md_gen = $md->getGeneral())) {
92 $title = $md_gen->getTitle();
93 foreach ($md_gen->getDescriptionIds() as
$id) {
94 $md_des = $md_gen->getDescription(
$id);
100 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
104 $link->readItem($link_arr[
'link_id']);
124 public function delete()
127 if (!parent::delete()) {
132 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
137 include_once
'./Services/LinkChecker/classes/class.ilLinkCheckNotify.php';
148 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
163 public function cloneObject($a_target_id, $a_copy_id = 0, $a_omit_tree =
false)
165 $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
169 include_once(
'Modules/WebResource/classes/class.ilLinkResourceItems.php');
171 $links->cloneItems($new_obj->getId());
189 $attribs =
array(
"obj_id" =>
"il_" . IL_INST_ID .
"_webr_" . $this->
getId());
194 include_once
'Services/MetaData/classes/class.ilMD2XML.php';
196 $md2xml->startExport();
200 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
205 array(
'type' =>
'Manual')
213 array(
'type' =>
'Title')
219 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
static _isSingular($a_webr_id)
Check whether there is only one active link in the web resource.
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
toXML(ilXmlWriter $writer)
Write webresource xml.
static updateTitle($a_link_id, $a_title)
Update title.
updateMetaData()
update meta data entry
static lookupNumberOfLinks($a_webr_id)
Get number of assigned links.
static _deleteAll($webr_id)
createMetaData()
create meta data entry
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...
update($pash, $contents, Config $config)
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
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.