| @@ 1366-1376 (lines=11) @@ | ||
| 1363 | * @param string $evidence |
|
| 1364 | * @return array Evidence info |
|
| 1365 | */ |
|
| 1366 | public function getEvidenceInfo($evidence = null) |
|
| 1367 | { |
|
| 1368 | $evidencesInfo = null; |
|
| 1369 | if (is_null($evidence)) { |
|
| 1370 | $evidence = $this->getEvidence(); |
|
| 1371 | } |
|
| 1372 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1373 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1374 | } |
|
| 1375 | return $evidencesInfo; |
|
| 1376 | } |
|
| 1377 | ||
| 1378 | /** |
|
| 1379 | * Obtain name for current (or given) evidence path |
|
| @@ 1384-1394 (lines=11) @@ | ||
| 1381 | * @param string $evidence Evidence Path |
|
| 1382 | * @return array Evidence info |
|
| 1383 | */ |
|
| 1384 | public function getEvidenceName($evidence = null) |
|
| 1385 | { |
|
| 1386 | $evidenceName = null; |
|
| 1387 | if (is_null($evidence)) { |
|
| 1388 | $evidence = $this->getEvidence(); |
|
| 1389 | } |
|
| 1390 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1391 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1392 | } |
|
| 1393 | return $evidenceName; |
|
| 1394 | } |
|
| 1395 | ||
| 1396 | /** |
|
| 1397 | * Perform given action (if availble) on current evidence/record |
|