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