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 11 of file class.ilAdvancedMDRecordScope.php.
◆ __construct()
| ilAdvancedMDRecordScope::__construct |
( |
int |
$a_scope_id = 0 | ) |
|
◆ delete()
| ilAdvancedMDRecordScope::delete |
( |
| ) |
|
Definition at line 85 of file class.ilAdvancedMDRecordScope.php.
87 $query =
'DELETE FROM adv_md_record_scope ' .
88 'WHERE scope_id = ' . $this->db->quote($this->scope_id,
'integer');
89 $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 62 of file class.ilAdvancedMDRecordScope.php.
65 $this->scope_id = $this->db->nextId(
'adv_md_record_scope');
66 $query =
'INSERT INTO adv_md_record_scope (scope_id, record_id, ref_id) ' .
68 $this->db->quote($this->scope_id,
'integer') .
', ' .
69 $this->db->quote($this->record_id,
'integer') .
', ' .
70 $this->db->quote($this->ref_id,
'integer') .
72 $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 75 of file class.ilAdvancedMDRecordScope.php.
References ILIAS\Repository\logger().
77 $this->
logger->debug(
'Update entry.');
79 $query =
'UPDATE adv_md_record_scope ' .
80 'SET ref_id = ' . $this->db->quote($this->ref_id,
'integer') .
' ' .
81 'WHERE scope_id = ' . $this->db->quote($this->scope_id,
'integer');
82 $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: