C# Class Piranha.Models.Manager.ContentModels.EditModel

Edit model for the content record.
Afficher le fichier Open project: PiranhaCMS/Piranha Class Usage Examples

Private Properties

Свойство Type Description
GetMetaData void
SortFolders List

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
GetMetaData ( ) : void
SortFolders ( List media, int level = 1 ) : List

Flattens the folder structure.

Method Details

DeleteAll() public méthode

Deletes the specified content and its related file.
public DeleteAll ( ) : bool
Résultat bool

EditModel() public méthode

Default constructor. Creates a new model.
public EditModel ( ) : System
Résultat System

EditModel() public méthode

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
Résultat System

GetById() public static méthode

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

Refresh() public méthode

Refreshes the current object.
public Refresh ( ) : void
Résultat void

SaveAll() public méthode

Saves the edit model.
public SaveAll ( bool draft ) : bool
draft bool
Résultat bool

Sync() public méthode

Syncronizes the media object from the original url.
public Sync ( string url = "" ) : bool
url string
Résultat bool