Implement parts of the list API:

lists/statuses
lists/destroy
lists/update
lists/create
lists/ownerships
This commit is contained in:
Pierre Rudloff 2018-04-07 15:54:26 +02:00
parent 23f5779401
commit b3235c2d02
3 changed files with 404 additions and 28 deletions

View file

@ -54,6 +54,19 @@ class Group extends BaseObject
return $return;
}
/**
* Update group information.
*
* @param int $id Group ID
* @param string $name Group name
*
* @return bool Was the update successful?
*/
public static function update($id, $name)
{
return dba::update('group', ['name' => $name], ['id' => $id]);
}
/**
* @brief Get a list of group ids a contact belongs to
*