Class SimplePie_HTTP_Parser. Парсер joomla 3


SimplePie_XML_Declaration_Parser *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

SimplePie\SimplePie_XML_Declaration_Parser

libraries/simplepie/simplepie.php at line 13321 SimplePie_XML_Declaration_Parser

public class SimplePie_XML_Declaration_Parser

Field Summary
private string

$data

Input data

private int

$data_length

Input data length (to avoid calling strlen() everytime this is needed)

string

$encoding

Encoding

private int

$position

Current position of the pointer

bool

$standalone

Standalone

private string

$state

Current state of the state machine

string

$version

XML Version

Constructor Summary
void

__construct(string data)

Create an instance of the class with the input data

Field Detail

libraries/simplepie/simplepie.php at line 13361

data

private string $data = '' libraries/simplepie/simplepie.php at line 13369

data_length

private int $data_length = 0

Input data length (to avoid calling strlen() everytime this is needed)

libraries/simplepie/simplepie.php at line 13337

encoding

public string $encoding = 'UTF-8' libraries/simplepie/simplepie.php at line 13377

position

private int $position = 0

Current position of the pointer

libraries/simplepie/simplepie.php at line 13345

standalone

public bool $standalone = false libraries/simplepie/simplepie.php at line 13353

state

private string $state = 'before_version_name'

Current state of the state machine

libraries/simplepie/simplepie.php at line 13329

version

public string $version = '1.0'

Constructor Detail

libraries/simplepie/simplepie.php at line 13385

__construct

public void __construct(string data)

Create an instance of the class with the input data

Parameters: data - Input data

Method Detail

libraries/simplepie/simplepie.php at line 13397

parse

public bool parse()

Parse the input data

Returns: true on success, false on failure libraries/simplepie/simplepie.php at line 13424

has_data

private bool has_data()

Check whether there is data beyond the pointer

Returns: true if there is further data, false if not libraries/simplepie/simplepie.php at line 13434

skip_whitespace

public int skip_whitespace()

Advance past any whitespace

Returns: Number of whitespace characters passed libraries/simplepie/simplepie.php at line 13444

get_value

public void get_value() libraries/simplepie/simplepie.php at line 13461

before_version_name

public void before_version_name() libraries/simplepie/simplepie.php at line 13473

version_name

public void version_name() libraries/simplepie/simplepie.php at line 13487

version_equals

public void version_equals() libraries/simplepie/simplepie.php at line 13501

version_value

public void version_value() libraries/simplepie/simplepie.php at line 13521

encoding_name

public void encoding_name() libraries/simplepie/simplepie.php at line 13535

encoding_equals

public void encoding_equals() libraries/simplepie/simplepie.php at line 13549

encoding_value

public void encoding_value() libraries/simplepie/simplepie.php at line 13569

standalone_name

public void standalone_name() libraries/simplepie/simplepie.php at line 13583

standalone_equals

public void standalone_equals() libraries/simplepie/simplepie.php at line 13597

standalone_value

public void standalone_value() Вернуться к записям по теме Joomla.

ya.samposebe.ru

SimplePie_HTTP_Parser *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

SimplePie\SimplePie_HTTP_Parser

libraries/simplepie/simplepie.php at line 7867 SimplePie_HTTP_Parser

public class SimplePie_HTTP_Parser

Field Summary
string

$body

Body of the response

private string

$data

Input data

private int

$data_length

Input data length (to avoid calling strlen() everytime this is needed)

array

$headers

Key/value pairs of the headers

float

$http_version

HTTP Version

private string

$name

Name of the hedaer currently being parsed

private int

$position

Current position of the pointer

string

$reason

Reason phrase

private string

$state

Current state of the state machine

int

$status_code

Status code

private string

$value

Value of the hedaer currently being parsed

Constructor Summary
void

__construct(string data)

Create an instance of the class with the input data

Method Summary
bool

parse()

Parse the input data

private bool

has_data()

Check whether there is data beyond the pointer

private bool

is_linear_whitespace()

See if the next character is LWS

private void

http_version()

Parse the HTTP version

private void

status()

Parse the status code

private void

reason()

Parse the reason phrase

private void

new_line()

Deal with a new line, shifting data around as needed

private void

name()

Parse a header name

private void

linear_whitespace()

Parse LWS, replacing consecutive LWS characters with a single space

private void

value()

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

private void

value_char()

Parse a header value while outside quotes

private void

quote()

See what state to move to while within quoted header values

private void

quote_char()

