| @@ 1518-1528 (lines=11) @@ | ||
| 1515 | * @param string $evidence |
|
| 1516 | * @return array Evidence info |
|
| 1517 | */ |
|
| 1518 | public function getEvidenceInfo($evidence = null) |
|
| 1519 | { |
|
| 1520 | $evidencesInfo = null; |
|
| 1521 | if (is_null($evidence)) { |
|
| 1522 | $evidence = $this->getEvidence(); |
|
| 1523 | } |
|
| 1524 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1525 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1526 | } |
|
| 1527 | return $evidencesInfo; |
|
| 1528 | } |
|
| 1529 | ||
| 1530 | /** |
|
| 1531 | * Obtain name for current (or given) evidence path |
|
| @@ 1536-1546 (lines=11) @@ | ||
| 1533 | * @param string $evidence Evidence Path |
|
| 1534 | * @return array Evidence info |
|
| 1535 | */ |
|
| 1536 | public function getEvidenceName($evidence = null) |
|
| 1537 | { |
|
| 1538 | $evidenceName = null; |
|
| 1539 | if (is_null($evidence)) { |
|
| 1540 | $evidence = $this->getEvidence(); |
|
| 1541 | } |
|
| 1542 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1543 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1544 | } |
|
| 1545 | return $evidenceName; |
|
| 1546 | } |
|
| 1547 | ||
| 1548 | /** |
|
| 1549 | * Perform given action (if availble) on current evidence/record |
|