<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

class PagePersoenlicheDaten extends PageBaseWT
{
  protected $userId;

  public $qualifikationen;

  public function __construct($pTool)
  {
    parent::__construct('persönliche Daten', 89, $pTool);
    $this->userId = SessionOperations::getCurrentWebToolsUser()->getIdentifier();
  }

  
  public function getContentHeader()
  {
    
    
    return '';
  }

  
  public function getContent()
  {
    $user = SessionOperations::getCurrentWebToolsUser();
    $content = '';

    if ($user->tnr != -1) {
      $daten = new PersoenlicheDatenTN($user->tnr, $this->userId);
    } elseif ($user->dnr != -1) {
      $daten = new PersoenlicheDatenDoz($user->dnr, $this->userId);
    } elseif ($user->anr != -1) {
      $daten = new PersoenlicheDatenAdr($user->anr, $this->userId);
    } elseif ($user->ben != -1) {
      $daten = new PersoenlicheDatenBen($user->ben, $this->userId);
    } else { 
      return '';
    }
    $content .= $daten->loadData();

    return $content;
  }

  
  
  
  
}