Scope restrictions for advanced md records.
More...
Scope restrictions for advanced md records.
- Author
- Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Definition at line 25 of file class.ilAdvancedMDRecordScope.php.
◆ __construct()
ilAdvancedMDRecordScope::__construct |
( |
int |
$a_scope_id = 0 | ) |
|
◆ delete()
ilAdvancedMDRecordScope::delete |
( |
| ) |
|
Definition at line 99 of file class.ilAdvancedMDRecordScope.php.
101 $query =
'DELETE FROM adv_md_record_scope ' .
102 'WHERE scope_id = ' . $this->db->quote($this->scope_id,
'integer');
103 $this->db->manipulate($query);
◆ deleteByRecordId()
static ilAdvancedMDRecordScope::deleteByRecordId |
( |
int |
$a_record_id | ) |
|
|
static |
◆ getRecordId()
ilAdvancedMDRecordScope::getRecordId |
( |
| ) |
|
◆ getRefId()
ilAdvancedMDRecordScope::getRefId |
( |
| ) |
|
◆ getScopeId()
ilAdvancedMDRecordScope::getScopeId |
( |
| ) |
|
◆ read()
ilAdvancedMDRecordScope::read |
( |
| ) |
|
|
protected |
◆ save()
ilAdvancedMDRecordScope::save |
( |
| ) |
|
Definition at line 76 of file class.ilAdvancedMDRecordScope.php.
79 $this->scope_id = $this->db->nextId(
'adv_md_record_scope');
80 $query =
'INSERT INTO adv_md_record_scope (scope_id, record_id, ref_id) ' .
82 $this->db->quote($this->scope_id,
'integer') .
', ' .
83 $this->db->quote($this->record_id,
'integer') .
', ' .
84 $this->db->quote($this->ref_id,
'integer') .
86 $this->db->manipulate($query);
◆ setRecordId()
ilAdvancedMDRecordScope::setRecordId |
( |
int |
$a_record_id | ) |
|
◆ setRefId()
ilAdvancedMDRecordScope::setRefId |
( |
int |
$a_ref_id | ) |
|
◆ setScopeId()
ilAdvancedMDRecordScope::setScopeId |
( |
int |
$a_scope_id | ) |
|
◆ update()
ilAdvancedMDRecordScope::update |
( |
| ) |
|
Definition at line 89 of file class.ilAdvancedMDRecordScope.php.
References ILIAS\Repository\logger().
91 $this->
logger->debug(
'Update entry.');
93 $query =
'UPDATE adv_md_record_scope ' .
94 'SET ref_id = ' . $this->db->quote($this->ref_id,
'integer') .
' ' .
95 'WHERE scope_id = ' . $this->db->quote($this->scope_id,
'integer');
96 $this->db->manipulate($query);
◆ $db
◆ $logger
ilLogger ilAdvancedMDRecordScope::$logger |
|
protected |
◆ $record_id
int ilAdvancedMDRecordScope::$record_id |
|
private |
◆ $ref_id
int ilAdvancedMDRecordScope::$ref_id |
|
private |
◆ $scope_id
int ilAdvancedMDRecordScope::$scope_id |
|
private |
The documentation for this class was generated from the following file: