@@ 1285-1296 (lines=12) @@ | ||
1282 | * @param string $evidence |
|
1283 | * @return array Evidence structure |
|
1284 | */ |
|
1285 | public function getColumnsInfo($evidence = null) |
|
1286 | { |
|
1287 | $columnsInfo = null; |
|
1288 | if (is_null($evidence)) { |
|
1289 | $evidence = $this->getEvidence(); |
|
1290 | } |
|
1291 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1292 | if (isset(\FlexiPeeHP\Properties::$$propsName)) { |
|
1293 | $columnsInfo = Properties::$$propsName; |
|
1294 | } |
|
1295 | return $columnsInfo; |
|
1296 | } |
|
1297 | ||
1298 | /** |
|
1299 | * Obtain actions for current (or given) evidence |
|
@@ 1304-1315 (lines=12) @@ | ||
1301 | * @param string $evidence |
|
1302 | * @return array Evidence structure |
|
1303 | */ |
|
1304 | public function getActionsInfo($evidence = null) |
|
1305 | { |
|
1306 | $actionsInfo = null; |
|
1307 | if (is_null($evidence)) { |
|
1308 | $evidence = $this->getEvidence(); |
|
1309 | } |
|
1310 | $propsName = lcfirst(FlexiBeeRO::evidenceToClassName($evidence)); |
|
1311 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
1312 | $actionsInfo = Actions::$$propsName; |
|
1313 | } |
|
1314 | return $actionsInfo; |
|
1315 | } |
|
1316 | ||
1317 | /** |
|
1318 | * Obtain info for current (or given) evidence |