Sunnysideup\PerfectCmsImages\Api\PerfectCMSImages
Synopsis
class PerfectCMSImages
implements
Flushable
{
- // members
- private static string $htaccess_content = ;
- private static string $perfect_cms_images_background_padding_color = '#cccccc';
- private static string $mobile_media_max_width = '600px';
- private static array $perfect_cms_images_image_definitions = ;
- private static array $perfect_cms_images_append_title_to_image_links_classes = ;
- private static integer $retina_multiplier = 2;
- // methods
- public static void flush()
- public static void get_description_for_cms()
- public static void use_retina()
- public static void get_multiplier()
- public static void is_crop()
- public static int?string get_width()
- public static int|string get_height()
- public static int?string get_mobile_width()
- public static int|string get_mobile_height()
- public static void get_folder()
- public static void max_size_in_kilobytes()
- public static void get_file_type()
- public static void get_enforce_size()
- public static null|string get_mobile_media_width()
- public static void get_padding_bg_colour()
- public static void image_info_available()
- protected static mixed get_one_value_for_image()
- protected static void get_all_values_for_images()
Hierarchy
Implements
- SilverStripe\Core\Flushable
Members
private
- $htaccess_content
—
string
.htaccess content for assets ... - $mobile_media_max_width
—
string
used to set the max width of the media value for mobile images, eg <source srcset="small.jpg, small2x.jpg 2x" media="(max-width: 600px)">. - $perfect_cms_images_append_title_to_image_links_classes
- $perfect_cms_images_background_padding_color
—
string
background image for padded images... - $perfect_cms_images_image_definitions
- $retina_multiplier
Methods
protected
public
- flush() — force resample, put htaccess content if it does not exists.
- get_description_for_cms()
- get_enforce_size()
- get_file_type()
- get_folder()
- get_height()
- get_mobile_height()
- get_mobile_media_width()
- get_mobile_width()
- get_multiplier()
- get_padding_bg_colour()
- get_width()
- image_info_available()
- is_crop()
- max_size_in_kilobytes()
- use_retina()