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 |
( |
|
$a_scope_id = 0 | ) |
|
◆ delete()
ilAdvancedMDRecordScope::delete |
( |
| ) |
|
Delete one entry.
Definition at line 104 of file class.ilAdvancedMDRecordScope.php.
References $query.
106 $query =
'DELETE FROM adv_md_record_scope ' .
107 'WHERE scope_id = ' . $this->db->quote($this->scope_id,
'integer');
108 $this->db->manipulate(
$query);
109 $this->entry_exists =
false;
◆ deleteByRecordI()
static ilAdvancedMDRecordScope::deleteByRecordI |
( |
|
$a_record_id | ) |
|
|
static |
◆ getRecordId()
ilAdvancedMDRecordScope::getRecordId |
( |
| ) |
|
◆ getRefId()
ilAdvancedMDRecordScope::getRefId |
( |
| ) |
|
◆ getScopeId()
ilAdvancedMDRecordScope::getScopeId |
( |
| ) |
|
◆ read()
ilAdvancedMDRecordScope::read |
( |
| ) |
|
|
protected |
◆ save()
ilAdvancedMDRecordScope::save |
( |
| ) |
|
Definition at line 74 of file class.ilAdvancedMDRecordScope.php.
References $query.
76 $this->logger->debug(
'Create new entry.');
78 $this->scope_id = $this->db->nextId(
'adv_md_record_scope');
79 $query =
'INSERT INTO adv_md_record_scope (scope_id, record_id, ref_id) ' .
81 $this->db->quote($this->scope_id,
'integer') .
', ' .
82 $this->db->quote($this->record_id,
'integer') .
', ' .
83 $this->db->quote($this->ref_id,
'integer') .
85 $this->db->manipulate(
$query);
86 $this->entry_exists =
true;
◆ setRecordId()
ilAdvancedMDRecordScope::setRecordId |
( |
|
$a_record_id | ) |
|
◆ setRefId()
ilAdvancedMDRecordScope::setRefId |
( |
|
$a_ref_id | ) |
|
◆ setScopeId()
ilAdvancedMDRecordScope::setScopeId |
( |
|
$a_scope_id | ) |
|
◆ update()
ilAdvancedMDRecordScope::update |
( |
| ) |
|
Definition at line 89 of file class.ilAdvancedMDRecordScope.php.
References $query.
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
ilAdvancedMDRecordScope::$db |
|
private |
◆ $entry_exists
ilAdvancedMDRecordScope::$entry_exists = false |
|
private |
◆ $logger
ilAdvancedMDRecordScope::$logger = null |
|
private |
◆ $record_id
ilAdvancedMDRecordScope::$record_id |
|
private |
◆ $ref_id
ilAdvancedMDRecordScope::$ref_id |
|
private |
◆ $scope_id
ilAdvancedMDRecordScope::$scope_id |
|
private |
The documentation for this class was generated from the following file: