[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/media/ -> DjVu.php (summary)

Handler for DjVu images. 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.

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

Defines 1 class

DjVuHandler:: (20 methods):
  isEnabled()
  mustRender()
  isMultiPage()
  getParamMap()
  validateParam()
  makeParamString()
  parseParamString()
  getScriptParams()
  doTransform()
  getDjVuImage()
  getUnserializedMetadata()
  getMetaTree()
  getImageSize()
  getThumbType()
  getMetadata()
  getMetadataType()
  isMetadataValid()
  pageCount()
  getPageDimensions()
  getPageText()


Class: DjVuHandler  - X-Ref

Handler for DjVu images

isEnabled()   X-Ref

return: bool

mustRender( $file )   X-Ref

param: File $file
return: bool

isMultiPage( $file )   X-Ref

param: File $file
return: bool

getParamMap()   X-Ref

return: array

validateParam( $name, $value )   X-Ref

param: string $name
param: mixed $value
return: bool

makeParamString( $params )   X-Ref

param: array $params
return: bool|string

parseParamString( $str )   X-Ref

param: string $str
return: array|bool

getScriptParams( $params )   X-Ref

param: array $params
return: array

doTransform( $image, $dstPath, $dstUrl, $params, $flags = 0 )   X-Ref

param: File $image
param: string $dstPath
param: string $dstUrl
param: array $params
param: int $flags
return: MediaTransformError|ThumbnailImage|TransformParameterError

getDjVuImage( $image, $path )   X-Ref
Cache an instance of DjVuImage in an Image object, return that instance

param: File $image
param: string $path
return: DjVuImage

getUnserializedMetadata( File $file )   X-Ref
Get metadata, unserializing it if neccessary.

param: File $file The DjVu file in question
return: string XML metadata as a string.

getMetaTree( $image, $gettext = false )   X-Ref
Cache a document tree for the DjVu XML metadata

param: File $image
param: bool $gettext DOCUMENT (Default: false)
return: bool|SimpleXMLElement

getImageSize( $image, $path )   X-Ref

param: File $image
param: string $path
return: bool|array False on failure

getThumbType( $ext, $mime, $params = null )   X-Ref
No description

getMetadata( $image, $path )   X-Ref
No description

getMetadataType( $image )   X-Ref
No description

isMetadataValid( $image, $metadata )   X-Ref
No description

pageCount( $image )   X-Ref
No description

getPageDimensions( $image, $page )   X-Ref
No description

getPageText( $image, $page )   X-Ref

param: File $image
param: int $page Page number to get information for
return: bool|string Page text or false when no text found.



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