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