36        $this->db = 
$GLOBALS[
'DIC']->database();
 
   37        $this->logger = 
$GLOBALS[
'DIC']->logger()->amet();
 
   39        $this->scope_id = $a_scope_id;
 
   45        $this->record_id = $a_record_id;
 
   55        $this->scope_id = $a_scope_id;
 
   65        $this->ref_id = $a_ref_id;
 
   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;
 
   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);
 
  104    public function delete()
 
  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;
 
  121        $query = 
'DELETE FROM adv_md_record_scope ' .
 
  122            'WHERE record_id = ' . 
$db->quote($a_record_id, 
'integer');
 
  132        if (!$this->scope_id) {
 
  135        $query = 
'SELECT * FROM adv_md_record_scope ' .
 
  136            'WHERE scope_id = ' . $this->db->quote($this->scope_id, 
'integer');
 
  139            $this->entry_exists = 
true;
 
  140            $this->record_id = 
$row->record_id;
 
  141            $this->ref_id = 
$row->ref_id;
 
An exception for terminatinating execution or to throw for unit testing.
Scope restrictions for advanced md records.
setRecordId($a_record_id)
__construct($a_scope_id=0)
Constructor.
static deleteByRecordI($a_record_id)
delete by record id
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
foreach($_POST as $key=> $value) $res