| @@ 1466-1477 (lines=12) @@ | ||
| 1463 | * @param string $evidence | |
| 1464 | * @return array Evidence structure | |
| 1465 | */ | |
| 1466 | public function getColumnsInfo($evidence = null) | |
| 1467 |     { | |
| 1468 | $columnsInfo = null; | |
| 1469 |         if (is_null($evidence)) { | |
| 1470 | $evidence = $this->getEvidence(); | |
| 1471 | } | |
| 1472 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); | |
| 1473 |         if (isset(\FlexiPeeHP\Properties::$$propsName)) { | |
| 1474 | $columnsInfo = Properties::$$propsName; | |
| 1475 | } | |
| 1476 | return $columnsInfo; | |
| 1477 | } | |
| 1478 | ||
| 1479 | /** | |
| 1480 | * Obtain actions for current (or given) evidence | |
| @@ 1485-1496 (lines=12) @@ | ||
| 1482 | * @param string $evidence | |
| 1483 | * @return array Evidence structure | |
| 1484 | */ | |
| 1485 | public function getActionsInfo($evidence = null) | |
| 1486 |     { | |
| 1487 | $actionsInfo = null; | |
| 1488 |         if (is_null($evidence)) { | |
| 1489 | $evidence = $this->getEvidence(); | |
| 1490 | } | |
| 1491 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); | |
| 1492 |         if (isset(\FlexiPeeHP\Actions::$$propsName)) { | |
| 1493 | $actionsInfo = Actions::$$propsName; | |
| 1494 | } | |
| 1495 | return $actionsInfo; | |
| 1496 | } | |
| 1497 | ||
| 1498 | /** | |
| 1499 | * Obtain relations for current (or given) evidence | |