mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Removed and replaced deprecated functionalities
This commit is contained in:
parent
cfac13790b
commit
eb1b2256a0
12 changed files with 29 additions and 230 deletions
|
@ -251,28 +251,6 @@ class Group
|
|||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Mark a group as deleted based on its name
|
||||
*
|
||||
* @param int $uid
|
||||
* @param string $name
|
||||
* @return bool
|
||||
* @throws \Exception
|
||||
* @deprecated Use Group::remove instead
|
||||
*
|
||||
*/
|
||||
public static function removeByName($uid, $name)
|
||||
{
|
||||
$return = false;
|
||||
if (!empty($uid) && !empty($name)) {
|
||||
$gid = self::getIdByName($uid, $name);
|
||||
|
||||
$return = self::remove($gid);
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a contact to a group
|
||||
*
|
||||
|
@ -317,26 +295,6 @@ class Group
|
|||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a contact from a group based on its name
|
||||
*
|
||||
* @param int $uid
|
||||
* @param string $name
|
||||
* @param int $cid
|
||||
* @return boolean
|
||||
* @throws \Exception
|
||||
* @deprecated Use Group::removeMember instead
|
||||
*
|
||||
*/
|
||||
public static function removeMemberByName($uid, $name, $cid)
|
||||
{
|
||||
$gid = self::getIdByName($uid, $name);
|
||||
|
||||
$return = self::removeMember($gid, $cid);
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the combined list of contact ids from a group id list
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue