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