/** * create a new user * * @param bool $isNew flag the new objects as "new"? * @return object XoopsUser */ function &create($isNew = true) { $user = new XoopsUser(); if ($isNew) { $user->setNew(); } return $user; }