C# 클래스 Piranha.Models.Manager.ContentModels.EditModel

Edit model for the content record.
파일 보기 프로젝트 열기: PiranhaCMS/Piranha 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetMetaData void
SortFolders List

공개 메소드들

메소드 설명
DeleteAll ( ) : bool

Deletes the specified content and its related file.

EditModel ( ) : System

Default constructor. Creates a new model.

EditModel ( bool isfolder, System.Guid parentid ) : System

Default constructor. Creates a new model.

GetById ( System.Guid id ) : EditModel

Gets the edit model for the content with the given id.

Refresh ( ) : void

Refreshes the current object.

SaveAll ( bool draft ) : bool

Saves the edit model.

Sync ( string url = "" ) : bool

Syncronizes the media object from the original url.

비공개 메소드들

메소드 설명
GetMetaData ( ) : void
SortFolders ( List media, int level = 1 ) : List

Flattens the folder structure.

메소드 상세

DeleteAll() 공개 메소드

Deletes the specified content and its related file.
public DeleteAll ( ) : bool
리턴 bool

EditModel() 공개 메소드

Default constructor. Creates a new model.
public EditModel ( ) : System
리턴 System

EditModel() 공개 메소드

Default constructor. Creates a new model.
public EditModel ( bool isfolder, System.Guid parentid ) : System
isfolder bool Whether this is a folder or not.
parentid System.Guid
리턴 System

GetById() 공개 정적인 메소드

Gets the edit model for the content with the given id.
public static GetById ( System.Guid id ) : EditModel
id System.Guid The content id
리턴 EditModel

Refresh() 공개 메소드

Refreshes the current object.
public Refresh ( ) : void
리턴 void

SaveAll() 공개 메소드

Saves the edit model.
public SaveAll ( bool draft ) : bool
draft bool
리턴 bool

Sync() 공개 메소드

Syncronizes the media object from the original url.
public Sync ( string url = "" ) : bool
url string
리턴 bool