UNB Components Code Reference

UnbDatabase::GetKeylistKeys method

Gets all keys in a key list referenced by an entity.

public function UnbDatabase::GetKeylistKeys ($tableName, $columnName, $idColumn, $idValue, $lock = false);

Parameters

tableName

(string) Table in which the key list is referenced

columnName

(string) Column which contains the key list ID reference

idColumn

(string) Identifier column (primary key) of the table

idValue

(int/string) Identifier value of the table, describing the record that references the key list

lock  –  optional, default: false

(bool) Locks the returned keys for any access from other transactions.

Remarks

This function reads the currently assigned key list ID from tableName.columnName where idColumn is idValue and returns all keys from this key list.

Exceptions thrown

InvalidArgumentException 

On invalid argument type or value.

UnbDatabaseException No description available.

Member of class: UnbDatabase

Implementation file: database.class.php, line 955

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.