/**
  * @brief Constructor
  *
  * @param Database  &$database                  reference to the Database-object
  * @param User      &$current_user              reference to the current user which is logged in
  * @param Log       &$log                       reference to the Log-object
  * @param integer   $id                         ID of the element we want to get
  * @param boolean   $allow_virtual_elements     @li if true, it's allowed to set $id to zero
  *                                                  (the StructuralDBElement needs this for the root element)
  *                                              @li if false, $id == 0 is not allowed (throws an Exception)
  *
  * @throws Exception    if there is no such element in the database
  * @throws Exception    if there was an error
  */
 public function __construct(&$database, &$current_user, &$log, $tablename, $id, $allow_virtual_elements = false)
 {
     parent::__construct($database, $current_user, $log, $tablename, $id, $allow_virtual_elements);
 }
 /**
  * @brief Constructor
  *
  * @param Database  &$database          reference to the Database-object
  * @param User      &$current_user      reference to the current user which is logged in
  * @param Log       &$log               reference to the Log-object
  * @param integer   $id                 ID of the attachement we want to get
  *
  * @throws Exception        if there is no such attachement in the database
  * @throws Exception        if there was an error
  */
 public function __construct(&$database, &$current_user, &$log, $id)
 {
     parent::__construct($database, $current_user, $log, 'attachements', $id);
 }