| @@ 1492-1502 (lines=11) @@ | ||
| 1489 | * @param string $evidence |
|
| 1490 | * @return array Evidence info |
|
| 1491 | */ |
|
| 1492 | public function getEvidenceInfo($evidence = null) |
|
| 1493 | { |
|
| 1494 | $evidencesInfo = null; |
|
| 1495 | if (is_null($evidence)) { |
|
| 1496 | $evidence = $this->getEvidence(); |
|
| 1497 | } |
|
| 1498 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1499 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1500 | } |
|
| 1501 | return $evidencesInfo; |
|
| 1502 | } |
|
| 1503 | ||
| 1504 | /** |
|
| 1505 | * Obtain name for current (or given) evidence path |
|
| @@ 1510-1520 (lines=11) @@ | ||
| 1507 | * @param string $evidence Evidence Path |
|
| 1508 | * @return array Evidence info |
|
| 1509 | */ |
|
| 1510 | public function getEvidenceName($evidence = null) |
|
| 1511 | { |
|
| 1512 | $evidenceName = null; |
|
| 1513 | if (is_null($evidence)) { |
|
| 1514 | $evidence = $this->getEvidence(); |
|
| 1515 | } |
|
| 1516 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1517 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1518 | } |
|
| 1519 | return $evidenceName; |
|
| 1520 | } |
|
| 1521 | ||
| 1522 | /** |
|
| 1523 | * Perform given action (if availble) on current evidence/record |
|