24include_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 _lookupSortMode($a_obj_id)
lookup sort mode
Class ilObjLinkResourceGUI.
static updateTitle($a_link_id, $a_title)
Update title.
static _getFirstLink($a_webr_id)
Get first link item Check before with _isSingular() if there is more or less than one.
static _isSingular($a_webr_id)
Check whether there is only one active link in the web resource.
static lookupNumberOfLinks($a_webr_id)
Get number of assigned links.
create($a_upload=false)
create object
MDUpdateListener($a_element)
Overwriten Metadata update listener for ECS functionalities.
toXML(ilXmlWriter $writer)
Write webresource xml.
cloneObject($a_target_id, $a_copy_id=0)
Clone.
ilObjLinkResource($a_id=0, $a_call_by_reference=true)
Constructor @access public.
initLinkResourceItemsObject()
Class ilObject Basic functions for all objects.
getType()
get object type @access public
deleteMetaData()
delete meta data entry
updateMetaData()
update meta data entry
createMetaData()
create meta data entry
cloneMetaData($target_obj)
Copy meta data.
getId()
get object id @access public
xmlEndTag($tag)
Writes an endtag.
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
appendXML($a_str)
append xml string to document
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)