Jet\DataModel_Definition_Key

The class represents the definition of a composite key.

Overview of methods

Method Meaning of
public __construct(
string $name,
string $type=DataModel::KEY_TYPE_INDEX,
array $property_names = []
) :
Parameters:
  • $name
    Key name.
  • $type
    Key type.
  • $property_names
    Names of properties belonging to the key.
public getName(
) : string
Returns the name of the key.
public getType(
) : string
Returns the key type.
public getPropertyNames(
) : array
Returns the names of the properties belonging to the key.
Previous chapter
Jet\DataModel_Definition_Property_String
Next chapter
Jet\DataModel_Relations