| @@ 1514-1524 (lines=11) @@ | ||
| 1511 | * @param string $evidence |
|
| 1512 | * @return array Evidence info |
|
| 1513 | */ |
|
| 1514 | public function getEvidenceInfo($evidence = null) |
|
| 1515 | { |
|
| 1516 | $evidencesInfo = null; |
|
| 1517 | if (is_null($evidence)) { |
|
| 1518 | $evidence = $this->getEvidence(); |
|
| 1519 | } |
|
| 1520 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1521 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1522 | } |
|
| 1523 | return $evidencesInfo; |
|
| 1524 | } |
|
| 1525 | ||
| 1526 | /** |
|
| 1527 | * Obtain name for current (or given) evidence path |
|
| @@ 1532-1542 (lines=11) @@ | ||
| 1529 | * @param string $evidence Evidence Path |
|
| 1530 | * @return array Evidence info |
|
| 1531 | */ |
|
| 1532 | public function getEvidenceName($evidence = null) |
|
| 1533 | { |
|
| 1534 | $evidenceName = null; |
|
| 1535 | if (is_null($evidence)) { |
|
| 1536 | $evidence = $this->getEvidence(); |
|
| 1537 | } |
|
| 1538 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1539 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1540 | } |
|
| 1541 | return $evidenceName; |
|
| 1542 | } |
|
| 1543 | ||
| 1544 | /** |
|
| 1545 | * Perform given action (if availble) on current evidence/record |
|