Commit d1e78b7b authored by Penny Leach's avatar Penny Leach
Browse files

added stub get_views for martyn

parent 665b1df7
......@@ -1052,6 +1052,22 @@ function can_view_view($view_id, $user_id=null) {
return false;
}
/**
* get the views that a user can see belonging
* to the given users
*
* @param array $users users to fetch views owned by
* @param int $userlooking (optional, defaults to logged in user)
* @param int $limit grab this many views.
*/
function get_views($users, $userlooking=null, $limit=5) {
$userlooking = optional_userid($userlooking);
if (is_int($users)) {
$users = array($users);
}
// @todo martyn
}
function artefact_in_view($artefact, $view) {
$prefix = get_config('dbprefix');
$sql = 'SELECT a.id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment