| @@ 1527-1537 (lines=11) @@ | ||
| 1524 | * @param string $evidence |
|
| 1525 | * @return array Evidence info |
|
| 1526 | */ |
|
| 1527 | public function getEvidenceInfo($evidence = null) |
|
| 1528 | { |
|
| 1529 | $evidencesInfo = null; |
|
| 1530 | if (is_null($evidence)) { |
|
| 1531 | $evidence = $this->getEvidence(); |
|
| 1532 | } |
|
| 1533 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1534 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1535 | } |
|
| 1536 | return $evidencesInfo; |
|
| 1537 | } |
|
| 1538 | ||
| 1539 | /** |
|
| 1540 | * Obtain name for current (or given) evidence path |
|
| @@ 1545-1555 (lines=11) @@ | ||
| 1542 | * @param string $evidence Evidence Path |
|
| 1543 | * @return array Evidence info |
|
| 1544 | */ |
|
| 1545 | public function getEvidenceName($evidence = null) |
|
| 1546 | { |
|
| 1547 | $evidenceName = null; |
|
| 1548 | if (is_null($evidence)) { |
|
| 1549 | $evidence = $this->getEvidence(); |
|
| 1550 | } |
|
| 1551 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1552 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1553 | } |
|
| 1554 | return $evidenceName; |
|
| 1555 | } |
|
| 1556 | ||
| 1557 | /** |
|
| 1558 | * Perform given action (if availble) on current evidence/record |
|