TranslationHelper MembersKentico 8.0 API Reference
The TranslationHelper type exposes the following members.
Constructors

  NameDescription
Public methodTranslationHelper 
Constructor.
Public methodTranslationHelper(DataTable)
Constructor. Creates the helper initialized with given translation table.
Back to Top
Methods

  NameDescription
Public methodAddIDTranslation
Adds the ID translation to the translation table.
Public methodClear
Clears the translation table.
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodFilterExistingRecords
Filters the existing records from the given array.
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetCodeName(String, Int32)
Returns the code name of the specified object.
Public methodGetCodeName(String, Int32, String)
Returns the code name of the specified object.
Public methodStatic memberGetCodeNameColumn
Gets the code name column for specified object type.
Public methodStatic memberGetCodeNameFromDB
Gets the object code name from the database.
Public methodGetCodeNamesFromDB
Gets the code names from database and returns Hastable of couples [ID] -> [Codename]
Public methodGetDefaultValue
Gets default value.
Public methodStatic memberGetEmptyTable
Returns empty translation table.
Public methodStatic memberGetGroupIDColumn
Gets the group ID column for specified object type.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetID(String, String, String, Int32, Int32)
Returns the object ID for specified record.
Public methodGetID(String, String, String, Int32, Int32, Int32)
Returns the object ID for specified record.
Public methodStatic memberGetIDColumn
Gets the ID column for specified object type.
Public methodStatic memberGetIDFromDB
Gets the object ID from the database.
Public methodGetNewID(String, Int32, String, Int32, String, String, String)
Gets the new ID for given old ID.
Public methodGetNewID(String, Int32, String, Int32, String, String, String, Boolean, Int32 )
Gets the new ID for given old ID.
Public methodStatic memberGetParentIDColumn
Gets the parent ID column for specified object type.
Public methodStatic memberGetParentType
Gets the parent object type for specified object type.
Public methodGetRecord(String, Int32)
Gets the record by ID.
Public methodGetRecord(String, String, String, Int32, Int32)
Gets the record by ID.
Public methodStatic memberGetSafeClassName
Gets the safe class name.
Public methodStatic memberGetSiteIDColumn
Gets the site id column for specified object type.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodHasRecords
Returns true if the helper contains some records.
Public methodChangeCodeName
Changes the object code name in the table.
Public methodStatic memberIsEmpty
Determines whether the given translation helper contains any translations or not.
Public methodStatic memberIsExcluded
Returns true of the column is excluded.
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodRecordExists(String, Int32)
Returns true if specified record exists in translation table.
Public methodRecordExists(String, String, String, Int32, Int32)
Returns true if specified record exists in translation table.
Public methodRegisterDynamicRecords(DataTable, String, String, String,  String )
Registers the dynamic records from the given table.
Public methodRegisterDynamicRecords(DataView, String, String, String,  String )
Registers the records from the given table.
Public methodRegisterRecord(String, Int32, String, Int32)
Registers the record within given translation table.
Public methodRegisterRecord(String, Int32, String, String, Int32, String, Int32)
Registers the record within given translation table.
Public methodRegisterRecords(DataTable, String, String, String)
Registers the records from the given table.
Public methodRegisterRecords(String, IList Int32 , String,  String )
Registers the records from the given ID list.
Public methodRegisterRecords(DataTable, String, String, String,  String )
Registers the records from the given table.
Public methodRegisterRecords(DataView, String, String, String,  String )
Registers the records from the given table.
Public methodRegisterRecords(DataTable, String, String, String, String, String, String)
Registers the records from the given table.
Public methodRemoveDefaultValue
Removes default value.
Public methodSetDefaultValue
Sets default value.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodTranslateColumn(DataRow, String, String, Int32)
Translates the DataRow column.
Public methodTranslateColumn(GeneralizedInfo, String, String, Int32, Boolean, Boolean)
Translates the column value of the given info object.
Public methodTranslateColumn(IDataContainer, String, String, Int32, Boolean, Boolean)
Translates the column value of the given container.
Public methodTranslateColumns
Translates all reference object columns.
Public methodTranslateListColumn
Translates the column value with list of IDs of the given info object.
Back to Top
Extension Methods

  NameDescription
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Fields

  NameDescription
Public fieldStatic memberAUTO_PARENTID
Automatic parent ID.
Public fieldStatic memberAUTO_SITEID
Automatic site ID.
Public fieldStatic memberAUTO_SITENAME
Automatic site name (Get by SiteIDs from DB).
Protected fieldmConnection
Connection object used to access data.
Public fieldmIDConversion
ID conversion table [objectType.ToLowerCSafe()] -> Hashtable [OldID -> [NewID, NewGroupID]]
Public fieldStatic memberNO_SITE
No site condition for registering records.
Public fieldStatic memberTRANSLATION_TABLE
Name of translation table
Back to Top
Properties

  NameDescription
Public propertyIDConversion
ID conversion table [objectType.ToLowerCSafe()] -> Hashtable [OldID -> NewID]
Public propertyTranslationTable
Returns the translation table.
Public propertyUseDisplayNameAsCodeName
If true, display name is used instead of the code name.
Back to Top
See Also