Ejemplo n.º 1
0
/**
 * Get the users following the given item
 *
 * @param string $itemid
 * @param integer $start (optional - default: 0)
 * @param integer $max (optional - default: 20)
 * @param string $orderby (optional, either 'date', 'name' or 'moddate' - default: 'date')
 * @param string $sort (optional, either 'ASC' or 'DESC' - default: 'DESC')
 * @param String $style (optional - default 'long') may be 'short' or 'long'  - how much of a user's details to load (long includes: tags and groups).
 * @return UserSet or Error
 */
function getUsersByFollowing($itemid, $start = 0, $max = 20, $orderby = 'date', $sort = 'DESC', $style = 'long')
{
    global $HUB_SQL;
    $params = array();
    $params[0] = $itemid;
    $sql = $HUB_SQL->APILIB_USERS_BY_FOLLOWING_SELECT;
    $us = new UserSet();
    return $us->loadFollowers($sql, $params, $start, $max, $orderby, $sort, $style);
}