| @@ 1537-1547 (lines=11) @@ | ||
| 1534 | * @param string $evidence |
|
| 1535 | * @return array Evidence info |
|
| 1536 | */ |
|
| 1537 | public function getEvidenceInfo($evidence = null) |
|
| 1538 | { |
|
| 1539 | $evidencesInfo = null; |
|
| 1540 | if (is_null($evidence)) { |
|
| 1541 | $evidence = $this->getEvidence(); |
|
| 1542 | } |
|
| 1543 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1544 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1545 | } |
|
| 1546 | return $evidencesInfo; |
|
| 1547 | } |
|
| 1548 | ||
| 1549 | /** |
|
| 1550 | * Obtain name for current (or given) evidence path |
|
| @@ 1555-1565 (lines=11) @@ | ||
| 1552 | * @param string $evidence Evidence Path |
|
| 1553 | * @return array Evidence info |
|
| 1554 | */ |
|
| 1555 | public function getEvidenceName($evidence = null) |
|
| 1556 | { |
|
| 1557 | $evidenceName = null; |
|
| 1558 | if (is_null($evidence)) { |
|
| 1559 | $evidence = $this->getEvidence(); |
|
| 1560 | } |
|
| 1561 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1562 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1563 | } |
|
| 1564 | return $evidenceName; |
|
| 1565 | } |
|
| 1566 | ||
| 1567 | /** |
|
| 1568 | * Perform given action (if availble) on current evidence/record |
|