Elgg\Database\AccessCollections::get PHP Method

get() public method

Get a specified access collection
See also: get_members_of_access_collection()
public get ( integer $collection_id ) : object | false
$collection_id integer The collection ID
return object | false
    function get($collection_id)
    {
        $collection_id = (int) $collection_id;
        $db = $this->db;
        $prefix = $db->prefix;
        $query = "SELECT * FROM {$prefix}access_collections WHERE id = {$collection_id}";
        $get_collection = $db->getDataRow($query);
        return $get_collection;
    }