C# Класс Piranha.Models.Manager.ContentModels.EditModel

Edit model for the content record.
Показать файл Открыть проект Примеры использования класса

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