->keys()

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

Synopsis

object $DB_DataObject->keys ([array $keys])

Description

Without any argument, it returns the keys used by the object (the generator builds these and guess'es them based on finding things like primary key, unique, or nextval() in the description. Calling it with an array sets it for the current instance of the object.

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

Note

This function can not be called statically.

Example