| @@ 1314-1324 (lines=11) @@ | ||
| 1311 | * @param string $evidence |
|
| 1312 | * @return array Evidence info |
|
| 1313 | */ |
|
| 1314 | public function getEvidenceInfo($evidence = null) |
|
| 1315 | { |
|
| 1316 | $evidencesInfo = null; |
|
| 1317 | if (is_null($evidence)) { |
|
| 1318 | $evidence = $this->getEvidence(); |
|
| 1319 | } |
|
| 1320 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1321 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1322 | } |
|
| 1323 | return $evidencesInfo; |
|
| 1324 | } |
|
| 1325 | ||
| 1326 | /** |
|
| 1327 | * Obtain name for current (or given) evidence path |
|
| @@ 1332-1342 (lines=11) @@ | ||
| 1329 | * @param string $evidence Evidence Path |
|
| 1330 | * @return array Evidence info |
|
| 1331 | */ |
|
| 1332 | public function getEvidenceName($evidence = null) |
|
| 1333 | { |
|
| 1334 | $evidenceName = null; |
|
| 1335 | if (is_null($evidence)) { |
|
| 1336 | $evidence = $this->getEvidence(); |
|
| 1337 | } |
|
| 1338 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1339 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1340 | } |
|
| 1341 | return $evidenceName; |
|
| 1342 | } |
|
| 1343 | ||
| 1344 | /** |
|
| 1345 | * Perform given action (if availble) on current evidence/record |
|