C# 클래스 Roadkill.Core.Mvc.ViewModels.PageViewModel

파일 보기 프로젝트 열기: LocalGovDigital/pipeline 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetAppSettings Roadkill.Core.Configuration.ApplicationSettings
ParseRawTags void

공개 메소드들

메소드 설명
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 ; / ? : @ & = { } | \ ^ [ ] `

비공개 메소드들

메소드 설명
GetAppSettings ( ) : Roadkill.Core.Configuration.ApplicationSettings
ParseRawTags ( ) : void

메소드 상세

Activity() 공개 메소드

public Activity ( ) : List
리턴 List

CommaDelimitedTags() 공개 메소드

Joins the parsed tags with a comma.
public CommaDelimitedTags ( ) : string
리턴 string

EncodePageTitle() 공개 정적인 메소드

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
리턴 string

GetRelationships() 공개 메소드

public GetRelationships ( ) : List
리턴 List

JavascriptArrayForAllTags() 공개 메소드

Formats the AllTags to insert inside an array initializer like [];
public JavascriptArrayForAllTags ( ) : string
리턴 string

PageViewModel() 공개 메소드

public PageViewModel ( ) : System
리턴 System

PageViewModel() 공개 메소드

public PageViewModel ( Roadkill.Core.Database.Page page ) : System
page Roadkill.Core.Database.Page
리턴 System

PageViewModel() 공개 메소드

public PageViewModel ( PageContent pageContent, Roadkill.Core.Converters.MarkupConverter converter ) : System
pageContent Roadkill.Core.Database.PageContent
converter Roadkill.Core.Converters.MarkupConverter
리턴 System

ParseTags() 공개 정적인 메소드

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

RelToUserToPage() 공개 메소드

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

SpaceDelimitedTags() 공개 메소드

Joins the tags with a space.
public SpaceDelimitedTags ( ) : string
리턴 string

VerifyRawTags() 공개 정적인 메소드

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
리턴 System.ComponentModel.DataAnnotations.ValidationResult