| @@ 1338-1348 (lines=11) @@ | ||
| 1335 | * @param string $evidence |
|
| 1336 | * @return array Evidence info |
|
| 1337 | */ |
|
| 1338 | public function getEvidenceInfo($evidence = null) |
|
| 1339 | { |
|
| 1340 | $evidencesInfo = null; |
|
| 1341 | if (is_null($evidence)) { |
|
| 1342 | $evidence = $this->getEvidence(); |
|
| 1343 | } |
|
| 1344 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1345 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1346 | } |
|
| 1347 | return $evidencesInfo; |
|
| 1348 | } |
|
| 1349 | ||
| 1350 | /** |
|
| 1351 | * Obtain name for current (or given) evidence path |
|
| @@ 1356-1366 (lines=11) @@ | ||
| 1353 | * @param string $evidence Evidence Path |
|
| 1354 | * @return array Evidence info |
|
| 1355 | */ |
|
| 1356 | public function getEvidenceName($evidence = null) |
|
| 1357 | { |
|
| 1358 | $evidenceName = null; |
|
| 1359 | if (is_null($evidence)) { |
|
| 1360 | $evidence = $this->getEvidence(); |
|
| 1361 | } |
|
| 1362 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1363 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1364 | } |
|
| 1365 | return $evidenceName; |
|
| 1366 | } |
|
| 1367 | ||
| 1368 | /** |
|
| 1369 | * Perform given action (if availble) on current evidence/record |
|