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