VideosHelper
extends Helper
in package
implements
CrawlConstants
Helper used to draw thumbnails strips for images
Tags
Interfaces, Classes, Traits and Enums
- CrawlConstants
- Shared constants and enums used by components that are involved in the crawling process
Table of Contents
- __construct() : mixed
- The constructor at this point does nothing
- render() : mixed
- Takes page summaries for image pages and the current query and draw a thumbnail strip so that clicking on an image goes to the cache of that image.
Methods
__construct()
The constructor at this point does nothing
public
__construct() : mixed
Return values
mixed —render()
Takes page summaries for image pages and the current query and draw a thumbnail strip so that clicking on an image goes to the cache of that image.
public
render(mixed $video_pages, string $query, string $subsearch[, bool $video_subsearch = true ][, bool $open_in_tabs = false ][, string $default_thumb = "" ]) : mixed
Parameters
- $video_pages : mixed
- $query : string
-
the current search query
- $subsearch : string
-
name of subsearch page this image group on
- $video_subsearch : bool = true
-
whether the video subsearch is enabled on this Yioop instance
- $open_in_tabs : bool = false
-
whether new links should be opened in tabs
- $default_thumb : string = ""
-
default data url to use if a video does not have a thumb