/** * Fetches the string associated with a moderator log action integer value * * @param integer The moderator log action * * @return string */ public static function GetModlogAction($logtype) { if (empty(self::$modlogactions)) { self::$modlogactions = array_flip(self::$modlogtypes); } return !empty(self::$modlogactions[$logtype]) ? self::$modlogactions[$logtype] : ''; }