seek_quarry
[ class tree: seek_quarry ] [ index: seek_quarry ] [ all elements ]

Class: ImageProcessor

Source Location: /lib/processors/image_processor.php

Class Overview

PageProcessor
   |
   --ImageProcessor

Base abstract class common to all processors used to create crawl summary information from images


Author(s):

  • Chris Pollett

Methods


Child classes:

BmpProcessor
Used to create crawl summary information for BMP and ICO files
GifProcessor
Used to create crawl summary information for GIF files
JpgProcessor
Used to create crawl summary information for JPEG files
PngProcessor
Used to create crawl summary information for PNG files

Inherited Variables

Inherited Methods

Class: PageProcessor

PageProcessor::__construct()
Set-ups the any indexing plugins associated with this page processor
PageProcessor::handle()
Method used to handle processing data for a web page. It makes
PageProcessor::process()
Should be implemented to compute a summary based on a

Class Details

[line 50]
Base abstract class common to all processors used to create crawl summary information from images



Tags:

author:  Chris Pollett


[ Top ]


Class Methods


static method createThumb [line 74]

static void createThumb( object $image)

Used to create a thumbnail from an image object



Parameters:

object   $image   image object with image

[ Top ]

method process [line 66]

array process( string $page, string $url)

Extract summary data from the image provided in $page together the url in $url where it was downloaded from

ImageProcessor class defers a proper implementation of this method to subclasses




Tags:

return:  summary information including a thumbnail and a description (where the description is just the url)


Overridden in child classes as:

BmpProcessor::process()
GifProcessor::process()
JpgProcessor::process()
PngProcessor::process()

Overrides PageProcessor::process() (Should be implemented to compute a summary based on a)

Parameters:

string   $page   the image represented as a character string
string   $url   the url where the image was downloaded from

[ Top ]


Documentation generated by phpDocumentor 1.4.3