@@ 1440-1451 (lines=12) @@ | ||
1437 | * @param string $evidence |
|
1438 | * @return array Evidence structure |
|
1439 | */ |
|
1440 | public function getColumnsInfo($evidence = null) |
|
1441 | { |
|
1442 | $columnsInfo = null; |
|
1443 | if (is_null($evidence)) { |
|
1444 | $evidence = $this->getEvidence(); |
|
1445 | } |
|
1446 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1447 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
1448 | $columnsInfo = Properties::$$propsName; |
|
1449 | } |
|
1450 | return $columnsInfo; |
|
1451 | } |
|
1452 | ||
1453 | /** |
|
1454 | * Obtain actions for current (or given) evidence |
|
@@ 1459-1470 (lines=12) @@ | ||
1456 | * @param string $evidence |
|
1457 | * @return array Evidence structure |
|
1458 | */ |
|
1459 | public function getActionsInfo($evidence = null) |
|
1460 | { |
|
1461 | $actionsInfo = null; |
|
1462 | if (is_null($evidence)) { |
|
1463 | $evidence = $this->getEvidence(); |
|
1464 | } |
|
1465 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1466 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
1467 | $actionsInfo = Actions::$$propsName; |
|
1468 | } |
|
1469 | return $actionsInfo; |
|
1470 | } |
|
1471 | ||
1472 | /** |
|
1473 | * Obtain relations for current (or given) evidence |