Comments dataservice.
More...
Comments dataservice.
- Since
- 4.1
Definition at line 11 of file DataService.php.
Elgg\Comments\DataService::filterGuids |
( |
array |
$guids | ) |
|
Removes already counted comments from list of guids.
- Parameters
-
array | $guids | array of guids |
- Returns
- array
Definition at line 58 of file DataService.php.
Elgg\Comments\DataService::getCommentsCount |
( |
\ElggEntity |
$entity | ) |
|
Get the number of comments for an entity.
- Parameters
-
\ElggEntity | $entity | the entity to fetch for |
- Returns
- int
Definition at line 37 of file DataService.php.
static Elgg\Comments\DataService::instance |
( |
| ) |
|
|
static |
Elgg\Comments\DataService::setCommentsCount |
( |
int |
$guid, |
|
|
int |
$num |
|
) |
| |
Set number of comments.
- Parameters
-
int | $guid | for guid |
int | $num | number of comments |
- Returns
- void
Definition at line 26 of file DataService.php.
Elgg\Comments\DataService::$counts = [] |
|
protected |
The documentation for this class was generated from the following file: