This function is used when a set of view records needs to be augmented
with tags and data about the view owner (user, group, or institution).
It is useful on many pages to add the url of each view into the set of
results, because the url can no longer be determined from the view id
alone.
To use the get_url() method, a temporary View object is created, and
this is prepopulated with the appropriate owner or group (which we
have already pulled from the db), so that later calls to
get_owner_object() and get_group_object() don't need to perform any
more queries.
Change-Id: I26528ff573d057847747273cf9983fcacc70d20a
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/1259 gitorious. org/mahara/ mahara/ commit/ 33404332d1fe438 67e6a3aa871cd02 c162c1e8e4
Committed: http://
Submitter: Melissa Draper (<email address hidden>)
Branch: master
commit 33404332d1fe438 67e6a3aa871cd02 c162c1e8e4
Author: Richard Mansfield <email address hidden>
Date: Tue May 1 18:10:54 2012 +1200
Generate view urls in get_extra_view_info
Bug #1006634, part 3
This function is used when a set of view records needs to be augmented
with tags and data about the view owner (user, group, or institution).
It is useful on many pages to add the url of each view into the set of
results, because the url can no longer be determined from the view id
alone.
To use the get_url() method, a temporary View object is created, and owner_object( ) and get_group_object() don't need to perform any
this is prepopulated with the appropriate owner or group (which we
have already pulled from the db), so that later calls to
get_
more queries.
Change-Id: I26528ff573d057 847747273cf9983 fcacc70d20a
Signed-off-by: Richard Mansfield <email address hidden>