| @@ 1576-1586 (lines=11) @@ | ||
| 1573 | * @param string $evidence |
|
| 1574 | * @return array Evidence info |
|
| 1575 | */ |
|
| 1576 | public function getEvidenceInfo($evidence = null) |
|
| 1577 | { |
|
| 1578 | $evidencesInfo = null; |
|
| 1579 | if (is_null($evidence)) { |
|
| 1580 | $evidence = $this->getEvidence(); |
|
| 1581 | } |
|
| 1582 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1583 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1584 | } |
|
| 1585 | return $evidencesInfo; |
|
| 1586 | } |
|
| 1587 | ||
| 1588 | /** |
|
| 1589 | * Obtain name for current (or given) evidence path |
|
| @@ 1594-1604 (lines=11) @@ | ||
| 1591 | * @param string $evidence Evidence Path |
|
| 1592 | * @return array Evidence info |
|
| 1593 | */ |
|
| 1594 | public function getEvidenceName($evidence = null) |
|
| 1595 | { |
|
| 1596 | $evidenceName = null; |
|
| 1597 | if (is_null($evidence)) { |
|
| 1598 | $evidence = $this->getEvidence(); |
|
| 1599 | } |
|
| 1600 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1601 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1602 | } |
|
| 1603 | return $evidenceName; |
|
| 1604 | } |
|
| 1605 | ||
| 1606 | /** |
|
| 1607 | * Perform given action (if availble) on current evidence/record |
|