| @@ 54-63 (lines=10) @@ | ||
| 51 | * Build application list to memory object |
|
| 52 | * @throws \Ffcms\Core\Exception\SyntaxException |
|
| 53 | */ |
|
| 54 | private function buildApps() |
|
| 55 | { |
|
| 56 | $this->applications = \Apps\ActiveRecord\App::getAllByType('app'); |
|
| 57 | $cname = Str::lastIn(get_class($this), '\\', true); |
|
| 58 | foreach ($this->applications as $app) { |
|
| 59 | if ($app->sys_name === $cname) { |
|
| 60 | $this->application = $app; |
|
| 61 | } |
|
| 62 | } |
|
| 63 | } |
|
| 64 | ||
| 65 | /** |
|
| 66 | * Get current application configs as array |
|
| @@ 20-29 (lines=10) @@ | ||
| 17 | parent::__construct(); |
|
| 18 | } |
|
| 19 | ||
| 20 | public function buildWidgets() |
|
| 21 | { |
|
| 22 | $this->applications = \Apps\ActiveRecord\App::getAllByType('widget'); |
|
| 23 | $cname = Str::lastIn(get_class($this), '\\', true); |
|
| 24 | foreach ($this->widgets as $widget) { |
|
| 25 | if ($widget->sys_name === $cname) { |
|
| 26 | $this->widget = $widget; |
|
| 27 | } |
|
| 28 | } |
|
| 29 | } |
|
| 30 | } |
|