@@ 1420-1431 (lines=12) @@ | ||
1417 | * @param string $evidence |
|
1418 | * @return array Evidence structure |
|
1419 | */ |
|
1420 | public function getColumnsInfo($evidence = null) |
|
1421 | { |
|
1422 | $columnsInfo = null; |
|
1423 | if (is_null($evidence)) { |
|
1424 | $evidence = $this->getEvidence(); |
|
1425 | } |
|
1426 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1427 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
1428 | $columnsInfo = Properties::$$propsName; |
|
1429 | } |
|
1430 | return $columnsInfo; |
|
1431 | } |
|
1432 | ||
1433 | /** |
|
1434 | * Obtain actions for current (or given) evidence |
|
@@ 1439-1450 (lines=12) @@ | ||
1436 | * @param string $evidence |
|
1437 | * @return array Evidence structure |
|
1438 | */ |
|
1439 | public function getActionsInfo($evidence = null) |
|
1440 | { |
|
1441 | $actionsInfo = null; |
|
1442 | if (is_null($evidence)) { |
|
1443 | $evidence = $this->getEvidence(); |
|
1444 | } |
|
1445 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1446 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
1447 | $actionsInfo = Actions::$$propsName; |
|
1448 | } |
|
1449 | return $actionsInfo; |
|
1450 | } |
|
1451 | ||
1452 | /** |
|
1453 | * Obtain relations for current (or given) evidence |