/** * Constructor */ function __construct() { parent::__construct(); $this->type = JRequest::getVar('type', 1, 'default', 'int'); $this->setUserState('type', $this->type); $this->typeconf = BabioonAdHelper::getTypeConf($this->type); $this->systemconfobj = JComponentHelper::getParams('com_babioonad'); }
/** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. */ protected function loadFormData() { $data = parent::loadFormData(); if (is_object($data)) { if (is_array($data->params)) { foreach ($data->params as $key => $value) { $data->{$key} = (string) $value; } } } return $data; }