| @@ 1390-1400 (lines=11) @@ | ||
| 1387 | * @param string $evidence |
|
| 1388 | * @return array Evidence info |
|
| 1389 | */ |
|
| 1390 | public function getEvidenceInfo($evidence = null) |
|
| 1391 | { |
|
| 1392 | $evidencesInfo = null; |
|
| 1393 | if (is_null($evidence)) { |
|
| 1394 | $evidence = $this->getEvidence(); |
|
| 1395 | } |
|
| 1396 | if (isset(EvidenceList::$evidences[$evidence])) { |
|
| 1397 | $evidencesInfo = EvidenceList::$evidences[$evidence]; |
|
| 1398 | } |
|
| 1399 | return $evidencesInfo; |
|
| 1400 | } |
|
| 1401 | ||
| 1402 | /** |
|
| 1403 | * Obtain name for current (or given) evidence path |
|
| @@ 1408-1418 (lines=11) @@ | ||
| 1405 | * @param string $evidence Evidence Path |
|
| 1406 | * @return array Evidence info |
|
| 1407 | */ |
|
| 1408 | public function getEvidenceName($evidence = null) |
|
| 1409 | { |
|
| 1410 | $evidenceName = null; |
|
| 1411 | if (is_null($evidence)) { |
|
| 1412 | $evidence = $this->getEvidence(); |
|
| 1413 | } |
|
| 1414 | if (isset(EvidenceList::$name[$evidence])) { |
|
| 1415 | $evidenceName = EvidenceList::$name[$evidence]; |
|
| 1416 | } |
|
| 1417 | return $evidenceName; |
|
| 1418 | } |
|
| 1419 | ||
| 1420 | /** |
|
| 1421 | * Perform given action (if availble) on current evidence/record |
|