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