ami_models v0.2.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(term)
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