/** * Fetch the preferred language of a specific user. * * @param int $userId * @return array GalleryStatus a status code * string code of preferred locale */ function fetchLanguageCodeForUser($userId) { MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryUserHelper_medium.class'); return GalleryUserHelper_medium::fetchLanguageCodeForUser($userId); }
/** * Return true if this username is not allowed to log in (generally due to automated abuse). * The username doesn't have to correspond to a real user in the system. * * @param string $userName a username * @return array GalleryStatus a status code * bool true if the account is disabled */ function isDisabledUsername($userName) { MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryUserHelper_medium.class'); return GalleryUserHelper_medium::isDisabledUsername($userName); }