src/ClientLocal.php 1 location
|
@@ 637-639 (lines=3) @@
|
634 |
|
$connection = $this->container->get('connection'); |
635 |
|
$acl = $this->container->get('acl'); |
636 |
|
$tableGateway = new DirectusActivityTableGateway($connection, $acl); |
637 |
|
if (!ArrayUtils::has($params, 'filters.datetime')) { |
638 |
|
$params['filters']['datetime'] = ['>=' => DateUtils::daysAgo(30)]; |
639 |
|
} |
640 |
|
|
641 |
|
$data = $tableGateway->fetchFeed($params); |
642 |
|
|
src/ClientRemote.php 1 location
|
@@ 458-460 (lines=3) @@
|
455 |
|
*/ |
456 |
|
public function getActivity(array $params = []) |
457 |
|
{ |
458 |
|
if (!ArrayUtils::has($params, 'filters.datetime')) { |
459 |
|
$params['filters']['datetime'] = ['>=' => DateUtils::daysAgo(30)]; |
460 |
|
} |
461 |
|
|
462 |
|
$path = $this->buildPath(static::ACTIVITY_GET_ENDPOINT); |
463 |
|
|