| @@ 1226-1237 (lines=12) @@ | ||
| 1223 | * @param string $evidence |
|
| 1224 | * @return array Evidence structure |
|
| 1225 | */ |
|
| 1226 | public function getColumnsInfo($evidence = null) |
|
| 1227 | { |
|
| 1228 | $columnsInfo = null; |
|
| 1229 | if (is_null($evidence)) { |
|
| 1230 | $evidence = $this->getEvidence(); |
|
| 1231 | } |
|
| 1232 | $propsName = lcfirst(\FlexiPeeHP\FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1233 | if (isset(\FlexiPeeHP\Structure::$$propsName)) { |
|
| 1234 | $columnsInfo = \FlexiPeeHP\Structure::$$propsName; |
|
| 1235 | } |
|
| 1236 | return $columnsInfo; |
|
| 1237 | } |
|
| 1238 | ||
| 1239 | /** |
|
| 1240 | * Obtain actions for given (or current) evidence |
|
| @@ 1245-1256 (lines=12) @@ | ||
| 1242 | * @param string $evidence |
|
| 1243 | * @return array Evidence structure |
|
| 1244 | */ |
|
| 1245 | public function getActionsInfo($evidence = null) |
|
| 1246 | { |
|
| 1247 | $actionsInfo = null; |
|
| 1248 | if (is_null($evidence)) { |
|
| 1249 | $evidence = $this->getEvidence(); |
|
| 1250 | } |
|
| 1251 | $propsName = lcfirst(\FlexiPeeHP\FlexiBeeRO::evidenceToClassName($evidence)); |
|
| 1252 | if (isset(\FlexiPeeHP\Actions::$$propsName)) { |
|
| 1253 | $actionsInfo = \FlexiPeeHP\Structure::$$propsName; |
|
| 1254 | } |
|
| 1255 | return $actionsInfo; |
|
| 1256 | } |
|
| 1257 | ||
| 1258 | /** |
|
| 1259 | * Perform given action (if availble) on current evidence/record |
|