3declare(strict_types=1);
 
   34        $this->or_composite_id = $a_or_composite_id;
 
   39        if (!$this->or_composite_id) {
 
   40            $query = 
"SELECT MAX(or_composite_id) orc FROM il_meta_requirement " .
 
   41                "WHERE rbac_id = " . $this->db->quote($this->
getRBACId(), 
'integer') . 
" " .
 
   42                "AND obj_id = " . $this->db->quote($this->
getObjId(), 
'integer') . 
" ";
 
   46                $this->or_composite_id = (
int) $row->orc;
 
   69        if (!$a_requirement_id) {
 
   73        $req->setMetaId($a_requirement_id);
 
   82        $req->setParentType(
'meta_technical');
 
   90        echo 
'Use ilMDOrcomposite::addRequirement()';
 
   94    public function delete(): 
bool 
  109        foreach ($reqs as 
$id) {
 
  111            $req->toXML($writer);
 
  115            $req->toXML($writer);
 
  129        string $a_parent_type,
 
  130        int $a_or_composite_id = 0
 
  136        $query = 
"SELECT DISTINCT(or_composite_id) or_composite_id FROM il_meta_requirement " .
 
  137            "WHERE rbac_id = " . 
$ilDB->quote($a_rbac_id, 
'integer') . 
" " .
 
  138            "AND obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" " .
 
  139            "AND parent_id = " . 
$ilDB->quote($a_parent_id, 
'integer') . 
" " .
 
  140            "AND parent_type = " . 
$ilDB->quote($a_parent_type, 
'text') . 
" " .
 
  141            "AND or_composite_id > 0 ";
 
  146            $ids[] = (
int) $row->or_composite_id;
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
 
toXML(ilXmlWriter $writer)
 
getRequirement(int $a_requirement_id)
 
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type, int $a_or_composite_id=0)
 
setOrCompositeId(int $a_or_composite_id)
 
static _getIds(int $a_rbac_id, int $a_obj_id, int $a_parent_id, string $a_parent_type, int $a_or_composite_id=0)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
xmlEndTag(string $tag)
Writes an endtag.
 
xmlStartTag(string $tag, ?array $attrs=null, bool $empty=false, bool $encode=true, bool $escape=true)
Writes a starttag.
 
catch(\Exception $e) $req