Back to UserGroupsHelper class

Method getInstance

public static self
getInstance
()
Get the helper instance.
Returns
  • self
Since
  • 3.6.3

Method getInstance - Source code

/**
 * Get the helper instance.
 *
 * @return  self
 *
 * @since   3.6.3
 */
public static function getInstance()
{
    if (static::$instance === null) {
        // Only here to avoid code style issues...
        $groups = array();
        static::$instance = new static($groups, static::MODE_SINGLETON);
    }
    return static::$instance;
}