\ModernoConfigExtension
An extension of the data extension class to add Moderno Admin settings to site config.
Synopsis
class ModernoConfigExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $defaults = ;
- private static string $asset_path = "Uploads/Moderno";
- // methods
- public static string get_asset_path()
- public static array get_resize_methods()
- public void updateCMSFields()
- public void onBeforeWrite()
- public boolean ModernoLogoImageExists()
- public boolean ModernoLoadingImageExists()
- public Image ModernoLogoImageResized()
- public Image ModernoLogoImageRetina()
- public string ModernoLogoRetinaBackgroundSize()
- public Image ModernoLoadingImageResized()
- private array getTargetDimensions()
- private Image performImageResize()
Hierarchy
Extends
- DataExtension
Members
private
- $asset_path — string
- $db
- $defaults
- $has_one
Methods
private
- getTargetDimensions() — Answers the target dimensions for the specified image.
- performImageResize() — Answers a resized version of the loading image.
public
- ModernoLoadingImageExists() — Answers true if a custom loading image exists.
- ModernoLoadingImageResized() — Answers a resized version of the loading image.
- ModernoLogoImageExists() — Answers true if a custom logo image exists.
- ModernoLogoImageResized() — Answers a resized version of the logo image.
- ModernoLogoImageRetina() — Answers a retina version of the logo image.
- ModernoLogoRetinaBackgroundSize() — Answers the background-size for the retina version of the logo image.
- get_asset_path() — Answers the path to use for uploading images.
- get_resize_methods() — Answers an array of image resize methods.
- onBeforeWrite() — Event method called before the receiver is written to the database.
- updateCMSFields() — Updates the CMS fields of the extended object.