C# Class Roadkill.Core.Mvc.ViewModels.PageViewModel

Afficher le fichier Open project: LocalGovDigital/pipeline Class Usage Examples

Private Properties

Свойство Type Description
GetAppSettings Roadkill.Core.Configuration.ApplicationSettings
ParseRawTags void

Méthodes publiques

Méthode Description
Activity ( ) : List
CommaDelimitedTags ( ) : string

Joins the parsed tags with a comma.

EncodePageTitle ( string title ) : string

Removes all bad characters (ones which cannot be used in a URL for a page) from a page title.

GetRelationships ( ) : List
JavascriptArrayForAllTags ( ) : string

Formats the AllTags to insert inside an array initializer like [];

PageViewModel ( ) : System
PageViewModel ( Roadkill.Core.Database.Page page ) : System
PageViewModel ( PageContent pageContent, Roadkill.Core.Converters.MarkupConverter converter ) : System
ParseTags ( string tags ) : IEnumerable

Takes a string of tags: "tagone,tagtwo,tag3 " and returns a list.

RelToUserToPage ( int pageID ) : Relationship

Returns if this user has already added a relationship to this page

SpaceDelimitedTags ( ) : string

Joins the tags with a space.

VerifyRawTags ( PageViewModel pageViewModel, System.ComponentModel.DataAnnotations.ValidationContext context ) : System.ComponentModel.DataAnnotations.ValidationResult

Returns false if the tag contains ; / ? : @ & = { } | \ ^ [ ] `

Private Methods

Méthode Description
GetAppSettings ( ) : Roadkill.Core.Configuration.ApplicationSettings
ParseRawTags ( ) : void

Method Details

Activity() public méthode

public Activity ( ) : List
Résultat List

CommaDelimitedTags() public méthode

Joins the parsed tags with a comma.
public CommaDelimitedTags ( ) : string
Résultat string

EncodePageTitle() public static méthode

Removes all bad characters (ones which cannot be used in a URL for a page) from a page title.
public static EncodePageTitle ( string title ) : string
title string
Résultat string

GetRelationships() public méthode

public GetRelationships ( ) : List
Résultat List

JavascriptArrayForAllTags() public méthode

Formats the AllTags to insert inside an array initializer like [];
public JavascriptArrayForAllTags ( ) : string
Résultat string

PageViewModel() public méthode

public PageViewModel ( ) : System
Résultat System

PageViewModel() public méthode

public PageViewModel ( Roadkill.Core.Database.Page page ) : System
page Roadkill.Core.Database.Page
Résultat System

PageViewModel() public méthode

public PageViewModel ( PageContent pageContent, Roadkill.Core.Converters.MarkupConverter converter ) : System
pageContent Roadkill.Core.Database.PageContent
converter Roadkill.Core.Converters.MarkupConverter
Résultat System

ParseTags() public static méthode

Takes a string of tags: "tagone,tagtwo,tag3 " and returns a list.
public static ParseTags ( string tags ) : IEnumerable
tags string
Résultat IEnumerable

RelToUserToPage() public méthode

Returns if this user has already added a relationship to this page
public RelToUserToPage ( int pageID ) : Relationship
pageID int
Résultat Roadkill.Core.Database.Relationship

SpaceDelimitedTags() public méthode

Joins the tags with a space.
public SpaceDelimitedTags ( ) : string
Résultat string

VerifyRawTags() public static méthode

Returns false if the tag contains ; / ? : @ & = { } | \ ^ [ ] `
public static VerifyRawTags ( PageViewModel pageViewModel, System.ComponentModel.DataAnnotations.ValidationContext context ) : System.ComponentModel.DataAnnotations.ValidationResult
pageViewModel PageViewModel
context System.ComponentModel.DataAnnotations.ValidationContext
Résultat System.ComponentModel.DataAnnotations.ValidationResult