Пример #1
0
 public function bindListOrgListe($StartNode = '0')
 {
     $HRKEYTest = new PFHDSource();
     $HRKEYTest->setStructureTable("tm_ziele");
     $HRKEYTest->setRecordClass(ZieleRecord::finder());
     $HRKEYTest->setPKField("idtm_ziele");
     $HRKEYTest->setField("zie_name");
     $HRKEYTest->setStartNode($StartNode);
     $HRKEYTest->letsrun();
     $this->OrgListe->DataSource = $HRKEYTest->myTree;
     $this->OrgListe->dataBind();
 }
Пример #2
0
 public function bindListOrgListe($StartNode = '0')
 {
     if ($StartNode == 1) {
         $StartNode = 0;
     }
     $HRKEYTest = new PFHDSource();
     $HRKEYTest->setStructureTable("tm_struktur");
     $HRKEYTest->setRecordClass(StrukturRecord::finder());
     $HRKEYTest->setPKField("idtm_struktur");
     $HRKEYTest->setField("struktur_name");
     $HRKEYTest->setStartNode($StartNode);
     $HRKEYTest->setSQLOrder("struktur_name ASC");
     $HRKEYTest->letsrun();
     $this->OrgListe->DataSource = $HRKEYTest->myTree;
     $this->OrgListe->dataBind();
 }