public function generateStructureOrganisation($sender, $param)
 {
     $command = $param->getCommand();
     if ($this->User->isInRole('Administrator')) {
         if ($command = "createOrganisationStructure") {
             PFDBTools::initOrganisationStruktur();
         }
     }
 }
 public function generateStructure($sender, $param)
 {
     $command = $param->getCommand();
     if ($command == 'Structure') {
         $Test = new PFStrukturGenerator(0, $this->DWH_idta_stammdatensicht->Text);
         unset($Test);
     }
     if ($command == 'Nested') {
         $Test = new PFStrukturGenerator(1, $this->DWH_idta_stammdatensicht->Text);
         unset($Test);
     }
     if ($command == 'CleanStructure') {
         $PFDBTools = new PFDBTools();
         $PFDBTools->cleanStrukturStruktur();
         unset($PFDBTools);
     }
     if ($command == 'InitLinks') {
         $PFDBTools = new PFDBTools();
         $PFDBTools->initStrukturLink();
         unset($PFDBTools);
     }
     if ($command == 'InitValues') {
         $PFDBTools = new PFDBTools();
         $idtm_struktur = $this->DWH_idtm_struktur->Text;
         $idta_variante = $this->DWH_idta_variante->Text;
         $idta_perioden = $this->DWH_idta_perioden->Text;
         $PFDBTools->InitDBValues($idtm_struktur, $idta_variante, $idta_perioden);
         unset($PFDBTools);
     }
 }
 public function RecalcYearSplasher($sender, $param)
 {
     $PFDBTools = new PFDBTools();
     $PFDBTools->calculateSplasherYear();
     unset($PFDBTools);
 }