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