IMuModule
require_once IMu::$lib . '/Module.php';
Since: 1.0
Description
Provides access to an EMu module.
Constructors
Constructor |
Details |
||||
---|---|---|---|---|---|
|
__construct(string $table [, IMuSession $session = null]) Creates an object which can be used to access an EMu module. If the Parameters:
|
Properties
Property |
Details |
---|---|
|
The name of the table associated with the Type: string Getter: string getTable() |
Methods
Method |
Details |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
int addFetchSet(string $name, mixed $columns) Associates a set of columns with a logical name on the server. The name can be used instead of a column list when retrieving data using
Parameters
Parameters:
Returns:
Throws:
|
|||||||||||||
|
int addFetchSets(array $sets) Associates several sets of columns with logical names on the server. This is the equivalent of calling Parameters
Parameters:
Returns:
Throws:
|
||||||||||||
int addSearchAlias(string $name, mixed $columns) Associates a set of columns with a logical name on the server. The name can be used when specifying search terms to be passed to
Parameters
Parameters:
Returns:
Throws:
|
|||||||||||||
|
int addSearchAliases(array $aliases) Associates several sets of columns with logical names on the server. This is the equivalent of calling Parameters
Parameters:
Returns:
Throws:
|
||||||||||||
int addSortSet(string $name, mixed $keys) Associates several sets of columns with logical names on the server. The name can be used instead of a sort key list when sorting the current
result set using Parameters
Parameters:
Returns:
Throws:
|
|||||||||||||
|
int addSortSets(array $sets) Associates several sets of sort keys with logical names on the server. This is the equivalent of calling Parameters
Parameters:
Returns:
Throws:
|
||||||||||||
IMuModuleFetchResult fetch(string $flag, int $offset, int $count [, mixed $columns = null]) Fetches Parameters
Parameters:
Returns:
Throws:
|
|||||||||||||
|
fetchHierarchy(int $key, string $parent) Fetches a hierarchy of records around the record with the key value of
Parameters
Parameters:
Returns: |
||||||||||||
|
int findKey(int $key) Searches for a record with the key value Parameters
Parameters:
Returns:
Throws:
|
||||||||||||
|
int findKeys(array $keys) Searches for records with key values in the array Parameters
Parameters:
Returns:
Throws:
|
||||||||||||
int findTerms(mixed $terms) Searches for records which match the search terms specified in Parameters
Parameters:
Returns:
Throws:
|
|||||||||||||
int findWhere(string $where) Searches for records which match the TexQL Parameters
Parameters:
Returns:
Throws:
|
|||||||||||||
int restoreFromFile(string $file) Restores a set of records from a file on the server machine which contains a list of keys, one per line. Parameters
Parameters:
Returns:
Throws:
|
|||||||||||||
|
int restoreFromTemp(string $file) Restores a set of records from a temporary file on the server machine which contains a list of keys, one per line. Operates the same way as Parameters
Parameters:
Returns:
Throws:
|
||||||||||||
ModuleSortResult sort(mixed $keys [, mixed $flags = null]) Sorts the current result set by the sort keys in Parameters
Parameters:
Returns:
Throws:
|