| [ Index ] |
PHP Cross Reference of Limb3 |
[Source view] [Print] [Project Stats]
base include file for SimpleTest
| Version: | $Id: encoding.php 5999 2007-06-18 13:13:08Z pachanga $ |
| File Size: | 521 lines (16 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SimpleEncodedPair:: (6 methods):
SimpleEncodedPair()
asRequest()
asMime()
isKey()
getKey()
getValue()
SimpleAttachment:: (8 methods):
SimpleAttachment()
asRequest()
asMime()
_deduceMimeType()
_isOnlyAscii()
isKey()
getKey()
getValue()
SimpleEncoding:: (9 methods):
SimpleEncoding()
clear()
add()
_addPair()
attach()
merge()
getValue()
getAll()
_encode()
SimpleGetEncoding:: (5 methods):
SimpleGetEncoding()
getMethod()
writeHeadersTo()
writeTo()
asUrlRequest()
SimpleHeadEncoding:: (2 methods):
SimpleHeadEncoding()
getMethod()
SimplePostEncoding:: (5 methods):
SimplePostEncoding()
getMethod()
writeHeadersTo()
writeTo()
asUrlRequest()
SimpleMultipartEncoding:: (4 methods):
SimpleMultipartEncoding()
writeHeadersTo()
writeTo()
_encode()
Class: SimpleEncodedPair - X-Ref
Single post parameter.| SimpleEncodedPair($key, $value) X-Ref |
| Stashes the data for rendering later. param: string $key Form element name. param: string $value Data to send. |
| asRequest() X-Ref |
| The pair as a single string. return: string Encoded pair. |
| asMime() X-Ref |
| The MIME part as a string. return: string MIME part encoding. |
| isKey($key) X-Ref |
| Is this the value we are looking for? param: string $key Identifier. return: boolean True if matched. |
| getKey() X-Ref |
| Is this the value we are looking for? return: string Identifier. |
| getValue() X-Ref |
| Is this the value we are looking for? return: string Content. |
Class: SimpleAttachment - X-Ref
Single post parameter.| SimpleAttachment($key, $content, $filename) X-Ref |
| Stashes the data for rendering later. param: string $key Key to add value to. param: string $content Raw data. param: hash $filename Original filename. |
| asRequest() X-Ref |
| The pair as a single string. return: string Encoded pair. |
| asMime() X-Ref |
| The MIME part as a string. return: string MIME part encoding. |
| _deduceMimeType() X-Ref |
| Attempts to figure out the MIME type from the file extension and the content. return: string MIME type. |
| _isOnlyAscii($ascii) X-Ref |
| Tests each character is in the range 0-127. param: string $ascii String to test. |
| isKey($key) X-Ref |
| Is this the value we are looking for? param: string $key Identifier. return: boolean True if matched. |
| getKey() X-Ref |
| Is this the value we are looking for? return: string Identifier. |
| getValue() X-Ref |
| Is this the value we are looking for? return: string Content. |
Class: SimpleEncoding - X-Ref
Bundle of GET/POST parameters. Can include| SimpleEncoding($query = false) X-Ref |
| Starts empty. param: array $query Hash of parameters. |
| clear() X-Ref |
| Empties the request of parameters. |
| add($key, $value) X-Ref |
| Adds a parameter to the query. param: string $key Key to add value to. param: string/array $value New data. |
| _addPair($key, $value) X-Ref |
| Adds a new value into the request. param: string $key Key to add value to. param: string/array $value New data. |
| attach($key, $content, $filename) X-Ref |
| Adds a MIME part to the query. Does nothing for a form encoded packet. param: string $key Key to add value to. param: string $content Raw data. param: hash $filename Original filename. |
| merge($query) X-Ref |
| Adds a set of parameters to this query. param: array/SimpleQueryString $query Multiple values are |
| getValue($key) X-Ref |
| Accessor for single value. return: string/array False if missing, string |
| getAll() X-Ref |
| Accessor for listing of pairs. return: array All pair objects. |
| _encode() X-Ref |
| Renders the query string as a URL encoded request part. return: string Part of URL. |
Class: SimpleGetEncoding - X-Ref
Bundle of GET parameters. Can include| SimpleGetEncoding($query = false) X-Ref |
| Starts empty. param: array $query Hash of parameters. |
| getMethod() X-Ref |
| HTTP request method. return: string Always GET. |
| writeHeadersTo(&$socket) X-Ref |
| Writes no extra headers. param: SimpleSocket $socket Socket to write to. |
| writeTo(&$socket) X-Ref |
| No data is sent to the socket as the data is encoded into the URL. param: SimpleSocket $socket Socket to write to. |
| asUrlRequest() X-Ref |
| Renders the query string as a URL encoded request part for attaching to a URL. return: string Part of URL. |
Class: SimpleHeadEncoding - X-Ref
Bundle of URL parameters for a HEAD request.| SimpleHeadEncoding($query = false) X-Ref |
| Starts empty. param: array $query Hash of parameters. |
| getMethod() X-Ref |
| HTTP request method. return: string Always HEAD. |
Class: SimplePostEncoding - X-Ref
Bundle of POST parameters. Can include| SimplePostEncoding($query = false) X-Ref |
| Starts empty. param: array $query Hash of parameters. |
| getMethod() X-Ref |
| HTTP request method. return: string Always POST. |
| writeHeadersTo(&$socket) X-Ref |
| Dispatches the form headers down the socket. param: SimpleSocket $socket Socket to write to. |
| writeTo(&$socket) X-Ref |
| Dispatches the form data down the socket. param: SimpleSocket $socket Socket to write to. |
| asUrlRequest() X-Ref |
| Renders the query string as a URL encoded request part for attaching to a URL. return: string Part of URL. |
Class: SimpleMultipartEncoding - X-Ref
Bundle of POST parameters in the multipart| SimpleMultipartEncoding($query = false, $boundary = false) X-Ref |
| Starts empty. param: array $query Hash of parameters. |
| writeHeadersTo(&$socket) X-Ref |
| Dispatches the form headers down the socket. param: SimpleSocket $socket Socket to write to. |
| writeTo(&$socket) X-Ref |
| Dispatches the form data down the socket. param: SimpleSocket $socket Socket to write to. |
| _encode() X-Ref |
| Renders the query string as a URL encoded request part. return: string Part of URL. |
| Generated: Sat Nov 22 03:48:54 2008 | Cross-referenced by PHPXref 0.7 |