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