31         $this->db = $DIC->database();
    39         $q = 
"SELECT DISTINCT(a.value) FROM il_bibl_data AS d    40 JOIN il_bibl_entry AS e ON e.data_id = d.id    41 JOIN il_bibl_attribute AS a on a.entry_id = e.id    42 WHERE a.name = %s AND d.id = %s";
    44         $res = $this->db->queryF(
$q, [
'text', 
'integer'], [
    49         while (
$data = $this->db->fetchObject(
$res)) {
    70         $type_id = $this->field_factory->getType()->getId();
    72         foreach ($attributes as $attribute) {
    73             if (!$attribute->getName()) {
    76             $field = $this->field_factory->findOrCreateFieldByTypeAndIdentifier($type_id, $attribute->getName());
    77             $position = $field->getPosition();
    78             $position = $position ?: $max + 1;
    80             $max = (max($position, $max));
    81             $sorted[$position] = $attribute;
    95         $ilBiblAttribute->setName($name);
    96         $ilBiblAttribute->setValue($value);
    97         $ilBiblAttribute->setEntryId($entry_id);
    98         $ilBiblAttribute->store();
   100         $this->field_factory->findOrCreateFieldOfAttribute($ilBiblAttribute);
 
sortAttributes(array $attributes)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getPossibleValuesForFieldAndObject(ilBiblFieldInterface $field, int $object_id)
 
static where($where, $operator=null)
 
createAttribute(string $name, string $value, int $entry_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ilBiblFieldFactoryInterface $field_factory
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getAttributesForEntry(ilBiblEntryInterface $entry)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(ilBiblFieldFactoryInterface $field_factory)