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