| @@ 1323-1333 (lines=11) @@ | ||
| 1320 | * @param string $evidence | |
| 1321 | * @return array Evidence info | |
| 1322 | */ | |
| 1323 | public function getEvidenceInfo($evidence = null) | |
| 1324 |     { | |
| 1325 | $evidencesInfo = null; | |
| 1326 |         if (is_null($evidence)) { | |
| 1327 | $evidence = $this->getEvidence(); | |
| 1328 | } | |
| 1329 |         if (isset(EvidenceList::$evidences[$evidence])) { | |
| 1330 | $evidencesInfo = EvidenceList::$evidences[$evidence]; | |
| 1331 | } | |
| 1332 | return $evidencesInfo; | |
| 1333 | } | |
| 1334 | ||
| 1335 | /** | |
| 1336 | * Obtain name for current (or given) evidence path | |
| @@ 1341-1351 (lines=11) @@ | ||
| 1338 | * @param string $evidence Evidence Path | |
| 1339 | * @return array Evidence info | |
| 1340 | */ | |
| 1341 | public function getEvidenceName($evidence = null) | |
| 1342 |     { | |
| 1343 | $evidenceName = null; | |
| 1344 |         if (is_null($evidence)) { | |
| 1345 | $evidence = $this->getEvidence(); | |
| 1346 | } | |
| 1347 |         if (isset(EvidenceList::$name[$evidence])) { | |
| 1348 | $evidenceName = EvidenceList::$name[$evidence]; | |
| 1349 | } | |
| 1350 | return $evidenceName; | |
| 1351 | } | |
| 1352 | ||
| 1353 | /** | |
| 1354 | * Perform given action (if availble) on current evidence/record | |