C# Class Phun.Data.AContentRepository

Provide common use methods for content repository
显示文件 Open project: noogen/phuncms

Public Methods

Method Description
GetFolder ( ContentModel folder ) : string

Gets the folder.

List ( ContentModel content ) : System.Linq.IQueryable

Lists the specified content.Path

Retrieve ( ContentModel content, bool includeData = true ) : ContentModel

Populate or gets the content provided specific host, path, and name property.

Protected Methods

Method Description
GetFolderTo ( string destPhysicalFolder, ContentModel sourceFolder ) : void

Gets the folder to.

NormalizedPath ( string path ) : string

Normalized the path.

ResolveLocalPath ( string path ) : string

Resolves the local path.

Method Details

GetFolder() public method

Gets the folder.
public GetFolder ( ContentModel folder ) : string
folder ContentModel The folder.
return string

GetFolderTo() protected method

Gets the folder to.
protected GetFolderTo ( string destPhysicalFolder, ContentModel sourceFolder ) : void
destPhysicalFolder string The destination physical folder.
sourceFolder ContentModel The source folder.
return void

List() public abstract method

Lists the specified content.Path
public abstract List ( ContentModel content ) : System.Linq.IQueryable
content ContentModel The content.
return System.Linq.IQueryable

NormalizedPath() protected method

Normalized the path.
Illegal path detected: + path;path
protected NormalizedPath ( string path ) : string
path string The path.
return string

ResolveLocalPath() protected method

Resolves the local path.
protected ResolveLocalPath ( string path ) : string
path string The path.
return string

Retrieve() public abstract method

Populate or gets the content provided specific host, path, and name property.
public abstract Retrieve ( ContentModel content, bool includeData = true ) : ContentModel
content ContentModel The content - requires host, path, and name property.
includeData bool if set to true [include data].
return ContentModel