src/Pyrite/ACL.php
public static function getObjectUsers($action, $objectType, $objectId)
    {
        global $PPHP;
        $db = $PPHP['db'];

        $out = $db->selectList(
            "
            SELECT userId FROM acl_users
            WHERE action=? AND objectType=? AND objectId=?
            ORDER BY userId ASC
            ",
            array(
                $action,
                $objectType,
                $objectId
            )
        );
        return (is_array($out) ? $out : array());
    }
public static function getObjectUsers($action, $objectType, $objectId)
    {
        global $PPHP;
        $db = $PPHP['db'];

        $out = $db->selectList(
            "
            SELECT userId FROM acl_users
            WHERE action=? AND objectType=? AND objectId=?
            ORDER BY userId ASC
            ",
            array(
                $action,
                $objectType,
                $objectId
            )
        );
        return (is_array($out) ? $out : array());
    }
public static function getObjectUsers ( $ action , $ objectType , $ objectId ) { global $ PPHP ; $ db = $ PPHP [ 'db' ] ; $ out = $ db -> selectList ( "
            SELECT userId FROM acl_users
            WHERE action=? AND objectType=? AND objectId=?
            ORDER BY userId ASC
            " , array ( $ action , $ objectType , $ objectId ) ) ; return ( is_array ( $ out ) ? $ out : array ( ) ) ; }
List users which have a specific right

@param string $action     Action
@param string $objectType Object class
@param int    $objectId   Object ID

@return array List of userIds
List users which have a specific right