/** * Return array of properties and html code for plugin controls * @param array $params * @return array */ public function getControls($params = array()) { $this->loadSettings(); $controls = array(); $params['id'] = $this->app_id . '_' . $this->id; foreach ($this->settings_fields as $field => $properties) { $properties['control'] = $this->settings->getControl($properties['settings_html_function'], $field, $params); $controls[$field] = $properties; } return $controls; }