title = lang("Mylog.title"); $this->helper = new MyLogHelper(); } protected function getService(): MyLogService { if ($this->service === null) { $this->service = new MyLogService(); $this->class_name = "MyLog"; $this->class_path = $this->class_name; } return $this->service; } public function getUserModel(): UserModel { if ($this->_userModel === null) { $this->_userModel = new UserModel(); } return $this->_userModel; } protected function getFormFieldOption(string $field, array $options = []): array { switch ($field) { case 'user_uid': // $this->getUserModel()->where('status', DEFAULTS['STATUS']); $options[$field] = $this->getUserModel()->getFormFieldOption($field); // echo $this->getUserModel()->getLastQuery(); // dd($options); break; default: $options = parent::getFormFieldOption($field, $options); break; } return $options; } }