src/ClientLocal.php 1 location
|
@@ 681-683 (lines=3) @@
|
| 678 |
|
$connection = $this->container->get('connection'); |
| 679 |
|
$acl = $this->container->get('acl'); |
| 680 |
|
$tableGateway = new DirectusActivityTableGateway($connection, $acl); |
| 681 |
|
if (!ArrayUtils::has($params, 'filters.datetime')) { |
| 682 |
|
$params['filters']['datetime'] = ['>=' => DateUtils::daysAgo(30)]; |
| 683 |
|
} |
| 684 |
|
|
| 685 |
|
$data = $tableGateway->fetchFeed($params); |
| 686 |
|
|
src/ClientRemote.php 1 location
|
@@ 483-485 (lines=3) @@
|
| 480 |
|
*/ |
| 481 |
|
public function getActivity(array $params = []) |
| 482 |
|
{ |
| 483 |
|
if (!ArrayUtils::has($params, 'filters.datetime')) { |
| 484 |
|
$params['filters']['datetime'] = ['>=' => DateUtils::daysAgo(30)]; |
| 485 |
|
} |
| 486 |
|
|
| 487 |
|
$path = $this->buildPath(static::ACTIVITY_GET_ENDPOINT); |
| 488 |
|
|