memberInfo array

Hooks were added to AppGini as of version 4.50. Older versions don't support this feature.
$memberInfo is an associative array containing logged member's info, as follows:
  • $memberInfo['username']: the member username.
  • $memberInfo['groupID']: the numeric ID of the member's group.
  • $memberInfo['group']: the name of the member's group.
  • $memberInfo['admin']: true for admin member, false for others.
  • $memberInfo['email']: the email address of the member.
  • $memberInfo['custom'][0]: the value of the first custom field for the member.
  • $memberInfo['custom'][1]: the value of the second custom field for the member.
  • $memberInfo['custom'][2]: the value of the third custom field for the member.
  • $memberInfo['custom'][3]: the value of the fourth custom field for the member.
  • $memberInfo['IP']: the IP address from where the member is currently logged.
The $memberInfo array is passed to the following hook functions: Tip: You can retrieve this array in your own code by calling the function getMemberInfo(), which returns this array.