| @@ 1542-1553 (lines=12) @@ | ||
| 1539 | * @param string $evidence |
|
| 1540 | * @return array Evidence structure |
|
| 1541 | */ |
|
| 1542 | public function getColumnsInfo($evidence = null) |
|
| 1543 | { |
|
| 1544 | $columnsInfo = null; |
|
| 1545 | if (is_null($evidence)) { |
|
| 1546 | $evidence = $this->getEvidence(); |
|
| 1547 | } |
|
| 1548 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1549 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
| 1550 | $columnsInfo = Properties::$$propsName; |
|
| 1551 | } |
|
| 1552 | return $columnsInfo; |
|
| 1553 | } |
|
| 1554 | ||
| 1555 | /** |
|
| 1556 | * Obtain actions for current (or given) evidence |
|
| @@ 1561-1572 (lines=12) @@ | ||
| 1558 | * @param string $evidence |
|
| 1559 | * @return array Evidence structure |
|
| 1560 | */ |
|
| 1561 | public function getActionsInfo($evidence = null) |
|
| 1562 | { |
|
| 1563 | $actionsInfo = null; |
|
| 1564 | if (is_null($evidence)) { |
|
| 1565 | $evidence = $this->getEvidence(); |
|
| 1566 | } |
|
| 1567 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1568 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
| 1569 | $actionsInfo = Actions::$$propsName; |
|
| 1570 | } |
|
| 1571 | return $actionsInfo; |
|
| 1572 | } |
|
| 1573 | ||
| 1574 | /** |
|
| 1575 | * Obtain relations for current (or given) evidence |
|