| @@ 1458-1468 (lines=11) @@ | ||
| 1455 | * @param string $evidence |
|
| 1456 | * @return array Evidence info |
|
| 1457 | */ |
|
| 1458 | public function getEvidenceInfo($evidence = null) |
|
| 1459 | { |
|
| 1460 | $evidencesInfo = null; |
|
| 1461 | if (is_null($evidence)) { |
|
| 1462 | $evidence = $this->getEvidence(); |
|
| 1463 | } |
|
| 1464 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1465 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1466 | } |
|
| 1467 | return $evidencesInfo; |
|
| 1468 | } |
|
| 1469 | ||
| 1470 | /** |
|
| 1471 | * Obtain name for current (or given) evidence path |
|
| @@ 1476-1486 (lines=11) @@ | ||
| 1473 | * @param string $evidence Evidence Path |
|
| 1474 | * @return array Evidence info |
|
| 1475 | */ |
|
| 1476 | public function getEvidenceName($evidence = null) |
|
| 1477 | { |
|
| 1478 | $evidenceName = null; |
|
| 1479 | if (is_null($evidence)) { |
|
| 1480 | $evidence = $this->getEvidence(); |
|
| 1481 | } |
|
| 1482 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1483 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1484 | } |
|
| 1485 | return $evidenceName; |
|
| 1486 | } |
|
| 1487 | ||
| 1488 | /** |
|
| 1489 | * Perform given action (if availble) on current evidence/record |
|