| @@ 1512-1523 (lines=12) @@ | ||
| 1509 | * @param string $evidence |
|
| 1510 | * @return array Evidence structure |
|
| 1511 | */ |
|
| 1512 | public function getColumnsInfo($evidence = null) |
|
| 1513 | { |
|
| 1514 | $columnsInfo = null; |
|
| 1515 | if (is_null($evidence)) { |
|
| 1516 | $evidence = $this->getEvidence(); |
|
| 1517 | } |
|
| 1518 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1519 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
| 1520 | $columnsInfo = Properties::$$propsName; |
|
| 1521 | } |
|
| 1522 | return $columnsInfo; |
|
| 1523 | } |
|
| 1524 | ||
| 1525 | /** |
|
| 1526 | * Obtain actions for current (or given) evidence |
|
| @@ 1531-1542 (lines=12) @@ | ||
| 1528 | * @param string $evidence |
|
| 1529 | * @return array Evidence structure |
|
| 1530 | */ |
|
| 1531 | public function getActionsInfo($evidence = null) |
|
| 1532 | { |
|
| 1533 | $actionsInfo = null; |
|
| 1534 | if (is_null($evidence)) { |
|
| 1535 | $evidence = $this->getEvidence(); |
|
| 1536 | } |
|
| 1537 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1538 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
| 1539 | $actionsInfo = Actions::$$propsName; |
|
| 1540 | } |
|
| 1541 | return $actionsInfo; |
|
| 1542 | } |
|
| 1543 | ||
| 1544 | /** |
|
| 1545 | * Obtain relations for current (or given) evidence |
|