Add getContentByCategories method to the Phire model