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