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