->keys()

->keys() – Get or set the table keys

Synopsis

array $DB_DataObject->keys (
string $keys
...
)

Description

Without any arguments, keys() returns an array of the keys used by the object
(the generator builds these and guesses them based on finding things like
primary key, unique, or nextval). Calling it with a value, or mulitple values,
sets the keys for the current instance of the object.

The default keys are normally stored in the database.ini file described in the
Autobuilding section.