\Image_Cached_Responsive
This is a fake 'cached' image which we use to return the correct HTML
Synopsis
class Image_Cached_Responsive
extends Image_Cached
{
- // members
- private $tinyWidth;
- private $tinyHeight;
- private $smallWidth;
- private $smallHeight;
- private $maxWidth;
- private $maxHeight;
- private $medWidth;
- private $medHeight;
- private $mediaQuery;
- protected $extraClassNames;
- private boolean $method = false;
- private static string $default_method = 'SetWidth';
- private static integer $tiny_max_size = 64;
- private static float $small_scaling_factor = 0.25;
- private static float $medium_scaling_factor = 0.5;
- // methods
- public void __construct()
- public void setMediaQuery()
- public void getMediaQuery()
- public void setOriginal()
- protected static void image_to_data_url()
- public void calcResponsiveDimensions()
- public void getMethod()
- public void setMethod()
- public void getSmallSourceWidth()
- public void getMediumSourceWidth()
- public void getLargeSourceWidth()
- public void getSmallSourceHeight()
- public void getMediumSourceHeight()
- public void getLargeSourceHeight()
- public void getTinySourceAttributes()
- public void getTinyBlurredSource()
- public void getTinyBlurredSourceDataURI()
- public void getTinyBlurredImage()
- public void getSmallSource()
- public void getMediumSource()
- public void getLargeSource()
- public void getTag()
- public void getBackgroundAttr()
- public void getWidth()
- public void getHeight()
- public void addExtraClasses()
- public void getExtraClasses()
- public void getOpenTag()
Hierarchy
Extends
- Image_Cached
Members
private
- $default_method
- $maxHeight
- $maxWidth
- $medHeight
- $medWidth
- $mediaQuery
- $medium_scaling_factor
—
integer
How much smaller the 'medium' size image is than the original image size - $method
- $smallHeight
- $smallWidth
- $small_scaling_factor
—
integer
How much smaller the 'small' size image is than the original image size - $tinyHeight
- $tinyWidth
- $tiny_max_size
—
integer
Maximum size in pixels of tiny image longest side
protected
- $extraClassNames
Methods
protected
public
- __construct()
- addExtraClasses()
- calcResponsiveDimensions() — This is the method that actually calculates the sizes of all the versions of this image
- getBackgroundAttr()
- getExtraClasses()
- getHeight()
- getLargeSource()
- getLargeSourceHeight()
- getLargeSourceWidth()
- getMediaQuery()
- getMediumSource()
- getMediumSourceHeight()
- getMediumSourceWidth()
- getMethod()
- getOpenTag()
- getSmallSource()
- getSmallSourceHeight()
- getSmallSourceWidth()
- getTag()
- getTinyBlurredImage()
- getTinyBlurredSource()
- getTinyBlurredSourceDataURI()
- getTinySourceAttributes()
- getWidth()
- setMediaQuery()
- setMethod() — Set the method that will be used to generate formatted images
- setOriginal() — Set the original Image source