@@ 70-72 (lines=3) @@ | ||
67 | $log = Entry::SUPPRESS_LOG; |
|
68 | $user = Entry::SUPPRESS_USER; |
|
69 | if (!empty($params[self::INCLUDE]) && is_array($params[self::INCLUDE])) { |
|
70 | if (in_array(self::INCLUDE_LOG, $params[self::INCLUDE])) { |
|
71 | $log = $this->logs()->get($databaseRow[Log::ID], [self::INCLUDE => []]); |
|
72 | } |
|
73 | if (in_array(self::INCLUDE_USER, $params[self::INCLUDE])) { |
|
74 | $user = $this->users()->get($databaseRow[User::ID], [self::INCLUDE => []]); |
|
75 | } |
|
@@ 73-75 (lines=3) @@ | ||
70 | if (in_array(self::INCLUDE_LOG, $params[self::INCLUDE])) { |
|
71 | $log = $this->logs()->get($databaseRow[Log::ID], [self::INCLUDE => []]); |
|
72 | } |
|
73 | if (in_array(self::INCLUDE_USER, $params[self::INCLUDE])) { |
|
74 | $user = $this->users()->get($databaseRow[User::ID], [self::INCLUDE => []]); |
|
75 | } |
|
76 | } |
|
77 | return $this->object($databaseRow, $log, $user); |
|
78 | } |
@@ 83-85 (lines=3) @@ | ||
80 | $device = Log::SUPPRESS_DEVICE; |
|
81 | $entries = Log::SUPPRESS_ENTRIES; |
|
82 | if (!empty($params[self::INCLUDE]) && is_array($params[self::INCLUDE])) { |
|
83 | if (in_array(self::INCLUDE_DEVICE, $params[self::INCLUDE])) { |
|
84 | $device = $this->devices()->get($databaseRow[Device::ID], [self::INCLUDE => []]); |
|
85 | } |
|
86 | if (in_array(self::INCLUDE_ENTRIES, $params[self::INCLUDE])) { |
|
87 | $entries = $this->entries()->listByLog($databaseRow['id']); |
|
88 | } |