src/ClientLocal.php 1 location
|
@@ 661-663 (lines=3) @@
|
| 658 |
|
$connection = $this->container->get('connection'); |
| 659 |
|
$acl = $this->container->get('acl'); |
| 660 |
|
$tableGateway = new DirectusActivityTableGateway($connection, $acl); |
| 661 |
|
if (!ArrayUtils::has($params, 'filters.datetime')) { |
| 662 |
|
$params['filters']['datetime'] = ['>=' => DateUtils::daysAgo(30)]; |
| 663 |
|
} |
| 664 |
|
|
| 665 |
|
$data = $tableGateway->fetchFeed($params); |
| 666 |
|
|
src/ClientRemote.php 1 location
|
@@ 470-472 (lines=3) @@
|
| 467 |
|
*/ |
| 468 |
|
public function getActivity(array $params = []) |
| 469 |
|
{ |
| 470 |
|
if (!ArrayUtils::has($params, 'filters.datetime')) { |
| 471 |
|
$params['filters']['datetime'] = ['>=' => DateUtils::daysAgo(30)]; |
| 472 |
|
} |
| 473 |
|
|
| 474 |
|
$path = $this->buildPath(static::ACTIVITY_GET_ENDPOINT); |
| 475 |
|
|