UNB Components Code Reference

UnbMessage::GetRefDEP method

Gets the last-referenced discussion entry point's message ID.

public function UnbMessage::GetRefDEP ($maxLevel = null);

Parameters

maxLevel  –  optional, default: null

(int) Maximum number of levels to search. Unlimited if unset.

Return value

(int) Message ID of the last-referenced entry point

Remarks

If this message is already a discussion entry point or has no primary reference, its message ID is returned. Otherwise, each primary reference will be followed until a message either marked as entry point or with no primary reference is found.

Exceptions thrown

UnbDatabaseException 

If a database error occured or if a primary reference loop was detected.

Member of class: UnbMessage

Implementation file: message.class.php, line 1426

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