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

        $flat = $db->selectArray(
            "
            SELECT action, objectType, objectId
            FROM acl_users
            WHERE userId=?
            ",
            array($userId)
        );
        return is_array($flat) ? $flat : array();
    }
public static function getUserACL($userId)
    {
        global $PPHP;
        $db = $PPHP['db'];

        $flat = $db->selectArray(
            "
            SELECT action, objectType, objectId
            FROM acl_users
            WHERE userId=?
            ",
            array($userId)
        );
        return is_array($flat) ? $flat : array();
    }
public static function getUserACL ( $ userId ) { global $ PPHP ; $ db = $ PPHP [ 'db' ] ; $ flat = $ db -> selectArray ( "
            SELECT action, objectType, objectId
            FROM acl_users
            WHERE userId=?
            " , array ( $ userId ) ) ; return is_array ( $ flat ) ? $ flat : array ( ) ; }
Get permissions associated with a user

Each permissions is an associative array with keys: action, objectType,
objectId.  Wildcards are respectively '*', '*' and 0.

@param string $userId Name of role

@return array
Get permissions associated with a user