ami_models v0.3.0 Ami.CourseSearch

Link to this section Summary

Functions

Search for open course periods matching given term accessible by given user Returns { :ok, %{courses: [course_period_struct], packages: [package_struct]} }

Link to this section Functions

Link to this function

search_for_community_with_term(community, term)

Link to this function

search_for_user_with_term(term)

Link to this function

search_for_user_with_term(user, term)

Search for open course periods matching given term accessible by given user Returns { :ok, %{courses: [course_period_struct], packages: [package_struct]} }

Examples

iex> Ami.CourseSearch.search_for_user_with_term(user, "manage") {:ok, %courses: [%Ami.CoursePeriod{}], packages: [%Ami.Package{}]}

Link to this function

search_for_user_with_term_of_type(user, term, type)