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