| @@ 1688-1698 (lines=11) @@ | ||
| 1685 | * @param string $evidence |
|
| 1686 | * @return array Evidence info |
|
| 1687 | */ |
|
| 1688 | public function getEvidenceInfo($evidence = null) |
|
| 1689 | { |
|
| 1690 | $evidencesInfo = null; |
|
| 1691 | if (is_null($evidence)) { |
|
| 1692 | $evidence = $this->getEvidence(); |
|
| 1693 | } |
|
| 1694 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1695 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1696 | } |
|
| 1697 | return $evidencesInfo; |
|
| 1698 | } |
|
| 1699 | ||
| 1700 | /** |
|
| 1701 | * Obtain name for current (or given) evidence path |
|
| @@ 1706-1716 (lines=11) @@ | ||
| 1703 | * @param string $evidence Evidence Path |
|
| 1704 | * @return array Evidence info |
|
| 1705 | */ |
|
| 1706 | public function getEvidenceName($evidence = null) |
|
| 1707 | { |
|
| 1708 | $evidenceName = null; |
|
| 1709 | if (is_null($evidence)) { |
|
| 1710 | $evidence = $this->getEvidence(); |
|
| 1711 | } |
|
| 1712 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1713 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1714 | } |
|
| 1715 | return $evidenceName; |
|
| 1716 | } |
|
| 1717 | ||
| 1718 | /** |
|
| 1719 | * Perform given action (if availble) on current evidence/record |
|