| @@ 1629-1639 (lines=11) @@ | ||
| 1626 | * @param string $evidence |
|
| 1627 | * @return array Evidence info |
|
| 1628 | */ |
|
| 1629 | public function getEvidenceInfo($evidence = null) |
|
| 1630 | { |
|
| 1631 | $evidencesInfo = null; |
|
| 1632 | if (is_null($evidence)) { |
|
| 1633 | $evidence = $this->getEvidence(); |
|
| 1634 | } |
|
| 1635 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1636 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1637 | } |
|
| 1638 | return $evidencesInfo; |
|
| 1639 | } |
|
| 1640 | ||
| 1641 | /** |
|
| 1642 | * Obtain name for current (or given) evidence path |
|
| @@ 1647-1657 (lines=11) @@ | ||
| 1644 | * @param string $evidence Evidence Path |
|
| 1645 | * @return array Evidence info |
|
| 1646 | */ |
|
| 1647 | public function getEvidenceName($evidence = null) |
|
| 1648 | { |
|
| 1649 | $evidenceName = null; |
|
| 1650 | if (is_null($evidence)) { |
|
| 1651 | $evidence = $this->getEvidence(); |
|
| 1652 | } |
|
| 1653 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1654 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1655 | } |
|
| 1656 | return $evidenceName; |
|
| 1657 | } |
|
| 1658 | ||
| 1659 | /** |
|
| 1660 | * Perform given action (if availble) on current evidence/record |
|