WIKINDX METHODS

Method:
listResources()

Class:
LISTCOMMON

Method Call:
include_once("core/list/LISTCOMMON.php");
$common = new LISTCOMMON($this->db, $this->vars);
ARRAY $common->listResources(STRING: $sqlTotal, STRING: $queryString, STRING: $listType, [ARRAY: $patterns = FALSE, STRING: $message = FALSE]);

Description:
This method returns two strings:

The first is a tabulated string of all resources asked for in $sqlTotal with appropriate view and edit hyperlinks. This string will be formatted as per the user's chosen bibliographic style. If $patterns is not FALSE, search term highlighting will be included in the string. If $messages is not FALSE, this is a string to be printed before the tabulated data.

The second return string is paging information intended to be set as the paging variable in the template system. $queryString is the URL query string required by the paging methods and that will be parsed in index.php.

Usage:
Example:
See STATEMENTS::listJoin() for an example of how to use this.

WIKINDX home      WIKINDX usage      WIKINDX classes