| @@ 1569-1579 (lines=11) @@ | ||
| 1566 | * @param string $evidence |
|
| 1567 | * @return array Evidence info |
|
| 1568 | */ |
|
| 1569 | public function getEvidenceInfo($evidence = null) |
|
| 1570 | { |
|
| 1571 | $evidencesInfo = null; |
|
| 1572 | if (is_null($evidence)) { |
|
| 1573 | $evidence = $this->getEvidence(); |
|
| 1574 | } |
|
| 1575 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1576 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1577 | } |
|
| 1578 | return $evidencesInfo; |
|
| 1579 | } |
|
| 1580 | ||
| 1581 | /** |
|
| 1582 | * Obtain name for current (or given) evidence path |
|
| @@ 1587-1597 (lines=11) @@ | ||
| 1584 | * @param string $evidence Evidence Path |
|
| 1585 | * @return array Evidence info |
|
| 1586 | */ |
|
| 1587 | public function getEvidenceName($evidence = null) |
|
| 1588 | { |
|
| 1589 | $evidenceName = null; |
|
| 1590 | if (is_null($evidence)) { |
|
| 1591 | $evidence = $this->getEvidence(); |
|
| 1592 | } |
|
| 1593 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1594 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1595 | } |
|
| 1596 | return $evidenceName; |
|
| 1597 | } |
|
| 1598 | ||
| 1599 | /** |
|
| 1600 | * Perform given action (if availble) on current evidence/record |
|