| @@ 1474-1484 (lines=11) @@ | ||
| 1471 | * @param string $evidence |
|
| 1472 | * @return array Evidence info |
|
| 1473 | */ |
|
| 1474 | public function getEvidenceInfo($evidence = null) |
|
| 1475 | { |
|
| 1476 | $evidencesInfo = null; |
|
| 1477 | if (is_null($evidence)) { |
|
| 1478 | $evidence = $this->getEvidence(); |
|
| 1479 | } |
|
| 1480 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1481 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1482 | } |
|
| 1483 | return $evidencesInfo; |
|
| 1484 | } |
|
| 1485 | ||
| 1486 | /** |
|
| 1487 | * Obtain name for current (or given) evidence path |
|
| @@ 1492-1502 (lines=11) @@ | ||
| 1489 | * @param string $evidence Evidence Path |
|
| 1490 | * @return array Evidence info |
|
| 1491 | */ |
|
| 1492 | public function getEvidenceName($evidence = null) |
|
| 1493 | { |
|
| 1494 | $evidenceName = null; |
|
| 1495 | if (is_null($evidence)) { |
|
| 1496 | $evidence = $this->getEvidence(); |
|
| 1497 | } |
|
| 1498 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1499 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1500 | } |
|
| 1501 | return $evidenceName; |
|
| 1502 | } |
|
| 1503 | ||
| 1504 | /** |
|
| 1505 | * Perform given action (if availble) on current evidence/record |
|