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