Ejemplo n.º 1
0
 /**
  * @brief Constructor
  *
  * @note  It's allowed to create an object with the ID 0 (for the root element).
  *
  * @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 filetype we want to get
  *
  * @throws Exception    if there is no such attachement type in the database
  * @throws Exception    if there was an error
  */
 public function __construct(&$database, &$current_user, &$log, $id)
 {
     parent::__construct($database, $current_user, $log, 'attachement_types', $id);
 }
 /**
  * @brief Constructor
  *
  * @note  It's allowed to create an object with the ID 0 (for the root element).
  *
  * @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 string    $tablename      the name of the database table where the elements are located
  * @param integer   $id             ID of the element we want to get
  *
  * @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)
 {
     parent::__construct($database, $current_user, $log, $tablename, $id);
 }