3 declare(strict_types=1);
    36         bool $a_call_by_reference = 
true    40         $this->
user = $DIC->user();
    48         $ilDB = $DIC->database();
    50         $query = 
"SELECT * FROM container_reference " .
    51             "WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer') . 
" ";
    54             return (
int) $row->target_obj_id;
    63         $ilDB = $DIC->database();
    65         $query = 
"SELECT ref_id FROM object_reference obr " .
    66             "JOIN container_reference cr ON obr.obj_id = cr.target_obj_id " .
    67             "WHERE cr.obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer');
    70             return (
int) $row->ref_id;
    79         $ilDB = $DIC->database();
    81         $query = 
'SELECT title,title_type FROM container_reference cr ' .
    82                  'JOIN object_data od ON cr.obj_id = od.obj_id ' .
    83                  'WHERE cr.obj_id = ' . 
$ilDB->quote($obj_id, 
'integer');
    86             if ((
int) $row->title_type === self::TITLE_TYPE_CUSTOM) {
    87                 return (
string) $row->title;
    90         return self::_lookupTargetTitle($obj_id);
    97         $ilDB = $DIC->database();
    99         $query = 
"SELECT title FROM object_data od " .
   100             "JOIN container_reference cr ON target_obj_id = od.obj_id " .
   101             "WHERE cr.obj_id = " . 
$ilDB->quote($a_obj_id, 
'integer');
   104             return (
string) $row->title;
   113         $ilDB = $DIC->database();
   115         $query = 
"SELECT * FROM container_reference " .
   116             "WHERE target_obj_id = " . 
$ilDB->quote($a_target_id, 
'integer') . 
" ";
   119             return (
int) $row->obj_id;
   133         $ilDB = $DIC->database();
   135         $query = 
"SELECT * FROM container_reference " .
   136             "WHERE target_obj_id = " . 
$ilDB->quote($a_target_id, 
'integer') . 
" ";
   140             $ret[] = (
int) $row->obj_id;
   152         $this->target_id = $a_target_id;
   157         $this->target_ref_id = $a_id;
   172         $this->title_type = 
$type;
   181         $query = 
"SELECT * FROM container_reference " .
   182             "WHERE obj_id = " . 
$ilDB->quote($this->
getId(), 
'integer') . 
" ";
   205         if ($this->
getTitleType() === self::TITLE_TYPE_CUSTOM) {
   209         return $this->
lng->txt(
'reference_of') . 
' ' . $this->
getTitle();
   218         $query = 
"DELETE FROM container_reference " .
   219             "WHERE obj_id = " . 
$ilDB->quote($this->
getId(), 
'integer') . 
" ";
   220         $ilDB->manipulate($query);
   222         $query = 
"INSERT INTO container_reference (obj_id, target_obj_id, title_type) " .
   224             $ilDB->quote($this->
getId(), 
'integer') . 
", " .
   228         $ilDB->manipulate($query);
   232     public function delete(): 
bool   236         if (!parent::delete()) {
   240         $query = 
"DELETE FROM container_reference " .
   241             "WHERE obj_id = " . 
$ilDB->quote($this->
getId(), 
'integer') . 
" ";
   242         $ilDB->manipulate($query);
   249         $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupTargetTitle(int $a_obj_id)
 
static _lookupTitle(int $obj_id)
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
setTargetRefId(int $a_id)
 
static _lookupSourceId(int $a_target_id)
 
static _lookupTitle(int $obj_id)
 
setTargetId(int $a_target_id)
 
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
 
static _lookupSourceIds(int $a_target_id)
Get ids of all container references that target the object with the given id. 
 
__construct(int $a_id=0, bool $a_call_by_reference=true)
 
__construct(Container $dic, ilPlugin $plugin)
 
static _lookupTargetRefId(int $a_obj_id)
 
static _lookupTargetId(int $a_obj_id)