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