public author_search ( string $type, boolean $firstpost_only, array $sort_by_sql, string $sort_key, string $sort_dir, string $sort_days, array $ex_fid_ary, string $post_visibility, integer $topic_id, array $author_ary, string $author_name, &$id_ary, integer $start, integer $per_page ) : boolean | integer | ||
$type | string | contains either posts or topics depending on what should be searched for |
$firstpost_only | boolean | if true, only topic starting posts will be considered |
$sort_by_sql | array | contains SQL code for the ORDER BY part of a query |
$sort_key | string | is the key of $sort_by_sql for the selected sorting |
$sort_dir | string | is either a or d representing ASC and DESC |
$sort_days | string | specifies the maximum amount of days a post may be old |
$ex_fid_ary | array | specifies an array of forum ids which should not be searched |
$post_visibility | string | specifies which types of posts the user can view in which forums |
$topic_id | integer | is set to 0 or a topic id, if it is not 0 then only posts in this topic should be searched |
$author_ary | array | an array of author ids |
$author_name | string | specifies the author match, when ANONYMOUS is also a search-match |
$start | integer | indicates the first index of the page |
$per_page | integer | number of ids each page is supposed to contain |
return | boolean | integer | total number of results |