getNewsType

(/rs/public/functions.news.php)

getNewsType -- Convert integral news type into string.

Description

string getNewsType ($newstype)

This function converts an integral news type into its descriptive string. This function returns an empty string if an unknown integer is provided.

This function returns an empty string on failure.

Examples

getNewsType (-5) /* Returns "ORW NL" */

getNewsType (-4) /* Returns "RSNL Article" */

getNewsType (-3) /* Returns "HC Newsflash" */

getNewsType (-2) /* Returns "SotRS" */

getNewsType (-1) /* Returns "General Announcement" */

getNewsType (0) /* Returns "----------" */

getNewsType (1) /* Returns "Squad NL" */

getNewsType (2) /* Returns "Wing NL" */

getNewsType (3) /* Returns "Fleet NL" */

getNewsType (4) /* Returns "Basic Announcement" /*

getNewsType ("foo") /* Returns empty string ("") */

Related Functions

None.

Dependencies

None.

Function Index