Elgg\Database\AccessCollections::getCollectionsByMember PHP Method

getCollectionsByMember() public method

Return an array of database row objects of the access collections $entity_guid is a member of.
public getCollectionsByMember ( integer $member_guid ) : array | false
$member_guid integer The entity guid
return array | false
    function getCollectionsByMember($member_guid)
    {
        $member_guid = (int) $member_guid;
        $db = $this->db;
        $prefix = $db->prefix;
        $query = "SELECT ac.* FROM {$prefix}access_collections ac\n\t\t\t\tJOIN {$prefix}access_collection_membership m ON ac.id = m.access_collection_id\n\t\t\t\tWHERE m.user_guid = {$member_guid}\n\t\t\t\tORDER BY name ASC";
        $collections = $db->getData($query);
        return $collections;
    }