19declare(strict_types=1);
29 protected LOMServices $lom_services
39 $copyright_path = $this->lom_services->paths()->copyright();
40 $reader = $this->lom_services->read($obj_id, $sub_id, $type, $copyright_path);
41 if ($this->lom_services->copyrightHelper()->hasPresetCopyright($reader)) {
42 return $this->lom_services->copyrightHelper()->readPresetCopyright($reader)->title();
44 return $this->lom_services->copyrightHelper()->readCustomCopyright($reader);
53 protected function supportsLOM(
int $obj_id,
int $sub_id,
string $type): bool
55 $title_path = $this->lom_services->paths()->title();
56 $reader = $this->lom_services->read($obj_id, $sub_id, $type, $title_path);
57 if ($reader->allData($title_path)->current() !==
null) {
readPresentableCopyright(int $obj_id, int $sub_id, string $type)
supportsLOM(int $obj_id, int $sub_id, string $type)
There really should be better infrastructure in place to check what objects support LOM and which do ...
__construct(protected LOMServices $lom_services)