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