| @@ 1550-1560 (lines=11) @@ | ||
| 1547 | * @param string $evidence |
|
| 1548 | * @return array Evidence info |
|
| 1549 | */ |
|
| 1550 | public function getEvidenceInfo($evidence = null) |
|
| 1551 | { |
|
| 1552 | $evidencesInfo = null; |
|
| 1553 | if (is_null($evidence)) { |
|
| 1554 | $evidence = $this->getEvidence(); |
|
| 1555 | } |
|
| 1556 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1557 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1558 | } |
|
| 1559 | return $evidencesInfo; |
|
| 1560 | } |
|
| 1561 | ||
| 1562 | /** |
|
| 1563 | * Obtain name for current (or given) evidence path |
|
| @@ 1568-1578 (lines=11) @@ | ||
| 1565 | * @param string $evidence Evidence Path |
|
| 1566 | * @return array Evidence info |
|
| 1567 | */ |
|
| 1568 | public function getEvidenceName($evidence = null) |
|
| 1569 | { |
|
| 1570 | $evidenceName = null; |
|
| 1571 | if (is_null($evidence)) { |
|
| 1572 | $evidence = $this->getEvidence(); |
|
| 1573 | } |
|
| 1574 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1575 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1576 | } |
|
| 1577 | return $evidenceName; |
|
| 1578 | } |
|
| 1579 | ||
| 1580 | /** |
|
| 1581 | * Perform given action (if availble) on current evidence/record |
|