Changeset 36 for trunk/Common/UHtmlClasses.pas
- Timestamp:
- Oct 29, 2010, 10:44:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/UHtmlClasses.pas
r25 r36 140 140 Scripts: TStringList; 141 141 property AsXmlDocument: TXmlDocument read GetAsXmlDocument; 142 constructor Create; 143 destructor Destroy; override; 144 end; 145 146 { TQueryString } 147 148 TQueryString = class 149 Data: TStringList; 150 procedure SetStringServer; 151 procedure SetString(QueryString: string); 152 function GetString: string; 142 153 constructor Create; 143 154 destructor Destroy; override; … … 560 571 end; 561 572 573 procedure TQueryString.SetStringServer; 574 begin 575 //$this->SetString($_SERVER['QUERY_STRING']); 576 end; 577 578 procedure TQueryString.SetString(QueryString: string); 579 begin 580 (* 581 $this->Data = array(); 582 $Parts = explode('&', $QueryString); 583 foreach($Parts as $Part) 584 { 585 if($Part != '') 586 { 587 $Item = explode('=', $Part); 588 $this->Data[$Item[0]] = $Item[1]; 589 end; 590 end;*) 591 end; 592 593 function TQueryString.GetString: string; 594 begin 595 (*$Parts = array(); 596 foreach($this->Data as $Index => $Item) 597 { 598 $Parts[] = $Index.'='.$Item; 599 } 600 return(implode('&', $Parts));*) 601 end; 602 603 constructor TQueryString.Create; 604 begin 605 Data := TStringList.Create; 606 end; 607 608 destructor TQueryString.Destroy; 609 begin 610 Data.Free; 611 inherited Destroy; 612 end; 613 562 614 end.
Note:
See TracChangeset
for help on using the changeset viewer.