| @@ 1477-1487 (lines=11) @@ | ||
| 1474 | * @param string $evidence |
|
| 1475 | * @return array Evidence info |
|
| 1476 | */ |
|
| 1477 | public function getEvidenceInfo($evidence = null) |
|
| 1478 | { |
|
| 1479 | $evidencesInfo = null; |
|
| 1480 | if (is_null($evidence)) { |
|
| 1481 | $evidence = $this->getEvidence(); |
|
| 1482 | } |
|
| 1483 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1484 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1485 | } |
|
| 1486 | return $evidencesInfo; |
|
| 1487 | } |
|
| 1488 | ||
| 1489 | /** |
|
| 1490 | * Obtain name for current (or given) evidence path |
|
| @@ 1495-1505 (lines=11) @@ | ||
| 1492 | * @param string $evidence Evidence Path |
|
| 1493 | * @return array Evidence info |
|
| 1494 | */ |
|
| 1495 | public function getEvidenceName($evidence = null) |
|
| 1496 | { |
|
| 1497 | $evidenceName = null; |
|
| 1498 | if (is_null($evidence)) { |
|
| 1499 | $evidence = $this->getEvidence(); |
|
| 1500 | } |
|
| 1501 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1502 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1503 | } |
|
| 1504 | return $evidenceName; |
|
| 1505 | } |
|
| 1506 | ||
| 1507 | /** |
|
| 1508 | * Perform given action (if availble) on current evidence/record |
|