@@ 1525-1536 (lines=12) @@ | ||
1522 | * @param string $evidence |
|
1523 | * @return array Evidence structure |
|
1524 | */ |
|
1525 | public function getColumnsInfo($evidence = null) |
|
1526 | { |
|
1527 | $columnsInfo = null; |
|
1528 | if (is_null($evidence)) { |
|
1529 | $evidence = $this->getEvidence(); |
|
1530 | } |
|
1531 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1532 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
1533 | $columnsInfo = Properties::$$propsName; |
|
1534 | } |
|
1535 | return $columnsInfo; |
|
1536 | } |
|
1537 | ||
1538 | /** |
|
1539 | * Obtain actions for current (or given) evidence |
|
@@ 1544-1555 (lines=12) @@ | ||
1541 | * @param string $evidence |
|
1542 | * @return array Evidence structure |
|
1543 | */ |
|
1544 | public function getActionsInfo($evidence = null) |
|
1545 | { |
|
1546 | $actionsInfo = null; |
|
1547 | if (is_null($evidence)) { |
|
1548 | $evidence = $this->getEvidence(); |
|
1549 | } |
|
1550 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1551 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
1552 | $actionsInfo = Actions::$$propsName; |
|
1553 | } |
|
1554 | return $actionsInfo; |
|
1555 | } |
|
1556 | ||
1557 | /** |
|
1558 | * Obtain relations for current (or given) evidence |