C# Class Sitecore.FakeDb.DbItem

Inheritance: IEnumerable
Datei anzeigen Open project: sergeyshushlyapin/Sitecore.FakeDb Class Usage Examples

Public Methods

Method Description
Add ( DbField field ) : void

Adds a new DbField to the item.

Add ( DbItem child ) : void

Adds a child DbItem to the item.

Add ( ID fieldId, string fieldValue ) : void

Adds a new field to the item.

Add ( string fieldName, string fieldValue ) : void

Adds a new field to the item.

AddVersion ( string language ) : void

Adds a new version to the item in specific language.

AddVersion ( string language, int currentVersion ) : void

Adds a new version to the item in specific language.

DbItem ( string name ) : System

Initializes a new instance of the DbItem class.

DbItem ( string name, ID id ) : System

Initializes a new instance of the DbItem class.

DbItem ( string name, ID id, ID templateId ) : System

Initializes a new instance of the DbItem class.

GetVersionCount ( string language ) : int

Gets the item versions count.

RemoveVersion ( string language ) : bool

Removes the item version.

RemoveVersion ( string language, int version ) : bool

Removes the item version.

Private Methods

Method Description
IEnumerable ( ) : IEnumerator

Method Details

Add() public method

Adds a new DbField to the item.
public Add ( DbField field ) : void
field DbField The field.
return void

Add() public method

Adds a child DbItem to the item.
public Add ( DbItem child ) : void
child DbItem The child item.
return void

Add() public method

Adds a new field to the item.
public Add ( ID fieldId, string fieldValue ) : void
fieldId ID The field id.
fieldValue string The field value.
return void

Add() public method

Adds a new field to the item.
public Add ( string fieldName, string fieldValue ) : void
fieldName string The field name.
fieldValue string The field value.
return void

AddVersion() public method

Adds a new version to the item in specific language.
public AddVersion ( string language ) : void
language string The language.
return void

AddVersion() public method

Adds a new version to the item in specific language.
public AddVersion ( string language, int currentVersion ) : void
language string The language.
currentVersion int The current varsion.
return void

DbItem() public method

Initializes a new instance of the DbItem class.
public DbItem ( string name ) : System
name string The item name.
return System

DbItem() public method

Initializes a new instance of the DbItem class.
public DbItem ( string name, ID id ) : System
name string The item name.
id ID The item id.
return System

DbItem() public method

Initializes a new instance of the DbItem class.
public DbItem ( string name, ID id, ID templateId ) : System
name string The item name.
id ID The item id.
templateId ID The template id.
return System

GetVersionCount() public method

Gets the item versions count.
public GetVersionCount ( string language ) : int
language string The language.
return int

RemoveVersion() public method

Removes the item version.
public RemoveVersion ( string language ) : bool
language string The language.
return bool

RemoveVersion() public method

Removes the item version.
public RemoveVersion ( string language, int version ) : bool
language string The language.
version int The version number.
return bool