Class SimplePie_HTTP_Parser. Парсер joomla 3
SimplePie_XML_Declaration_Parser *Документация по Joomla 3.0.2
SimplePie\SimplePie_XML_Declaration_Parser
libraries/simplepie/simplepie.php at line 13321 SimplePie_XML_Declaration_Parserpublic class SimplePie_XML_Declaration_Parser
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 |
void | __construct(string data) Create an instance of the class with the input data |
Field Detail
libraries/simplepie/simplepie.php at line 13361data
private string $data = '' libraries/simplepie/simplepie.php at line 13369data_length
private int $data_length = 0Input data length (to avoid calling strlen() everytime this is needed)
libraries/simplepie/simplepie.php at line 13337encoding
public string $encoding = 'UTF-8' libraries/simplepie/simplepie.php at line 13377position
private int $position = 0Current position of the pointer
libraries/simplepie/simplepie.php at line 13345standalone
public bool $standalone = false libraries/simplepie/simplepie.php at line 13353state
private string $state = 'before_version_name'Current state of the state machine
libraries/simplepie/simplepie.php at line 13329version
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 dataMethod Detail
parse
public bool parse()Parse the input data
Returns: true on success, false on failure libraries/simplepie/simplepie.php at line 13424has_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 13434skip_whitespace
public int skip_whitespace()Advance past any whitespace
Returns: Number of whitespace characters passed libraries/simplepie/simplepie.php at line 13444get_value
public void get_value() libraries/simplepie/simplepie.php at line 13461before_version_name
public void before_version_name() libraries/simplepie/simplepie.php at line 13473version_name
public void version_name() libraries/simplepie/simplepie.php at line 13487version_equals
public void version_equals() libraries/simplepie/simplepie.php at line 13501version_value
public void version_value() libraries/simplepie/simplepie.php at line 13521encoding_name
public void encoding_name() libraries/simplepie/simplepie.php at line 13535encoding_equals
encoding_value
public void encoding_value() libraries/simplepie/simplepie.php at line 13569standalone_name
public void standalone_name() libraries/simplepie/simplepie.php at line 13583standalone_equals
public void standalone_equals() libraries/simplepie/simplepie.php at line 13597standalone_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_Parserpublic class SimplePie_HTTP_Parser
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 |
void | __construct(string data) Create an instance of the class with the input data |
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 7907body
public string $body = '' libraries/simplepie/simplepie.php at line 7923data
private string $data = '' libraries/simplepie/simplepie.php at line 7931data_length
private int $data_length = 0Input 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 7875http_version
public float $http_version = 0.0 libraries/simplepie/simplepie.php at line 7947name
private string $name = ''Name of the hedaer currently being parsed
libraries/simplepie/simplepie.php at line 7939position
private int $position = 0Current position of the pointer
libraries/simplepie/simplepie.php at line 7891reason
public string $reason = '' libraries/simplepie/simplepie.php at line 7915state
private string $state = 'http_version'Current state of the state machine
libraries/simplepie/simplepie.php at line 7883status_code
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 dataMethod Detail
libraries/simplepie/simplepie.php at line 7975parse
public bool parse()Parse the input data
Returns: true on success, false on failure libraries/simplepie/simplepie.php at line 8004has_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 8015is_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 8029http_version
private void http_version() libraries/simplepie/simplepie.php at line 8058status
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 8128name
private void name() libraries/simplepie/simplepie.php at line 8156linear_whitespace
private void linear_whitespace()Parse LWS, replacing consecutive LWS characters with a single space
libraries/simplepie/simplepie.php at line 8178value
private void value()See what state to move to while within non-quoted header values
libraries/simplepie/simplepie.php at line 8210value_char
private void value_char()Parse a header value while outside quotes
libraries/simplepie/simplepie.php at line 8223quote
private void quote()See what state to move to while within quoted header values
libraries/simplepie/simplepie.php at line 8260quote_char
private void quote_char()Parse a header value while within quotes
libraries/simplepie/simplepie.php at line 8273quote_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 JFeedFactorypublic class JFeedFactory
Subpackage: Feed Since: 3.0protected JHttp The HTTP client object for requesting feeds as necessary. | $http |
protected array The list of registered parser classes for feeds. | $parsers |
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 25http
protected JHttp The HTTP client object for requesting feeds as necessary. $http = null libraries/cms/feed/factory.php at line 31parsers
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.0Method Detail
libraries/cms/feed/factory.php at line 56getFeed
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 105registerParser
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└─JUpdatepublic class JUpdateextends JObject
Subpackage: Updater Since: 11.1_errors |
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 97category
protected string $category libraries/joomla/updater/update.php at line 61client
protected string $client libraries/joomla/updater/update.php at line 133currentUpdate
protected stdClass $currentUpdate libraries/joomla/updater/update.php at line 31description
protected string $description libraries/joomla/updater/update.php at line 73downloads
protected string $downloads libraries/joomla/updater/update.php at line 37element
protected string $element libraries/joomla/updater/update.php at line 67group
protected string $group libraries/joomla/updater/update.php at line 55infourl
protected string $infourl libraries/joomla/updater/update.php at line 139latest
protected stdClass $latest libraries/joomla/updater/update.php at line 85maintainer
protected string $maintainer libraries/joomla/updater/update.php at line 91maintainerurl
protected string $maintainerurl libraries/joomla/updater/update.php at line 25name
protected string $name = '' libraries/joomla/updater/update.php at line 103relationships
protected string $relationships libraries/joomla/updater/update.php at line 121stack
protected array $stack = array('base') libraries/joomla/updater/update.php at line 127stateStore
protected array $stateStore = array() libraries/joomla/updater/update.php at line 79tags
protected string $tags libraries/joomla/updater/update.php at line 109targetplatform
protected string $targetplatform libraries/joomla/updater/update.php at line 43type
protected string $type libraries/joomla/updater/update.php at line 49version
protected string $version libraries/joomla/updater/update.php at line 115xmlParser
protected string $xmlParserMethod 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 300loadFromXML
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