mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
Implement parts of the list API:
lists/statuses lists/destroy lists/update lists/create lists/ownerships
This commit is contained in:
parent
23f5779401
commit
b3235c2d02
3 changed files with 404 additions and 28 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue