| @@ 1276-1287 (lines=12) @@ | ||
| 1273 | * @param string $evidence |
|
| 1274 | * @return array Evidence structure |
|
| 1275 | */ |
|
| 1276 | public function getColumnsInfo($evidence = null) |
|
| 1277 | { |
|
| 1278 | $columnsInfo = null; |
|
| 1279 | if (is_null($evidence)) { |
|
| 1280 | $evidence = $this->getEvidence(); |
|
| 1281 | } |
|
| 1282 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1283 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
| 1284 | $columnsInfo = Properties::$$propsName; |
|
| 1285 | } |
|
| 1286 | return $columnsInfo; |
|
| 1287 | } |
|
| 1288 | ||
| 1289 | /** |
|
| 1290 | * Obtain actions for current (or given) evidence |
|
| @@ 1295-1306 (lines=12) @@ | ||
| 1292 | * @param string $evidence |
|
| 1293 | * @return array Evidence structure |
|
| 1294 | */ |
|
| 1295 | public function getActionsInfo($evidence = null) |
|
| 1296 | { |
|
| 1297 | $actionsInfo = null; |
|
| 1298 | if (is_null($evidence)) { |
|
| 1299 | $evidence = $this->getEvidence(); |
|
| 1300 | } |
|
| 1301 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1302 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
| 1303 | $actionsInfo = Actions::$$propsName; |
|
| 1304 | } |
|
| 1305 | return $actionsInfo; |
|
| 1306 | } |
|
| 1307 | ||
| 1308 | /** |
|
| 1309 | * Obtain info for current (or given) evidence |
|