| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Extraction of SVG image metadata. 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.
| Author: | "Derk-Jan Hartman |
| Author: | Brion Vibber |
| Copyright: | Copyright © 2010-2010 Brion Vibber, Derk-Jan Hartman |
| License: | http://www.gnu.org/copyleft/gpl.html GNU General Public License |
| File Size: | 415 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SVGMetadataExtractor:: (1 method):
getMetadata()
SVGReader:: (12 methods):
__construct()
getMetadata()
read()
readField()
readXml()
animateFilterAndLang()
throwXmlError()
debug()
warn()
notice()
handleSVGAttribs()
scaleSVGUnit()
| __construct( $source ) X-Ref |
| Constructor Creates an SVGReader drawing from the source provided param: string $source URI from which to read |
| getMetadata() X-Ref |
return: array Array with the known metadata |
| read() X-Ref |
| Read the SVG return: bool |
| readField( $name, $metafield = null ) X-Ref |
| Read a textelement from an element param: string $name Name of the element that we are reading from param: string $metafield Field that we will fill with the result |
| readXml( $metafield = null ) X-Ref |
| Read an XML snippet from an element param: string $metafield Field that we will fill with the result |
| animateFilterAndLang( $name ) X-Ref |
| Filter all children, looking for animated elements. Also get a list of languages that can be targeted. param: string $name Name of the element that we are reading from |
| throwXmlError( $err ) X-Ref |
| No description |
| debug( $data ) X-Ref |
| No description |
| warn( $data ) X-Ref |
| No description |
| notice( $data ) X-Ref |
| No description |
| handleSVGAttribs() X-Ref |
| Parse the attributes of an SVG element The parser has to be in the start element of "<svg>" |
| scaleSVGUnit( $length, $viewportSize = 512 ) X-Ref |
| Return a rounded pixel equivalent for a labeled CSS/SVG length. http://www.w3.org/TR/SVG11/coords.html#UnitIdentifiers param: string $length CSS/SVG length. param: float|int $viewportSize Optional scale for percentage units... return: float Length in pixels |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |