NAMESPACE: Bootstrap/Models

Models/DataHelpers.php

public function getActiveTab()
public function getCountryCodes()

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

public function getMenuData($id)

variable

$id
public function getCountryCode()

Returns country code based on users location

public function setUserAddress($force)

Set current user address

variable

$force
public function timeElapsedString($datetime,$full)

variable

$datetime
$full
public function coordinatesToAddress($lat,$lon)

variable

$lat
$lon
public function addressToCoordinates($country,$city)

variable

$country
$city
public function findClosestVenue($lat,$lon,$keywords)

variable

$lat
$lon
$keywords
public function findClosestVenues($lat,$lon,$keywords)

variable

$lat
$lon
$keywords
public function findPlayFromVariables($var1,$var2,$var1_value,$var2_value)

Find play based on two different variables

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
public function getActionThemeByPermaname($permaname)

variable

$permaname
public function getCalendarFile($parameters)

Will create a button for adding a calendar event

parameters

$parameters
      $array = array(
      'starttime' => time()+700
      'endtime' => time()+1400,
      'organizer' => 'My Name',
      'organizer_email' => 'myemail

variable

$parameters
public function getTimezone($cur_lat,$cur_long,$country_code,$timetolive)

Return the user’s timezone based on his current location

variable

$cur_lat
$cur_long
$country_code
$timetolive
public function getNickname($content,$age)

variable

$content
$age