interface source_interface

Methods

bool
get(array $names, string $keyword, int $topic_id)

Searches database for names to mention and alters the passed array of found items

int
get_priority(array $row)

Returns the priority of the currently selected name Please note that simple inner priorities for a certain source can be set with ORDER BY SQL clause

Details

at line 27
bool get(array $names, string $keyword, int $topic_id)

Searches database for names to mention and alters the passed array of found items

Parameters

array $names

Array of already fetched data with names

string $keyword

Search string

int $topic_id

Current topic ID

Return Value

bool

Whether there are no more satisfying names left

at line 37
int get_priority(array $row)

Returns the priority of the currently selected name Please note that simple inner priorities for a certain source can be set with ORDER BY SQL clause

Parameters

array $row

Array of fetched data for the name type (e.g. user row)

Return Value

int

Priority (defaults to 1)