src/Pyrite/ACL.php
public static function getRoleUsers($role)
    {
        global $PPHP;
        $db = $PPHP['db'];

        $out = $db->selectList(
            "
            SELECT userId FROM users_roles
            WHERE role=?
            ORDER BY userId ASC
            ",
            array($role)
        );
        return (is_array($out) ? $out : array());
    }
public static function getRoleUsers($role)
    {
        global $PPHP;
        $db = $PPHP['db'];

        $out = $db->selectList(
            "
            SELECT userId FROM users_roles
            WHERE role=?
            ORDER BY userId ASC
            ",
            array($role)
        );
        return (is_array($out) ? $out : array());
    }
public static function getRoleUsers ( $ role ) { global $ PPHP ; $ db = $ PPHP [ 'db' ] ; $ out = $ db -> selectList ( "
            SELECT userId FROM users_roles
            WHERE role=?
            ORDER BY userId ASC
            " , array ( $ role ) ) ; return ( is_array ( $ out ) ? $ out : array ( ) ) ; }
List users which have a given role

@param string $role Role to get users for

@return array List of userIds
List users which have a given role