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