C# Class Dnn.Modules.Vendors.Components.BannerController

Mostra file Open project: DNNCommunity/DNN.Vendors Class Usage Examples

Public Methods

Method Description
AddBanner ( BannerInfo objBannerInfo ) : void
ClearBannerCache ( ) : void
DeleteBanner ( int BannerId ) : void
FormatBanner ( int VendorId, int BannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height, string BannerSource, string HomeDirectory ) : string
FormatBanner ( int VendorId, int BannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height, string BannerSource, string HomeDirectory, string BannerClickthroughUrl ) : string
GetBanner ( int BannerId ) : BannerInfo
GetBannerGroups ( int PortalId ) : DataTable
GetBanners ( int VendorId ) : ArrayList
IsBannerActive ( BannerInfo objBanner ) : bool
LoadBanners ( int PortalId, int ModuleId, int BannerTypeId, string GroupName, int Banners ) : ArrayList
UpdateBanner ( BannerInfo objBannerInfo ) : void
UpdateBannerClickThrough ( int BannerId, int VendorId ) : void

Private Methods

Method Description
FormatFlash ( string File, int Width, int Height ) : string
FormatImage ( string File, int Width, int Height, string BannerName, string Description ) : string
GetBanner ( int BannerId, int VendorId, int PortalId ) : BannerInfo
LoadBannersCallback ( DotNetNuke.Common.Utilities.CacheItemArgs cacheItemArgs ) : object

Method Details

AddBanner() public method

public AddBanner ( BannerInfo objBannerInfo ) : void
objBannerInfo BannerInfo
return void

ClearBannerCache() public method

public ClearBannerCache ( ) : void
return void

DeleteBanner() public method

public DeleteBanner ( int BannerId ) : void
BannerId int
return void

FormatBanner() public method

public FormatBanner ( int VendorId, int BannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height, string BannerSource, string HomeDirectory ) : string
VendorId int
BannerId int
BannerTypeId int
BannerName string
ImageFile string
Description string
URL string
Width int
Height int
BannerSource string
HomeDirectory string
return string

FormatBanner() public method

public FormatBanner ( int VendorId, int BannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height, string BannerSource, string HomeDirectory, string BannerClickthroughUrl ) : string
VendorId int
BannerId int
BannerTypeId int
BannerName string
ImageFile string
Description string
URL string
Width int
Height int
BannerSource string
HomeDirectory string
BannerClickthroughUrl string
return string

GetBanner() public method

public GetBanner ( int BannerId ) : BannerInfo
BannerId int
return BannerInfo

GetBannerGroups() public method

public GetBannerGroups ( int PortalId ) : DataTable
PortalId int
return System.Data.DataTable

GetBanners() public method

public GetBanners ( int VendorId ) : ArrayList
VendorId int
return System.Collections.ArrayList

IsBannerActive() public method

public IsBannerActive ( BannerInfo objBanner ) : bool
objBanner BannerInfo
return bool

LoadBanners() public method

public LoadBanners ( int PortalId, int ModuleId, int BannerTypeId, string GroupName, int Banners ) : ArrayList
PortalId int
ModuleId int
BannerTypeId int
GroupName string
Banners int
return System.Collections.ArrayList

UpdateBanner() public method

public UpdateBanner ( BannerInfo objBannerInfo ) : void
objBannerInfo BannerInfo
return void

UpdateBannerClickThrough() public method

public UpdateBannerClickThrough ( int BannerId, int VendorId ) : void
BannerId int
VendorId int
return void