19 declare(strict_types=1);
    32     public function __construct(
int $a_id = 0, 
bool $a_call_by_reference = 
true)
    39         $this->lom_services = $DIC->learningObjectMetadata();
    44         if (isset($this->repo)) {
    55         $new_id = parent::create();
    65         return parent::update();
    70         if ($a_element !== 
'General') {
    74         $paths = $this->lom_services->paths();
    75         $reader = $this->lom_services->read(
    79             $paths->custom()->withNextStep(
'general')->get()
    82         $title = $reader->firstData($paths->title())->value();
    83         $description = $reader->firstData($paths->firstDescription())->value();
    89             $item = $this->
getWebLinkRepo()->getAllItemsAsContainer()->getFirstItem();
    96                 $item->getParameters()
   110     public function delete(): 
bool   113         if (!parent::delete()) {
   132         bool $omit_tree = 
false   134         $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
   138         $items = $this->
getWebLinkRepo()->getAllItemsAsContainer()->getItems();
   141         foreach ($items as $item) {
   145                 $item->getDescription(),
   148                 $item->getParameters()
   158         if ($new_web_link_repo->doesOnlyOneItemExist(
true)) {
   162                 $new_obj->getTitle(),
   163                 $new_obj->getDescription(),
   166                 $item->getParameters()
   168             $new_web_link_repo->updateItem($item, $draft);
   174                 $new_obj->getTitle(),
   175                 $new_obj->getDescription()
   177             $new_web_link_repo->createList($draft_list);
   185         $attribs = array(
"obj_id" => 
"il_" . 
IL_INST_ID . 
"_webr_" . $this->
getId(
   194             $md2xml->startExport();
   203                     array(
'type' => 
'Manual')
   211                     array(
'type' => 
'Title')
   229         foreach ($items as $item) {
   231             $item->toXML($writer, $position);
 
createAllItemsInDraftContainer(ilWebLinkDraftItemsContainer $container)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
appendXML(string $a_str)
append xml string to document 
 
xmlEndTag(string $tag)
Writes an endtag. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupSortMode(int $a_obj_id)
 
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
 
cloneMetaData(ilObject $target_obj)
Copy meta data. 
 
doMDUpdateListener(string $a_element)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
LOMServices $lom_services
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(Container $dic, ilPlugin $plugin)
 
toXML(ilXmlWriter $writer, bool $skip_lom=false)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag. 
 
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content) 
 
ilWebLinkDatabaseRepository $repo
 
static _getFirstLink(int $a_webr_id)
Get first link item Check before with _isSingular() if there is more or less than one...
 
__construct(int $a_id=0, bool $a_call_by_reference=true)