[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/libs/ -> XmlTypeCheck.php (summary)

(no description)

File Size: 264 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

XmlTypeCheck:: (12 methods):
  __construct()
  newFromFilename()
  newFromString()
  getRootElement()
  getParser()
  validateFromFile()
  validateFromString()
  rootElementOpen()
  elementOpen()
  elementClose()
  elementData()
  processingInstructionHandler()


Class: XmlTypeCheck  - X-Ref

XML syntax and type checker.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
http://www.gnu.org/copyleft/gpl.html

__construct( $input, $filterCallback = null, $isFile = true, $options = array()   X-Ref

param: string $input a filename or string containing the XML element
param: callable $filterCallback (optional)
param: boolean $isFile (optional) indicates if the first parameter is a
param: array $options list of additional parsing options:

newFromFilename( $fname, $filterCallback = null )   X-Ref
Alternative constructor: from filename

param: string $fname the filename of an XML document
param: callable $filterCallback (optional)
return: XmlTypeCheck

newFromString( $string, $filterCallback = null )   X-Ref
Alternative constructor: from string

param: string $string a string containing an XML element
param: callable $filterCallback (optional)
return: XmlTypeCheck

getRootElement()   X-Ref
Get the root element. Simple accessor to $rootElement

return: string

getParser()   X-Ref
Get an XML parser with the root element handler.

return: resource a resource handle for the XML parser

validateFromFile( $fname )   X-Ref

param: string $fname the filename

validateFromString( $string )   X-Ref

param: string $string the XML-input-string to be checked.

rootElementOpen( $parser, $name, $attribs )   X-Ref

param: $parser
param: $name
param: $attribs

elementOpen( $parser, $name, $attribs )   X-Ref

param: $parser
param: $name
param: $attribs

elementClose( $parser, $name )   X-Ref

param: $parser
param: $name

elementData( $parser, $data )   X-Ref

param: $parser
param: $data

processingInstructionHandler( $parser, $target, $data )   X-Ref

param: $parser
param: $target
param: $data



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1