Parse a header value while within quotes

private void

quote_escaped()

Parse an escaped character within quotes

private void

body()

Parse the body

Field Detail

libraries/simplepie/simplepie.php at line 7907

body

public string $body = '' libraries/simplepie/simplepie.php at line 7923

data

private string $data = '' libraries/simplepie/simplepie.php at line 7931

data_length

private int $data_length = 0

Input data length (to avoid calling strlen() everytime this is needed)

libraries/simplepie/simplepie.php at line 7899 public array $headers = array()

Key/value pairs of the headers

libraries/simplepie/simplepie.php at line 7875

http_version

public float $http_version = 0.0 libraries/simplepie/simplepie.php at line 7947

name

private string $name = ''

Name of the hedaer currently being parsed

libraries/simplepie/simplepie.php at line 7939

position

private int $position = 0

Current position of the pointer

libraries/simplepie/simplepie.php at line 7891

reason

public string $reason = '' libraries/simplepie/simplepie.php at line 7915

state

private string $state = 'http_version'

Current state of the state machine

libraries/simplepie/simplepie.php at line 7883

status_code

public int $status_code = 0 libraries/simplepie/simplepie.php at line 7955

value

private string $value = ''

Value of the hedaer currently being parsed

Constructor Detail

libraries/simplepie/simplepie.php at line 7963

__construct

public void __construct(string data)

Create an instance of the class with the input data

Parameters: data - Input data

Method Detail

libraries/simplepie/simplepie.php at line 7975

parse

public bool parse()

Parse the input data

Returns: true on success, false on failure libraries/simplepie/simplepie.php at line 8004

has_data

private bool has_data()

Check whether there is data beyond the pointer

Returns: true if there is further data, false if not libraries/simplepie/simplepie.php at line 8015

is_linear_whitespace

private bool is_linear_whitespace()

See if the next character is LWS

Returns: true if the next character is LWS, false if not libraries/simplepie/simplepie.php at line 8029

http_version

private void http_version() libraries/simplepie/simplepie.php at line 8058

status

private void status() libraries/simplepie/simplepie.php at line 8077

reason

private void reason() libraries/simplepie/simplepie.php at line 8090

new_line

private void new_line()

Deal with a new line, shifting data around as needed

libraries/simplepie/simplepie.php at line 8128

name

private void name() libraries/simplepie/simplepie.php at line 8156

linear_whitespace

private void linear_whitespace()

Parse LWS, replacing consecutive LWS characters with a single space

libraries/simplepie/simplepie.php at line 8178

value

private void value()

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

libraries/simplepie/simplepie.php at line 8210

value_char

private void value_char()

Parse a header value while outside quotes

libraries/simplepie/simplepie.php at line 8223

quote

private void quote()

See what state to move to while within quoted header values

libraries/simplepie/simplepie.php at line 8260

quote_char

private void quote_char()

Parse a header value while within quotes

libraries/simplepie/simplepie.php at line 8273

quote_escaped

private void quote_escaped()

Parse an escaped character within quotes

libraries/simplepie/simplepie.php at line 8285

body

private void body() Вернуться к записям по теме Joomla.

ya.samposebe.ru

JFeedFactory *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

Joomla.Libraries\JFeedFactory

libraries/cms/feed/factory.php at line 19 JFeedFactory

public class JFeedFactory

Subpackage: Feed Since: 3.0 Field Summary
protected JHttp The HTTP client object for requesting feeds as necessary.

$http

protected array The list of registered parser classes for feeds.

$parsers

Method Summary
JFeedReader

getFeed(string uri)

Method to load a URI into the feed reader for parsing.

JFeedFactory

registerParser(string tagName, string className, boolean overwrite)

Method to register a JFeedParser class for a given root tag name.

private JFeedParser

_fetchFeedParser(string type, XMLReader reader)

Method to return a new JFeedParser object based on the registered parsers and a given type.

Field Detail

libraries/cms/feed/factory.php at line 25

http

protected JHttp The HTTP client object for requesting feeds as necessary. $http = null libraries/cms/feed/factory.php at line 31

parsers

protected array The list of registered parser classes for feeds. $parsers = array(...)

Constructor Detail

libraries/cms/feed/factory.php at line 40

__construct

public void __construct(JHttp http)

Constructor.

Parameters: http - The HTTP client object. Since: 3.0

Method Detail

libraries/cms/feed/factory.php at line 56

getFeed

public JFeedReader getFeed(string uri)

Method to load a URI into the feed reader for parsing.

