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