Searching a module

A program accesses an EMu module (or table, the terms are used interchangeably) using the IMuModule class. The name of the table to be accessed is passed to the IMuModule constructor. For example:

require_once IMu::$lib . '/Module.php';
// ⋯
$parties = new IMuModule('eparties', $session);

This code assumes that a IMuSession object called session has already been created. If a IMuSession object is not passed to the IMuModule constructor, a session will be created automatically using the defaultHost and defaultPort class properties. See Connecting to an IMu server for details.

Once a IMuModule object has been created, it can be used to search the specified module and retrieve records.

Any one of the following methods can be used to search for records within a module: