Solar_Access_Adapter_Sql::fetch()
public
array
Solar_Access_Adapter_Sql::fetch
( string $handle
, array $roles
)
Fetches access privileges for a user handle and roles.
Parameters
(string)
$handle
: User handle.(array)
$roles
: User roles.
Returns
(array)
Description
Fetches access privileges for a user handle and roles.
Uses a SELECT similar to the following:
SELECT $cols FROM $table WHERE (type = 'handle' AND name IN ($handle_list)) OR (type = 'role' AND name IN ($role_list)) OR (type = 'owner') ORDER BY $order