C# Class ToSic.SexyContent.Adam.EntityBase

显示文件 Open project: 2sic/2sxc Class Usage Examples

Public Methods

Method Description
EntityBase ( SxcInstance sexy, App app, DotNetNuke.Entities.Portals.PortalSettings ps, System.Guid eGuid, string fName ) : System
GeneratePath ( string subFolder ) : string
GenerateWebPath ( AdamFile currentFile ) : string
GenerateWebPath ( AdamFolder currentFolder ) : string
GetFirstMetadata ( int id, bool isFolder ) : DynamicEntity
GetFirstMetadataEntity ( int id, bool isFolder ) : IEntity
GetMetadataId ( int id, bool isFolder ) : int

Private Methods

Method Description
Folder ( ) : IFolderInfo
Folder ( string subFolder, bool autoCreate ) : IFolderInfo

Get the folder specified in App.Settings (BasePath) combined with the module's ID Will create the folder if it does not exist

TypeName ( string ext ) : string

Method Details

EntityBase() public method

public EntityBase ( SxcInstance sexy, App app, DotNetNuke.Entities.Portals.PortalSettings ps, System.Guid eGuid, string fName ) : System
sexy SxcInstance
app App
ps DotNetNuke.Entities.Portals.PortalSettings
eGuid System.Guid
fName string
return System

GeneratePath() public method

public GeneratePath ( string subFolder ) : string
subFolder string
return string

GenerateWebPath() public method

public GenerateWebPath ( AdamFile currentFile ) : string
currentFile AdamFile
return string

GenerateWebPath() public method

public GenerateWebPath ( AdamFolder currentFolder ) : string
currentFolder AdamFolder
return string

GetFirstMetadata() public method

public GetFirstMetadata ( int id, bool isFolder ) : DynamicEntity
id int
isFolder bool
return DynamicEntity

GetFirstMetadataEntity() public method

public GetFirstMetadataEntity ( int id, bool isFolder ) : IEntity
id int
isFolder bool
return IEntity

GetMetadataId() public method

public GetMetadataId ( int id, bool isFolder ) : int
id int
isFolder bool
return int