mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:10:11 +00:00
Replace "group" with "circle" in the rest of the code
- Remaining mentions already mean "forum"
This commit is contained in:
parent
4f6e02357a
commit
4f7740264e
120 changed files with 1308 additions and 1304 deletions
|
@ -23,12 +23,7 @@ namespace Friendica\Object\Api\Friendica;
|
|||
|
||||
use Friendica\BaseDataTransferObject;
|
||||
|
||||
/**
|
||||
* Class Group
|
||||
*
|
||||
*
|
||||
*/
|
||||
class Group extends BaseDataTransferObject
|
||||
class Circle extends BaseDataTransferObject
|
||||
{
|
||||
/** @var string */
|
||||
protected $name;
|
||||
|
@ -42,18 +37,16 @@ class Group extends BaseDataTransferObject
|
|||
protected $mode;
|
||||
|
||||
/**
|
||||
* Creates an Group entity array
|
||||
*
|
||||
* @param array $group
|
||||
* @param array $circle Circle row array
|
||||
* @param array $user
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function __construct(array $group, array $user)
|
||||
public function __construct(array $circle, array $user)
|
||||
{
|
||||
$this->name = $group['name'];
|
||||
$this->id = $group['id'];
|
||||
$this->id_str = (string)$group['id'];
|
||||
$this->name = $circle['name'];
|
||||
$this->id = $circle['id'];
|
||||
$this->id_str = (string)$circle['id'];
|
||||
$this->user = $user;
|
||||
$this->mode = $group['visible'] ? 'public' : 'private';
|
||||
$this->mode = $circle['visible'] ? 'public' : 'private';
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue