public function on_collaboration_accept($pars)
{
if (false === ($row = Db::find_first("SELECT * FROM amy.coll_accept(" . $this->user->userId . ", '" . Db::quote_literal($pars['hash']) . "')"))) {
self::raiseError('Unable to accept: ' . Db::last_error());
}
self::setResult($row);
}