[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
base include file for SimpleTest
Version: | $Id: encoding.php 1397 2006-09-07 07:55:53Z wei $ |
Poids: | 521 lignes (16 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
SimpleEncodedPair:: (6 méthodes):
SimpleEncodedPair()
asRequest()
asMime()
isKey()
getKey()
getValue()
SimpleAttachment:: (8 méthodes):
SimpleAttachment()
asRequest()
asMime()
_deduceMimeType()
_isOnlyAscii()
isKey()
getKey()
getValue()
SimpleEncoding:: (9 méthodes):
SimpleEncoding()
clear()
add()
_addPair()
attach()
merge()
getValue()
getAll()
_encode()
SimpleGetEncoding:: (5 méthodes):
SimpleGetEncoding()
getMethod()
writeHeadersTo()
writeTo()
asUrlRequest()
SimpleHeadEncoding:: (2 méthodes):
SimpleHeadEncoding()
getMethod()
SimplePostEncoding:: (5 méthodes):
SimplePostEncoding()
getMethod()
writeHeadersTo()
writeTo()
asUrlRequest()
SimpleMultipartEncoding:: (4 méthodes):
SimpleMultipartEncoding()
writeHeadersTo()
writeTo()
_encode()
Classe: 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. |
Classe: 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. |
Classe: SimpleEncoding - X-Ref
Bundle of GET/POST parameters. Can includeSimpleEncoding($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. |
Classe: SimpleGetEncoding - X-Ref
Bundle of GET parameters. Can includeSimpleGetEncoding($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. |
Classe: 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. |
Classe: SimplePostEncoding - X-Ref
Bundle of POST parameters. Can includeSimplePostEncoding($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. |
Classe: SimpleMultipartEncoding - X-Ref
Bundle of POST parameters in the multipartSimpleMultipartEncoding($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. |
Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |