| @@ 1490-1500 (lines=11) @@ | ||
| 1487 | * @param string $evidence |
|
| 1488 | * @return array Evidence info |
|
| 1489 | */ |
|
| 1490 | public function getEvidenceInfo($evidence = null) |
|
| 1491 | { |
|
| 1492 | $evidencesInfo = null; |
|
| 1493 | if (is_null($evidence)) { |
|
| 1494 | $evidence = $this->getEvidence(); |
|
| 1495 | } |
|
| 1496 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1497 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1498 | } |
|
| 1499 | return $evidencesInfo; |
|
| 1500 | } |
|
| 1501 | ||
| 1502 | /** |
|
| 1503 | * Obtain name for current (or given) evidence path |
|
| @@ 1508-1518 (lines=11) @@ | ||
| 1505 | * @param string $evidence Evidence Path |
|
| 1506 | * @return array Evidence info |
|
| 1507 | */ |
|
| 1508 | public function getEvidenceName($evidence = null) |
|
| 1509 | { |
|
| 1510 | $evidenceName = null; |
|
| 1511 | if (is_null($evidence)) { |
|
| 1512 | $evidence = $this->getEvidence(); |
|
| 1513 | } |
|
| 1514 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1515 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1516 | } |
|
| 1517 | return $evidenceName; |
|
| 1518 | } |
|
| 1519 | ||
| 1520 | /** |
|
| 1521 | * Perform given action (if availble) on current evidence/record |
|