XOOPS
2.6.0
|
Public Member Functions | |
__construct (&$input) | |
addTagHandler (XmlTagHandler &$tagHandler) | |
free () | |
getCurrentLevel () | |
getCurrentTag () | |
getErrors ($ashtml=true) | |
getParentTag () | |
handleBeginElement ($parser, $tagName, $attributesArray) | |
handleBeginElementDefault ($parser, $tagName, $attributesArray) | |
handleCharacterData ($parser, $data) | |
handleCharacterDataDefault ($parser, $data) | |
handleDefault ($parser, $data) | |
handleEndElement ($parser, $tagName) | |
handleEndElementDefault ($parser, $tagName) | |
handleExternalEntityRef ($parser, $openEntityNames, $base, $systemId, $publicId) | |
handleNotationDecl ($parser, $notationName, $base, $systemId, $publicId) | |
handleProcessingInstruction ($parser, &$target, &$data) | |
handleUnparsedEntityDecl ($parser, $entityName, $base, $systemId, $publicId, $notationName) | |
parse () | |
setCaseFolding ($isCaseFolding) | |
setErrors ($error) | |
useAsciiEncoding () | |
useIsoEncoding () | |
useUtfEncoding () | |
Public Attributes | |
$errors = array() | |
$isCaseFolding | |
$level | |
$parser | |
$tagHandlers = array() | |
$tags = array() | |
$targetEncoding | |
$xmlInput | |
Private Member Functions | |
getXmlError () | |
Definition at line 16 of file saxparser.php.
SaxParser::__construct | ( | & | $input | ) |
Creates a SaxParser object using a FileInput to represent the stream of XML data to parse. Use the static methods createFileInput or createStringInput to construct xml input source objects to supply to the constructor, or the implementor can construct them individually.
$input |
Definition at line 43 of file saxparser.php.
References setCaseFolding(), and useUtfEncoding().
SaxParser::addTagHandler | ( | XmlTagHandler & | $tagHandler | ) |
Adds a callback function to be called when a tag is encountered.
XmlTagHandler | $tagHandler |
Definition at line 192 of file saxparser.php.
References $name, and XmlTagHandler\getName().
Referenced by XoopsXmlRss2Parser\__construct(), XoopsThemeSetParser\__construct(), and XoopsXmlRpcParser\__construct().
SaxParser::free | ( | ) |
Definition at line 163 of file saxparser.php.
SaxParser::getCurrentLevel | ( | ) |
Definition at line 64 of file saxparser.php.
References $level.
Referenced by XoopsXmlRpcParser\setWorkingLevel().
SaxParser::getCurrentTag | ( | ) |
Definition at line 115 of file saxparser.php.
Referenced by handleCharacterData(), and RpcValueHandler\handleEndElement().
SaxParser::getErrors | ( | $ashtml = true | ) |
Gets all the error messages
$ashtml | bool return as html? |
Definition at line 381 of file saxparser.php.
SaxParser::getParentTag | ( | ) |
Definition at line 120 of file saxparser.php.
Referenced by ThemeSetDateCreatedHandler\handleCharacterData(), ThemeSetDescriptionHandler\handleCharacterData(), ThemeSetGeneratorHandler\handleCharacterData(), ThemeSetNameHandler\handleCharacterData(), ThemeSetEmailHandler\handleCharacterData(), ThemeSetLinkHandler\handleCharacterData(), ThemeSetModuleHandler\handleCharacterData(), ThemeSetFileTypeHandler\handleCharacterData(), RpcNameHandler\handleCharacterData(), ThemeSetTagHandler\handleCharacterData(), and RpcValueHandler\handleCharacterData().
|
private |
Definition at line 178 of file saxparser.php.
Referenced by parse().
SaxParser::handleBeginElement | ( | $parser, | |
$tagName, | |||
$attributesArray | |||
) |
Definition at line 219 of file saxparser.php.
References handleBeginElementDefault().
SaxParser::handleBeginElementDefault | ( | $parser, | |
$tagName, | |||
$attributesArray | |||
) |
The default tag handler method for a tag with no handler
$parser | |
$tagName | |
$attributesArray |
Definition at line 337 of file saxparser.php.
Referenced by handleBeginElement().
SaxParser::handleCharacterData | ( | $parser, | |
$data | |||
) |
Definition at line 256 of file saxparser.php.
References getCurrentTag(), and handleCharacterDataDefault().
SaxParser::handleCharacterDataDefault | ( | $parser, | |
$data | |||
) |
The default tag handler method for a tag with no handler
$parser | |
$data |
Definition at line 361 of file saxparser.php.
Referenced by handleCharacterData().
SaxParser::handleDefault | ( | $parser, | |
$data | |||
) |
SaxParser::handleEndElement | ( | $parser, | |
$tagName | |||
) |
Definition at line 238 of file saxparser.php.
References handleEndElementDefault().
SaxParser::handleEndElementDefault | ( | $parser, | |
$tagName | |||
) |
The default tag handler method for a tag with no handler
$parser | |
$tagName |
Definition at line 348 of file saxparser.php.
Referenced by handleEndElement().
SaxParser::handleExternalEntityRef | ( | $parser, | |
$openEntityNames, | |||
$base, | |||
$systemId, | |||
$publicId | |||
) |
$parser | |
$openEntityNames | |
$base | |
$systemId | |
$publicId |
Definition at line 324 of file saxparser.php.
SaxParser::handleNotationDecl | ( | $parser, | |
$notationName, | |||
$base, | |||
$systemId, | |||
$publicId | |||
) |
$parser | |
$notationName | |
$base | |
$systemId | |
$publicId |
Definition at line 311 of file saxparser.php.
SaxParser::handleProcessingInstruction | ( | $parser, | |
& | $target, | ||
& | $data | ||
) |
$parser | int. The handle to the parser. |
$target | |
$data |
Definition at line 272 of file saxparser.php.
SaxParser::handleUnparsedEntityDecl | ( | $parser, | |
$entityName, | |||
$base, | |||
$systemId, | |||
$publicId, | |||
$notationName | |||
) |
$parser | |
$entityName | |
$base | |
$systemId | |
$publicId | |
$notationName |
Definition at line 298 of file saxparser.php.
SaxParser::parse | ( | ) |
Definition at line 136 of file saxparser.php.
References getXmlError(), and setErrors().
SaxParser::setCaseFolding | ( | $isCaseFolding | ) |
boolean | $isCaseFolding |
Definition at line 76 of file saxparser.php.
References $isCaseFolding.
Referenced by __construct().
SaxParser::setErrors | ( | $error | ) |
Sets error messages
string | $error | string an error message |
Definition at line 370 of file saxparser.php.
References $error.
Referenced by parse().
SaxParser::useAsciiEncoding | ( | ) |
Definition at line 96 of file saxparser.php.
SaxParser::useIsoEncoding | ( | ) |
Definition at line 87 of file saxparser.php.
SaxParser::useUtfEncoding | ( | ) |
Definition at line 105 of file saxparser.php.
Referenced by __construct(), and XoopsXmlRss2Parser\__construct().
SaxParser::$errors = array() |
Definition at line 33 of file saxparser.php.
Referenced by getErrors().
SaxParser::$isCaseFolding |
Definition at line 21 of file saxparser.php.
Referenced by setCaseFolding().
SaxParser::$level |
Definition at line 18 of file saxparser.php.
Referenced by getCurrentLevel().
SaxParser::$parser |
Definition at line 19 of file saxparser.php.
SaxParser::$tagHandlers = array() |
Definition at line 25 of file saxparser.php.
SaxParser::$tags = array() |
Definition at line 28 of file saxparser.php.
SaxParser::$targetEncoding |
Definition at line 22 of file saxparser.php.
SaxParser::$xmlInput |
Definition at line 31 of file saxparser.php.