C# Class Piranha.Drawing.Thumbnails

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

Public Methods

Method 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

Method 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 method

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
return bool

ContainsKey() public static method

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
return bool

GetById() public static method

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

GetByType() public static method

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

GetIdByType() public static method

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