phpDocumentor util
[ class tree: util ] [ index: util ] [ all elements ]

Class: Request

Source Location: /myphp-1.9/myphp-1.9-util/html/component/Request.php

Class Request

Class Overview

The Request object.

Return the Request information from a GET/POST request or use the $default value, if supplied

  1. Usage:
  2. $html = new Request();
  3. print $html->getHtml();
  4. print $html->get($key,$default);
  5. Or
  6. print Request::display();
  7. Or
  8. print Request::get($key,$default);

Located in /myphp-1.9/myphp-1.9-util/html/component/Request.php [line 29]



		
		
		
		

Methods

[ Top ]
Method Summary
Request   Request()   Constructor
void   addHtml()   Normally implemented in Object, add to SourceCode object
void   display()   Display html
String   get()   Get the request parameter specified by the $key.
String   getHtml()   Returns the request info as html
String   method()   Return the request parameters for the GET/POST request
String   params()   Return the request parameters used for a link

[ Top ]
Methods
Constructor Request  [line 34]

  Request Request( )

Constructor



[ Top ]
addHtml  [line 84]

  void addHtml( String $html  )

Normally implemented in Object, add to SourceCode object

NOTE: This method expect that a SourceCode object is instanciated

Parameters:
String   $html:  The html to add


[ Top ]
display  [line 74]

  void display( )

Display html

Add the html to the SourceCode object

  1. Usage:
  2. Request::display();


API Tags:
Static:  


[ Top ]
get  [line 172]

  String get( String $key, [String $default = '']  )

Get the request parameter specified by the $key.

If no key is found, use $default value, if specified

  1. Usage:
  2. Request::get($key,$default);

Parameters:
String   $key:  The Request param key to use from the get/post request
String   $default:  The default value to use, if no key/value found

API Tags:
Return:  The value of the requested key
Static:  


[ Top ]
getHtml  [line 41]

  String getHtml( )

Returns the request info as html


API Tags:
Return:  The html


[ Top ]
method  [line 106]

  String method( String $method  )

Return the request parameters for the GET/POST request

  1. Usage:
  2. Request::method($method);

Parameters:
String   $method:  Request parameters from GET/POST

API Tags:
Return:  The key/value pair of the requested key
Static:  


[ Top ]
params  [line 143]

  String params( [String $param = '']  )

Return the request parameters used for a link

  1. Usage:
  2. Request::params($param);

Parameters:
String   $param:  Existing parameter string. I.e. 'AB=1 & XY=2'

API Tags:
Return:  The key/value pair of the requested key
Static:  


[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:16:35 +0100 by phpDocumentor 1.3.0RC3