Class Ansel_Widget_SimilarPhotos

Description

Horde_Widget_SimilarPhotos:: class to display a widget containing mini thumbnails of images that are similar, based on tags.

Located in /lib/Widget/SimilarPhotos.php (line 9)

Ansel_Widget
   |
   --Ansel_Widget_SimilarPhotos
Variable Summary
 unknown_type $_supported_views
Method Summary
Variables
unknown_type $_supported_views = array('Image') (line 16)
  • TODO:

Inherited Variables

Inherited from Ansel_Widget

Ansel_Widget::$_params
Ansel_Widget::$_render
Ansel_Widget::$_style
Ansel_Widget::$_title
Ansel_Widget::$_view
Methods
Constructor Ansel_Widget_SimilarPhotos (line 24)

Constructor

Ansel_Widget_SimilarPhotos Ansel_Widget_SimilarPhotos (array $params)
  • array $params: Any parameters for this widget
html (line 35)

Return the HTML representing this widget.

  • return: The HTML for this widget.
string html ()

Redefinition of:
Ansel_Widget::html()
Get the HTML for this widget
_getRelatedImages (line 52)

Helper function for generating a widget of images related to this one.

  • return: The HTML
  • TODO: Rethink the way we determine if an image is related. This one is not ideal, as it just pops tags off the tag list until all the tags match. This could miss many related images.
string _getRelatedImages ()

Inherited Methods

Inherited From Ansel_Widget

 Ansel_Widget::Ansel_Widget()
 Ansel_Widget::attach()
 Ansel_Widget::factory()
 Ansel_Widget::html()
 Ansel_Widget::isSupported()
 Ansel_Widget::_htmlBegin()
 Ansel_Widget::_htmlEnd()

Documentation generated on Sun, 30 Jan 2011 05:08:49 +0000 by phpDocumentor 1.4.3