/** * @param null $key * @param null $default * @param null $userGroupId * @return \Api\User\Object|\Api\User\Object[] * @throws Exception */ function user($key = null, $default = null, $userGroupId = null) { if ($key === null) { return (new \Api\User())->get(\Phpfox::getUserId()); } $Setting = new \Core\User\Setting(); return $Setting->get($key, $default, $userGroupId); }