C# Class Piranha.Drawing.Thumbnails

The thumbnails class handles all thumbnails to different types of content embedded in the core.
Afficher le fichier Open project: PiranhaCMS/Piranha

Méthodes publiques

Méthode Description
ContainsKey ( System.Guid id ) : bool

Gets whether the current thumbnail collection contains a thumbnail for the given thumbnail id.

ContainsKey ( string type ) : bool

Gets whether the current thumbnail collection contains a thumbnail for the given mime-type.

GetById ( System.Guid id ) : string

Gets the resource path for the thumbnail with the given id.

GetByType ( string type ) : string

Gets the resource path fo the thumbnail with the given mime-type.

GetIdByType ( string type ) : System.Guid

Gets the internal thumbnail id for the given mime-type.

Private Methods

Méthode Description
Add ( System.Guid id, string type, string thumbnail ) : void

Adds a thumbnail resource with the given id and mime-type.

Ensure ( ) : void

Ensures that the thumbnail collection is created.

Method Details

ContainsKey() public static méthode

Gets whether the current thumbnail collection contains a thumbnail for the given thumbnail id.
public static ContainsKey ( System.Guid id ) : bool
id System.Guid The id
Résultat bool

ContainsKey() public static méthode

Gets whether the current thumbnail collection contains a thumbnail for the given mime-type.
public static ContainsKey ( string type ) : bool
type string The mime-type
Résultat bool

GetById() public static méthode

Gets the resource path for the thumbnail with the given id.
public static GetById ( System.Guid id ) : string
id System.Guid The id
Résultat string

GetByType() public static méthode

Gets the resource path fo the thumbnail with the given mime-type.
public static GetByType ( string type ) : string
type string The mime-type
Résultat string

GetIdByType() public static méthode

Gets the internal thumbnail id for the given mime-type.
public static GetIdByType ( string type ) : System.Guid
type string The mime-type
Résultat System.Guid