| @@ 1599-1609 (lines=11) @@ | ||
| 1596 | * @param string $evidence |
|
| 1597 | * @return array Evidence info |
|
| 1598 | */ |
|
| 1599 | public function getEvidenceInfo($evidence = null) |
|
| 1600 | { |
|
| 1601 | $evidencesInfo = null; |
|
| 1602 | if (is_null($evidence)) { |
|
| 1603 | $evidence = $this->getEvidence(); |
|
| 1604 | } |
|
| 1605 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1606 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1607 | } |
|
| 1608 | return $evidencesInfo; |
|
| 1609 | } |
|
| 1610 | ||
| 1611 | /** |
|
| 1612 | * Obtain name for current (or given) evidence path |
|
| @@ 1617-1627 (lines=11) @@ | ||
| 1614 | * @param string $evidence Evidence Path |
|
| 1615 | * @return array Evidence info |
|
| 1616 | */ |
|
| 1617 | public function getEvidenceName($evidence = null) |
|
| 1618 | { |
|
| 1619 | $evidenceName = null; |
|
| 1620 | if (is_null($evidence)) { |
|
| 1621 | $evidence = $this->getEvidence(); |
|
| 1622 | } |
|
| 1623 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1624 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1625 | } |
|
| 1626 | return $evidenceName; |
|
| 1627 | } |
|
| 1628 | ||
| 1629 | /** |
|
| 1630 | * Perform given action (if availble) on current evidence/record |
|