@@ 1461-1472 (lines=12) @@ | ||
1458 | * @param string $evidence |
|
1459 | * @return array Evidence structure |
|
1460 | */ |
|
1461 | public function getColumnsInfo($evidence = null) |
|
1462 | { |
|
1463 | $columnsInfo = null; |
|
1464 | if (is_null($evidence)) { |
|
1465 | $evidence = $this->getEvidence(); |
|
1466 | } |
|
1467 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1468 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
1469 | $columnsInfo = Properties::$$propsName; |
|
1470 | } |
|
1471 | return $columnsInfo; |
|
1472 | } |
|
1473 | ||
1474 | /** |
|
1475 | * Obtain actions for current (or given) evidence |
|
@@ 1480-1491 (lines=12) @@ | ||
1477 | * @param string $evidence |
|
1478 | * @return array Evidence structure |
|
1479 | */ |
|
1480 | public function getActionsInfo($evidence = null) |
|
1481 | { |
|
1482 | $actionsInfo = null; |
|
1483 | if (is_null($evidence)) { |
|
1484 | $evidence = $this->getEvidence(); |
|
1485 | } |
|
1486 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1487 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
1488 | $actionsInfo = Actions::$$propsName; |
|
1489 | } |
|
1490 | return $actionsInfo; |
|
1491 | } |
|
1492 | ||
1493 | /** |
|
1494 | * Obtain relations for current (or given) evidence |