@@ 1309-1320 (lines=12) @@ | ||
1306 | * @param string $evidence |
|
1307 | * @return array Evidence structure |
|
1308 | */ |
|
1309 | public function getColumnsInfo($evidence = null) |
|
1310 | { |
|
1311 | $columnsInfo = null; |
|
1312 | if (is_null($evidence)) { |
|
1313 | $evidence = $this->getEvidence(); |
|
1314 | } |
|
1315 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1316 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
1317 | $columnsInfo = Properties::$$propsName; |
|
1318 | } |
|
1319 | return $columnsInfo; |
|
1320 | } |
|
1321 | ||
1322 | /** |
|
1323 | * Obtain actions for current (or given) evidence |
|
@@ 1328-1339 (lines=12) @@ | ||
1325 | * @param string $evidence |
|
1326 | * @return array Evidence structure |
|
1327 | */ |
|
1328 | public function getActionsInfo($evidence = null) |
|
1329 | { |
|
1330 | $actionsInfo = null; |
|
1331 | if (is_null($evidence)) { |
|
1332 | $evidence = $this->getEvidence(); |
|
1333 | } |
|
1334 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1335 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
1336 | $actionsInfo = Actions::$$propsName; |
|
1337 | } |
|
1338 | return $actionsInfo; |
|
1339 | } |
|
1340 | ||
1341 | /** |
|
1342 | * Obtain relations for current (or given) evidence |