{"action":"created","issue":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/2527","labels_url":"https://api.github.com/repos/Elgg/Elgg/issues/2527/labels{/name}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/2527/comments","events_url":"https://api.github.com/repos/Elgg/Elgg/issues/2527/events","html_url":"https://github.com/Elgg/Elgg/issues/2527","id":11072150,"number":2527,"title":"Provide elgg_get* type-specific functions (Trac #2527)","user":{"login":"elgg-gitbot","id":3541971,"avatar_url":"https://avatars.githubusercontent.com/u/3541971?v=3","gravatar_id":"","url":"https://api.github.com/users/elgg-gitbot","html_url":"https://github.com/elgg-gitbot","followers_url":"https://api.github.com/users/elgg-gitbot/followers","following_url":"https://api.github.com/users/elgg-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/elgg-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/elgg-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elgg-gitbot/subscriptions","organizations_url":"https://api.github.com/users/elgg-gitbot/orgs","repos_url":"https://api.github.com/users/elgg-gitbot/repos","events_url":"https://api.github.com/users/elgg-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/elgg-gitbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Elgg/Elgg/labels/engine","name":"engine","color":"444444"},{"url":"https://api.github.com/repos/Elgg/Elgg/labels/feature","name":"feature","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-02-16T17:20:35Z","updated_at":"2015-02-17T19:19:20Z","closed_at":"2015-02-17T19:19:19Z","body":"_Original ticket http://trac.elgg.org/ticket/2527 on 40763265-07-06 by ewinslow, assigned to unknown._\n\nElgg version: 1.7\n\nE.g.:\n - elgg_get_objects\n - elgg_get_groups\n - elgg_get_users\n - elgg_get_sites //for completeness?\n\nPros:\n - Pass in 1 less argument\n - Can optimize by joining the type-specific table instead of having to execute another query to get the type-specific fields\n - Can select/sort based on type-specific fields\n\nCons:\n - Adds a bunch more functions to the API\n - Especially if we want elgg_get_objects_from_metadata, etc."},"comment":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/comments/74732892","html_url":"https://github.com/Elgg/Elgg/issues/2527#issuecomment-74732892","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/2527","id":74732892,"user":{"login":"jdalsem","id":861833,"avatar_url":"https://avatars.githubusercontent.com/u/861833?v=3","gravatar_id":"","url":"https://api.github.com/users/jdalsem","html_url":"https://github.com/jdalsem","followers_url":"https://api.github.com/users/jdalsem/followers","following_url":"https://api.github.com/users/jdalsem/following{/other_user}","gists_url":"https://api.github.com/users/jdalsem/gists{/gist_id}","starred_url":"https://api.github.com/users/jdalsem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdalsem/subscriptions","organizations_url":"https://api.github.com/users/jdalsem/orgs","repos_url":"https://api.github.com/users/jdalsem/repos","events_url":"https://api.github.com/users/jdalsem/events{/privacy}","received_events_url":"https://api.github.com/users/jdalsem/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T19:19:19Z","updated_at":"2015-02-17T19:19:19Z","body":"Closing this as i see no real benefit of `elgg_get_users` over `elgg_get_entities(['type' => 'user'])` + what @ewinslow said"}}