isFCS

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

isFCS -- Checks if a member is fleet command staff.

Description

bool isFCS ($pin, $hconly = "no", $current = "Yes")

This function checks if member with id $pin is a member of fleet command staff, regardless of which fleet with certain applicable conditions.

$hconly, if set to "yes", includes only CO's and XO's in the check. If left specified as "no", SO's are included in the check. Setting $hconly to something else assumes "yes".

$current, if set to "Yes", only checks active fleets. If set to anything else, all current and inactive fleets are checked.

This function returns true if the member is in the command staff of a fleet that meets the specified criteria. It returns false otherwise. This function returns false on failure.

Examples

isFCS (1) /* Returns true if member with id 1 is a member of active fleet command staff, including SO positions. */

isFCS (1, "yes") /* Returns true if member with id 1 is a member of active fleet command staff, excluding SO positions. */

isFCS (1, "no", "no") /* Returns true if member with id 1 is a member of any fleet's command staff. */

Related Functions

isCS, isHC, isExec

Dependencies

None.

Function Index