Moodle  2.2.1
http://www.collinsharper.com
SimplePie_HTTP_Parser Class Reference

Public Member Functions

 __construct ($data)
 parse ()
 has_data ()
 is_linear_whitespace ()
 http_version ()
 status ()
 reason ()
 new_line ()
 name ()
 linear_whitespace ()
 value ()
 value_char ()
 quote ()
 quote_char ()
 quote_escaped ()
 body ()

Data Fields

 $http_version = 0.0
 $status_code = 0
 $reason = ''
 $headers = array()
 $body = ''
 $state = 'http_version'
 $data = ''
 $data_length = 0
 $position = 0
 $name = ''
 $value = ''

Detailed Description

Definition at line 7517 of file simplepie.class.php.


Constructor & Destructor Documentation

__construct ( data)

Create an instance of the class with the input data

public

Parameters:
string$dataInput data

Definition at line 7613 of file simplepie.class.php.


Member Function Documentation

body ( )

Parse the body

private

Definition at line 7935 of file simplepie.class.php.

Here is the caller graph for this function:

has_data ( )

Check whether there is data beyond the pointer

private

Returns:
bool true if there is further data, false if not

Definition at line 7654 of file simplepie.class.php.

Here is the caller graph for this function:

Parse the HTTP version

private

Definition at line 7679 of file simplepie.class.php.

Here is the caller graph for this function:

See if the next character is LWS

private

Returns:
bool true if the next character is LWS, false if not

Definition at line 7665 of file simplepie.class.php.

Here is the caller graph for this function:

Parse LWS, replacing consecutive LWS characters with a single space

private

Definition at line 7806 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

name ( )

Parse a header name

private

Definition at line 7778 of file simplepie.class.php.

Here is the caller graph for this function:

new_line ( )

Deal with a new line, shifting data around as needed

private

Definition at line 7740 of file simplepie.class.php.

Here is the call graph for this function:

parse ( )

Parse the input data

public

Returns:
bool true on success, false on failure

Definition at line 7625 of file simplepie.class.php.

Here is the call graph for this function:

quote ( )

See what state to move to while within quoted header values

private

Definition at line 7873 of file simplepie.class.php.

Here is the call graph for this function:

Parse a header value while within quotes

private

Definition at line 7910 of file simplepie.class.php.

Here is the call graph for this function:

Parse an escaped character within quotes

private

Definition at line 7923 of file simplepie.class.php.

Here is the call graph for this function:

reason ( )

Parse the reason phrase

private

Definition at line 7727 of file simplepie.class.php.

Here is the caller graph for this function:

status ( )

Parse the status code

private

Definition at line 7708 of file simplepie.class.php.

value ( )

See what state to move to while within non-quoted header values

private

Definition at line 7828 of file simplepie.class.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Parse a header value while outside quotes

private

Definition at line 7860 of file simplepie.class.php.

Here is the call graph for this function:


Field Documentation

$body = ''

Definition at line 7557 of file simplepie.class.php.

$data = ''

Definition at line 7573 of file simplepie.class.php.

$data_length = 0

Definition at line 7581 of file simplepie.class.php.

$headers = array()

Definition at line 7549 of file simplepie.class.php.

$http_version = 0.0

Definition at line 7525 of file simplepie.class.php.

$name = ''

Definition at line 7597 of file simplepie.class.php.

$position = 0

Definition at line 7589 of file simplepie.class.php.

$reason = ''

Definition at line 7541 of file simplepie.class.php.

$state = 'http_version'

Definition at line 7565 of file simplepie.class.php.

$status_code = 0

Definition at line 7533 of file simplepie.class.php.

$value = ''

Definition at line 7605 of file simplepie.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations