Example #1
0
 public static function staticConstruct()
 {
     self::$UserService = UserService::getInstance();
     self::$Persistence = Persistence::getInstance();
     self::$Data = Persistence::getInstance();
     self::$Geo = Geo::getInstance();
     self::$Files = Files::getInstance();
     self::$Messaging = Messaging::getInstance();
     self::$Events = Events::getInstance();
     self::$Cache = Cache::getInstance();
     self::$Counters = Counters::getInstance();
     self::$Logging = Logging::getInstance();
     self::mapTableToClass("GeoPoint", "backendless\\model\\GeoPoint");
 }
Example #2
0
 private function prepareGeoPointDataBeforeSave(&$point_array)
 {
     if (count($point_array['metadata']) >= 1) {
         $persistance = Persistence::getInstance();
         $persistance->prepareGeoPointMetadata($point_array['metadata']);
     }
     $point_array['metadata'] = json_encode($point_array['metadata']);
 }