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.

Afficher le fichier Open project: sergeyshushlyapin/Sitecore.FakeDb Class Usage Examples

Méthodes publiques

Méthode Description
Process ( AddDbItemArgs args ) : void

Private Methods

Méthode 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 méthode

public Process ( AddDbItemArgs args ) : void
args AddDbItemArgs
Résultat void