NAMESPACE: Bootstrap/Models

Models/DataHelpers.php

public function getCountryCodes()

Get country codes from JSON file in name – country code pairs

public function getCountryCode()

Returns country code based on users location

public function setUserAddress()

Set current user address

public function findPlayFromVariables($var1,$var2,$var1_value,$var2_value)

Find user id from variable values

variable

$var1
$var2
$var1_value
$var2_value
public function findPlayFromVariable($varname,$varvalue,$include_current_user)

Note: this will return only the latest user with this value & it will exclude the current user by default

variable

$varname
$varvalue
$include_current_user