Function __global->get_num_users_site

Definitions

sources/global3.php

  • Get the number of users on the site in the last 5 minutes. The function also maintains the statistic via the sessions table.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Returns

  • The number of users on the site
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the number of users on the site in the last 5 minutes. The function also maintains the statistic via the sessions table.
 *
 * @return integer The number of users on the site
 */

function get_num_users_site() : int