| @@ 1523-1533 (lines=11) @@ | ||
| 1520 | * @param string $evidence | |
| 1521 | * @return array Evidence info | |
| 1522 | */ | |
| 1523 | public function getEvidenceInfo($evidence = null) | |
| 1524 |     { | |
| 1525 | $evidencesInfo = null; | |
| 1526 |         if (is_null($evidence)) { | |
| 1527 | $evidence = $this->getEvidence(); | |
| 1528 | } | |
| 1529 |         if (isset(EvidenceList::$evidences[$evidence])) { | |
| 1530 | $evidencesInfo = EvidenceList::$evidences[$evidence]; | |
| 1531 | } | |
| 1532 | return $evidencesInfo; | |
| 1533 | } | |
| 1534 | ||
| 1535 | /** | |
| 1536 | * Obtain name for current (or given) evidence path | |
| @@ 1541-1551 (lines=11) @@ | ||
| 1538 | * @param string $evidence Evidence Path | |
| 1539 | * @return array Evidence info | |
| 1540 | */ | |
| 1541 | public function getEvidenceName($evidence = null) | |
| 1542 |     { | |
| 1543 | $evidenceName = null; | |
| 1544 |         if (is_null($evidence)) { | |
| 1545 | $evidence = $this->getEvidence(); | |
| 1546 | } | |
| 1547 |         if (isset(EvidenceList::$name[$evidence])) { | |
| 1548 | $evidenceName = EvidenceList::$name[$evidence]; | |
| 1549 | } | |
| 1550 | return $evidenceName; | |
| 1551 | } | |
| 1552 | ||
| 1553 | /** | |
| 1554 | * Perform given action (if availble) on current evidence/record | |