Javascript for Episerver 7.5 cms

ContentEditingValidator (constructor)

Location

epi-cms/contentediting/ContentEditingValidator

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

_errorLevels

_isBlocking

_store

_storeId

contextId

Id of context used to partitioning messages in message service

contextTypeName

Name of context type used to partitioning messages in message service

hasErrors

Indicates if there are any errors (only errors, warn not included)

isValid

Indicates if this validator is valid without any validation errors (no error or warn messages)

messageService

severity

validationSource

Methods

public inherited method _changeAttrValue ( name , value )

Internal helper for directly changing an attribute value.

Parameters

public method _clearErrors ( propertyName , source )

Parameters

public inherited method _get ( name , names )

Private function that does a get based off a hash of names

Parameters

public method _putStoreItem ( item , propertyName , source )

Parameters

public method _setErrors ( errorMessages , propertyName , source )

Parameters

public method _updateFlags ( )


public method _validate ( severity )

Queries message service by error type to indicates content is valid or not

Parameters

public method clearErrorsBySource ( source )

Parameters

public method clearGlobalErrors ( source )

Parameters

public method clearPropertyErrors ( propertyName , source )

Parameters

public method constructor ( params )

Parameters

public inherited method get ( name )

Get a property on a Stateful instance.

Parameters

public method postscript ( )


public inherited method set ( name , value )

Set a property on a Stateful instance

Parameters

public method setContextId ( contextId )

Parameters

public method setGlobalErrors ( errorMessages , source )

Parameters

public method setPropertyErrors ( propertyName , errorMessages , source )

Parameters

public method validate ( )

Queries message service by error type and warning type to indicates content is valid or not


public inherited method watch ( name , callback )

Watches a property for changes

Parameters