@@ 83-87 (lines=5) @@ | ||
80 | { |
|
81 | $device = Log::SUPPRESS_DEVICE; |
|
82 | $entries = Log::SUPPRESS_ENTRIES; |
|
83 | if (self::parameterValueExists($params, self::SCOPE_INCLUDE, self::INCLUDE_DEVICE)) { |
|
84 | $params = self::consumeParameterValue($params, self::SCOPE_INCLUDE, self::INCLUDE_DEVICE); |
|
85 | $params = self::consumeParameterValue($params, self::SCOPE_INCLUDE, DevicesBinding::INCLUDE_LOGS); |
|
86 | $device = $this->devices()->get($databaseRow[Device::ID], $params); |
|
87 | } |
|
88 | if (self::parameterValueExists($params,self::SCOPE_INCLUDE, self::INCLUDE_ENTRIES)) { |
|
89 | $params = self::consumeParameterValue($params, self::SCOPE_INCLUDE, self::INCLUDE_ENTRIES); |
|
90 | $params = self::consumeParameterValue($params, self::SCOPE_INCLUDE, EntriesBinding::INCLUDE_LOG); |
@@ 32-36 (lines=5) @@ | ||
29 | public function instantiateObject($databaseRow, $params) |
|
30 | { |
|
31 | $device = Url::SUPPRESS_DEVICE; |
|
32 | if (self::parameterExists($params, self::SCOPE_INCLUDE, self::INCLUDE_DEVICE)) { |
|
33 | $params = self::consumeParameterValue($params, self::SCOPE_INCLUDE, self::INCLUDE_DEVICE); |
|
34 | $params = self::consumeParameterValue($params, self::SCOPE_INCLUDE, DevicesBinding::INCLUDE_URLS); |
|
35 | $device = $this->devices()->get($databaseRow[Device::ID], $params); |
|
36 | } |
|
37 | return new Url($databaseRow, $device); |
|
38 | } |
|
39 |