Parameters: uri - The URI of the feed to load. Since: 3.0 Throws: InvalidArgumentException RuntimeException libraries/cms/feed/factory.php at line 105

registerParser

public JFeedFactory registerParser(string tagName, string className, boolean overwrite)

Method to register a JFeedParser class for a given root tag name.

Parameters: tagName - The root tag name for which to register the parser class. className - The JFeedParser class name to register for a root tag name. overwrite - True to overwrite the parser class if one is already registered. Since: 3.0 Throws: InvalidArgumentException libraries/cms/feed/factory.php at line 139

_fetchFeedParser

private JFeedParser _fetchFeedParser(string type, XMLReader reader)

Method to return a new JFeedParser object based on the registered parsers and a given type.

Parameters: type - The name of parser to return. reader - The XMLReader instance for the feed. Since: 3.0 Throws: LogicException Вернуться к записям по теме Joomla.

ya.samposebe.ru

JUpdate *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

Joomla.Platform\JUpdate

libraries/joomla/updater/update.php at line 19 JObject└─JUpdate

public class JUpdateextends JObject

Subpackage: Updater Since: 11.1 Fields inherited from Joomla.Platform\JObject
_errors
Method Summary
protected object

_getStackLocation()

Gets the reference to the current direct parent

protected string

_getLastTag()

Get the last position in stack count

void

_startElement(object parser, string name, array attrs)

XML Start Element callback

void

_endElement(object parser, string name)

Callback for closing the element

void

_characterData(object parser, object data)

Character Parser Function

boolean

loadFromXML(string url)

Loads an XML file from a URL.

Field Detail

libraries/joomla/updater/update.php at line 97

category

protected string $category libraries/joomla/updater/update.php at line 61

client

protected string $client libraries/joomla/updater/update.php at line 133

currentUpdate

protected stdClass $currentUpdate libraries/joomla/updater/update.php at line 31

description

protected string $description libraries/joomla/updater/update.php at line 73

downloads

protected string $downloads libraries/joomla/updater/update.php at line 37

element

protected string $element libraries/joomla/updater/update.php at line 67

group

protected string $group libraries/joomla/updater/update.php at line 55

infourl

protected string $infourl libraries/joomla/updater/update.php at line 139

latest

protected stdClass $latest libraries/joomla/updater/update.php at line 85

maintainer

protected string $maintainer libraries/joomla/updater/update.php at line 91

maintainerurl

protected string $maintainerurl libraries/joomla/updater/update.php at line 25

name

protected string $name = '' libraries/joomla/updater/update.php at line 103

relationships

protected string $relationships libraries/joomla/updater/update.php at line 121

stack

protected array $stack = array('base') libraries/joomla/updater/update.php at line 127

stateStore

protected array $stateStore = array() libraries/joomla/updater/update.php at line 79

tags

protected string $tags libraries/joomla/updater/update.php at line 109

targetplatform

protected string $targetplatform libraries/joomla/updater/update.php at line 43

type

protected string $type libraries/joomla/updater/update.php at line 49

version

protected string $version libraries/joomla/updater/update.php at line 115

xmlParser

protected string $xmlParser

Method Detail

libraries/joomla/updater/update.php at line 148

_getStackLocation

protected object _getStackLocation()

Gets the reference to the current direct parent

Since: 11.1 libraries/joomla/updater/update.php at line 160

_getLastTag

protected string _getLastTag()

Get the last position in stack count

Since: 11.1 libraries/joomla/updater/update.php at line 177

_startElement

public void _startElement(object parser, string name, array attrs)

XML Start Element callback

Parameters: parser - Parser object name - Name of the tag found attrs - Attributes of the tag Note: This is public because it is called externally Since: 11.1 libraries/joomla/updater/update.php at line 220

_endElement

public void _endElement(object parser, string name)

Callback for closing the element

Parameters: parser - Parser object name - Name of element that was closed Note: This is public because it is called externally Since: 11.1 libraries/joomla/updater/update.php at line 279

_characterData

public void _characterData(object parser, object data)

Character Parser Function

Parameters: parser - Parser object. data - The data. Note: This is public because its called externally. Since: 11.1 libraries/joomla/updater/update.php at line 300

loadFromXML

public boolean loadFromXML(string url)

Loads an XML file from a URL.

Parameters: url - The URL. Returns: True on success Since: 11.1 Вернуться к записям по теме Joomla.

ya.samposebe.ru


Prostoy-Site | Все права защищены © 2018 | Карта сайта