C# Class Phresco.SharePoint.CFT_RegEx.CustomFieldTypeRegEx

Inheritance: SPFieldText
Mostra file Open project: photon-infotech/sharepoint-resource-management Class Usage Examples

Public Methods

Method Description
CustomFieldTypeRegEx ( SPFieldCollection fields, string fieldName ) : System
CustomFieldTypeRegEx ( SPFieldCollection fields, string typeName, string displayName ) : System
GetCustomProperty ( string propertyName ) : object

Replace the buggy base implementation of GetCustomProperty

GetValidatedString ( object value ) : string
OnAdded ( SPAddFieldOptions op ) : void

Called when a field is created. Without this, update is not called and custom properties are not saved.

SetCustomProperty ( string propertyName, object propertyValue ) : void

Replace the buggy base implementation of SetCustomProperty

Update ( ) : void

Private Methods

Method Description
GetCacheKey ( string propertyName ) : string

Get an identifier for the field being added/edited that will be unique even if another user is editing a property of the same name.

InitProperties ( ) : void

Initialise backing fields from base property store

SaveProperties ( ) : void

Take properties from either the backing fields or the static store and put them in the base property store

Method Details

CustomFieldTypeRegEx() public method

public CustomFieldTypeRegEx ( SPFieldCollection fields, string fieldName ) : System
fields SPFieldCollection
fieldName string
return System

CustomFieldTypeRegEx() public method

public CustomFieldTypeRegEx ( SPFieldCollection fields, string typeName, string displayName ) : System
fields SPFieldCollection
typeName string
displayName string
return System

GetCustomProperty() public method

Replace the buggy base implementation of GetCustomProperty
public GetCustomProperty ( string propertyName ) : object
propertyName string
return object

GetValidatedString() public method

public GetValidatedString ( object value ) : string
value object
return string

OnAdded() public method

Called when a field is created. Without this, update is not called and custom properties are not saved.
public OnAdded ( SPAddFieldOptions op ) : void
op SPAddFieldOptions
return void

SetCustomProperty() public method

Replace the buggy base implementation of SetCustomProperty
public SetCustomProperty ( string propertyName, object propertyValue ) : void
propertyName string
propertyValue object
return void

Update() public method

public Update ( ) : void
return void