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