| @@ 1507-1517 (lines=11) @@ | ||
| 1504 | * @param string $evidence |
|
| 1505 | * @return array Evidence info |
|
| 1506 | */ |
|
| 1507 | public function getEvidenceInfo($evidence = null) |
|
| 1508 | { |
|
| 1509 | $evidencesInfo = null; |
|
| 1510 | if (is_null($evidence)) { |
|
| 1511 | $evidence = $this->getEvidence(); |
|
| 1512 | } |
|
| 1513 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1514 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1515 | } |
|
| 1516 | return $evidencesInfo; |
|
| 1517 | } |
|
| 1518 | ||
| 1519 | /** |
|
| 1520 | * Obtain name for current (or given) evidence path |
|
| @@ 1525-1535 (lines=11) @@ | ||
| 1522 | * @param string $evidence Evidence Path |
|
| 1523 | * @return array Evidence info |
|
| 1524 | */ |
|
| 1525 | public function getEvidenceName($evidence = null) |
|
| 1526 | { |
|
| 1527 | $evidenceName = null; |
|
| 1528 | if (is_null($evidence)) { |
|
| 1529 | $evidence = $this->getEvidence(); |
|
| 1530 | } |
|
| 1531 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1532 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1533 | } |
|
| 1534 | return $evidenceName; |
|
| 1535 | } |
|
| 1536 | ||
| 1537 | /** |
|
| 1538 | * Perform given action (if availble) on current evidence/record |
|