| @@ 1480-1491 (lines=12) @@ | ||
| 1477 | * @param string $evidence |
|
| 1478 | * @return array Evidence structure |
|
| 1479 | */ |
|
| 1480 | public function getColumnsInfo($evidence = null) |
|
| 1481 | { |
|
| 1482 | $columnsInfo = null; |
|
| 1483 | if (is_null($evidence)) { |
|
| 1484 | $evidence = $this->getEvidence(); |
|
| 1485 | } |
|
| 1486 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1487 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
| 1488 | $columnsInfo = Properties::$$propsName; |
|
| 1489 | } |
|
| 1490 | return $columnsInfo; |
|
| 1491 | } |
|
| 1492 | ||
| 1493 | /** |
|
| 1494 | * Obtain actions for current (or given) evidence |
|
| @@ 1499-1510 (lines=12) @@ | ||
| 1496 | * @param string $evidence |
|
| 1497 | * @return array Evidence structure |
|
| 1498 | */ |
|
| 1499 | public function getActionsInfo($evidence = null) |
|
| 1500 | { |
|
| 1501 | $actionsInfo = null; |
|
| 1502 | if (is_null($evidence)) { |
|
| 1503 | $evidence = $this->getEvidence(); |
|
| 1504 | } |
|
| 1505 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1506 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
| 1507 | $actionsInfo = Actions::$$propsName; |
|
| 1508 | } |
|
| 1509 | return $actionsInfo; |
|
| 1510 | } |
|
| 1511 | ||
| 1512 | /** |
|
| 1513 | * Obtain relations for current (or given) evidence |
|