Removes all keys from a key list and set new keys.
public function UnbDatabase::ResetKeylistKeys ($tableName, $columnName, $idColumn, $idValue, $keys);
(string) Table in which the key list is referenced
(string) Column which contains the key list ID reference
(string) Identifier column (primary key) of the table
(int/string) Identifier value of the table, describing the record that references the key list
(array(int)) New keys. Set this to null
to only remove all keys.
This function reads the currently assigned key list ID from tableName.columnName where idColumn is idValue and removes the key from this key list. If the key list is then empty, the reference is deleted (set to null
) in tableName.columnName.
InvalidArgumentException | On invalid argument type or value. |
UnbDatabaseException | No description available. |
Member of class: UnbDatabase
Implementation file: database.class.php, line 1129
© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.