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