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