Add \record_adapter::get_collection method

This commit is contained in:
Romain Neutron
2012-06-21 14:04:43 +02:00
parent d4d9dd2cee
commit ee280480f5

View File

@@ -327,6 +327,16 @@ class record_adapter implements record_Interface, cache_cacheableInterface
return $this->base_id;
}
/**
* Return record collection
*
* @return \collection
*/
public function get_collection()
{
return \collection::get_from_base_id($this->base_id);
}
/**
* return recor_id of the record
*