C# 클래스 Phun.ContentConnector

상속: IContentConnector
파일 보기 프로젝트 열기: noogen/phuncms

공개 메소드들

메소드 설명
ContentConnector ( ) : System

Initializes a new instance of the ContentConnector class.

Create ( string path, string data, Uri uri ) : ContentModel

Create the file.

CreateOrUpdate ( string path, Uri uri, byte data ) : ContentModel

Creates the or update.

CreateOrUpdate ( string path, string data, Uri uri ) : ContentModel

Update the file.

Delete ( string path, Uri uri ) : ContentModel

Deletes the specified model.

GetTenantHost ( Uri url ) : string

Gets the current host.

List ( string path, Uri uri ) : IQueryable

Lists the specified path.

Normalize ( string path ) : string

Applies the path convention.

OnContentEvent ( ContentConnectorEventArgument e ) : void

Called when [content event].

OnContentEvent ( string eventName, ContentModel model ) : void

Called when [content event].

RenderPage ( System.Web.HttpContextBase httpContext ) : ContentModel

View content.

ResolvePath ( string path, string tenantHost, System.Web.HttpContextBase context ) : string

Resolves the path. Also allow for caching path resolution.

Retrieve ( string path, Uri uri ) : ContentModel

Retrieves the specified path.

비공개 메소드들

메소드 설명
CheckPage ( string path, string tenantHost, string extension ) : string

Checks the page.

메소드 상세

ContentConnector() 공개 메소드

Initializes a new instance of the ContentConnector class.
public ContentConnector ( ) : System
리턴 System

Create() 공개 메소드

Create the file.
500;Cannot create or overwrite an existing content of path: + path
public Create ( string path, string data, Uri uri ) : ContentModel
path string The path.
data string The data.
uri System.Uri The URI.
리턴 Phun.Data.ContentModel

CreateOrUpdate() 공개 메소드

Creates the or update.
Cannot update root path.;path
public CreateOrUpdate ( string path, Uri uri, byte data ) : ContentModel
path string The path.
uri System.Uri The URI.
data byte The data.
리턴 Phun.Data.ContentModel

CreateOrUpdate() 공개 메소드

Update the file.
public CreateOrUpdate ( string path, string data, Uri uri ) : ContentModel
path string The path.
data string The data.
uri System.Uri The URI.
리턴 Phun.Data.ContentModel

Delete() 공개 메소드

Deletes the specified model.
500;Unable to delete protected path '/'.
public Delete ( string path, Uri uri ) : ContentModel
path string The path.
uri System.Uri The URI.
리턴 Phun.Data.ContentModel

GetTenantHost() 공개 메소드

Gets the current host.
public GetTenantHost ( Uri url ) : string
url System.Uri The URL.
리턴 string

List() 공개 메소드

Lists the specified path.
public List ( string path, Uri uri ) : IQueryable
path string The path.
uri System.Uri The URI.
리턴 IQueryable

Normalize() 공개 메소드

Applies the path convention.
public Normalize ( string path ) : string
path string The path.
리턴 string

OnContentEvent() 공개 메소드

Called when [content event].
public OnContentEvent ( ContentConnectorEventArgument e ) : void
e ContentConnectorEventArgument The instance containing the event data.
리턴 void

OnContentEvent() 공개 메소드

Called when [content event].
public OnContentEvent ( string eventName, ContentModel model ) : void
eventName string Name of the event.
model Phun.Data.ContentModel The model.
리턴 void

RenderPage() 공개 메소드

View content.
public RenderPage ( System.Web.HttpContextBase httpContext ) : ContentModel
httpContext System.Web.HttpContextBase The HTTP context.
리턴 Phun.Data.ContentModel

ResolvePath() 공개 메소드

Resolves the path. Also allow for caching path resolution.
404;Failed on all attempt to search vash file for: + path
public ResolvePath ( string path, string tenantHost, System.Web.HttpContextBase context ) : string
path string The path.
tenantHost string The tenant host.
context System.Web.HttpContextBase The context.
리턴 string

Retrieve() 공개 메소드

Retrieves the specified path.
404;PhunCms path not found.
public Retrieve ( string path, Uri uri ) : ContentModel
path string The path.
uri System.Uri The URI.
리턴 Phun.Data.ContentModel