| @@ 1493-1504 (lines=12) @@ | ||
| 1490 | * @param string $evidence |
|
| 1491 | * @return array Evidence structure |
|
| 1492 | */ |
|
| 1493 | public function getColumnsInfo($evidence = null) |
|
| 1494 | { |
|
| 1495 | $columnsInfo = null; |
|
| 1496 | if (is_null($evidence)) { |
|
| 1497 | $evidence = $this->getEvidence(); |
|
| 1498 | } |
|
| 1499 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1500 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
| 1501 | $columnsInfo = Properties::$$propsName; |
|
| 1502 | } |
|
| 1503 | return $columnsInfo; |
|
| 1504 | } |
|
| 1505 | ||
| 1506 | /** |
|
| 1507 | * Obtain actions for current (or given) evidence |
|
| @@ 1512-1523 (lines=12) @@ | ||
| 1509 | * @param string $evidence |
|
| 1510 | * @return array Evidence structure |
|
| 1511 | */ |
|
| 1512 | public function getActionsInfo($evidence = null) |
|
| 1513 | { |
|
| 1514 | $actionsInfo = null; |
|
| 1515 | if (is_null($evidence)) { |
|
| 1516 | $evidence = $this->getEvidence(); |
|
| 1517 | } |
|
| 1518 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1519 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
| 1520 | $actionsInfo = Actions::$$propsName; |
|
| 1521 | } |
|
| 1522 | return $actionsInfo; |
|
| 1523 | } |
|
| 1524 | ||
| 1525 | /** |
|
| 1526 | * Obtain relations for current (or given) evidence |
|