C# Class Sitecore.FakeDb.Pipelines.AddDbItem.SetStatistics

Creates and fulfills item statistics fields for all the item languages. The fields included are 'Created', 'CreatedBy', 'Revision', 'Updated' and 'UpdatedBy'.

The 'Created' and 'Updated' fields are set to the current date in ISO format. The 'CreatedBy' and 'UpdatedBy' fields store the current user name. The 'Revision' field is a System.Guid generated for each of the item languages.

Show file Open project: sergeyshushlyapin/Sitecore.FakeDb Class Usage Examples

Public Methods

Method Description
Process ( AddDbItemArgs args ) : void

Private Methods

Method Description
AddStatisticsFields ( DbItem item, string date, string user ) : void
SetFieldValue ( DbField field, string lang, string value ) : void
SetStatisticsForAllLanguages ( DbItem item, string date, string user ) : void

Method Details

Process() public method

public Process ( AddDbItemArgs args ) : void
args AddDbItemArgs
return void