C# 클래스 Phun.Data.FileContentRepository

상속: AContentRepository, IContentRepository
파일 보기 프로젝트 열기: noogen/phuncms 1 사용 예제들

공개 메소드들

메소드 설명
Exists ( ContentModel content ) : bool

Check for exist of content.

FileContentRepository ( IMapRouteConfiguration config ) : System

Initializes a new instance of the FileContentRepository class.

FileContentRepository ( string basePath ) : System

Initializes a new instance of the FileContentRepository class.

List ( ContentModel content ) : IQueryable

Lists the specified content.Path

Remove ( ContentModel content ) : void

Removes the specified content path or route.

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

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

Save ( ContentModel content ) : void

Saves the specified content.

비공개 메소드들

메소드 설명
Empty ( string path ) : void

Empties the specified path.

Initialize ( string path ) : void

Initializes the specified base path.

ResolvePath ( ContentModel content ) : string

Resolves the path.

메소드 상세

Exists() 공개 메소드

Check for exist of content.
public Exists ( ContentModel content ) : bool
content ContentModel The content - requires host, path, and name property.
리턴 bool

FileContentRepository() 공개 메소드

Initializes a new instance of the FileContentRepository class.
/// basePath is required.;basePath /// or /// Please check PhunCms content repository configuration. Path does not exists: + basePath;basePath ///
public FileContentRepository ( IMapRouteConfiguration config ) : System
config IMapRouteConfiguration The config.
리턴 System

FileContentRepository() 공개 메소드

Initializes a new instance of the FileContentRepository class.
basePath is required.;basePath
public FileContentRepository ( string basePath ) : System
basePath string The base path.
리턴 System

List() 공개 메소드

Lists the specified content.Path
public List ( ContentModel content ) : IQueryable
content ContentModel The content.
리턴 IQueryable

Remove() 공개 메소드

Removes the specified content path or route.
public Remove ( ContentModel content ) : void
content ContentModel The content - requires host, path, and name property. If name is set to "*" then removes all for host and path.
리턴 void

Retrieve() 공개 메소드

Populate or gets the content provided specific host, path, and name property.
public 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].
리턴 ContentModel

Save() 공개 메소드

Saves the specified content.
public Save ( ContentModel content ) : void
content ContentModel The content - requires host, path, and name property.
리턴 void