public function getUserParams($uid) { $this->onExecuteBefore('getUserParams', array(&$uid)); if (!empty($uid) & $uid > 0) { $params = array('task' => 'params', 'uid' => $uid); $params = json_decode(KSSystem::getLdmApiData('user', null, $params)); $this->onExecuteAfter('getUserParams', array(&$uid)); if (!isset($params->error)) { return $params; } elseif (isset($params->error)) { return $params->error; } } return new JObject(); }