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