App\Gallery

Inherited from cmsApplication_HierarchicalTree_List

Protected Attributes

protected $data_directories= [ 'watermark' => '/media/gallery/watermark'
protected $default_sizes= [ 'thumbnail' => ['width' => 256

Protected Methods

protected deleteImageFilesByRelativePath($url_media_file)
protected arrayinitializeImageGalleryDirectories()
protected boolcreateImageThumbnail(string $src, string $dest, int $thumb_width=120, int $thumb_height=120, bool $dont_resize_if_smaller=false, int $quality=100, string $watermark_img_path='', int $watermark_opacity=100, string $watermark_pos='', int $watermark_margin_x, int $watermark_margin_y)

Public Methods

public __construct()
public viewMainPage(int $pg=1)
public stringcreateFriendlyURL(string $str)
public arrayinterpretFriendlyURL(string $urlpath)
public delete(string $mixed_items_to_delete)
public onAfterSaveCategory($datavalues, $original_datavalues, $previous_category, $retval)
public getGalleryImage(string $image_size, string $path, int $category_id, bool $with_hash=false)
public modifyDataValuesBeforeSaveItem(array $datavalues)
public getImageSizeNames()
public getDefaultSizes()
public getImageDataDirectoryNames()
public ensureDataDirectoryExists()
public viewIndividualCategoryByID($id)
public getCacheableImages()
public intgetDefaultCategoryID()
public arraygetMainpageMetaOptionKeys()
public arraygetCategoryMetaOptionKeys()
public arraygetItemMetaOptionKeys()
public boolcreateMultipleImageSizesForOriginalImage(string $url_media_file, int $category_id)
public booleancreateThumbnailWithWatermark(string $src, string $dest, int $thumb_width=120, int $thumb_height=120, bool $dont_resize_if_smaller=false, int $quality=100, string $watermark_img_path='', $waternark_opacity=100, $watermark_pos='', $watermark_margin_x, $watermark_margin_y)
public boolRun(array $command)