/** * Loads the current setting and returns array * * @return array Returns array value=>xx, adv=>xx */ public function get_setting() { $value = parent::get_setting(); $locked = $this->config_read($this->name . '_locked'); if (is_null($value) or is_null($locked)) { return NULL; } return array('value' => $value, 'locked' => $locked); }
/** * Loads the current setting and returns array * * @return array Returns array value=>xx, adv=>xx */ public function get_setting() { $value = parent::get_setting(); $adv = $this->config_read($this->name . '_adv'); if (is_null($value) or is_null($adv)) { return NULL; } return array('value' => $value, 'adv' => $adv); }