How to use this "elgg_get_entities"

Hi everyone:

I want function to return array all entity type='object' and subType='blog,file' and created from one week ago to current time,

and then get for each element in array how many likes did it has.

please help ...