SproutCMS

This is the code documentation for the SproutCMS project

function getDetails()

Gets the id, name, username and email of the currently logged in operator.
N.B. the id will be 0 for remote users

Usage

bool|array AdminAuth::getDetails ( );

Return value

  • array
    Under normal circumstances, with keys 'id', 'name', 'username', 'email' and 'editor'
  • bool
    False if fetching data for a remote operator failed