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