]> git.mxchange.org Git - city.git/blobdiff - application/city/interfaces/database/frontend/class_CityInformationWrapper.php
Added region database handling and creation (partly finished).
[city.git] / application / city / interfaces / database / frontend / class_CityInformationWrapper.php
index 571308ce37a653edbb7ad384bd1b4ea246e02143..948406520400520657e493303ebe6a0334e8f03d 100644 (file)
@@ -31,6 +31,45 @@ interface CityInformationWrapper extends DatabaseWrapper {
         * @return      void
         */
        function registerCityId (BaseCity $cityInstance, Requestable $requestInstance);
+
+       /**
+        * Checks whether there is an entry for given city instance
+        *
+        * @param       $cityInstance   An instance of a CityHelper class
+        * @return      $isFound                Whether a city id has been found for this city
+        */
+       function ifCityDataIsFound (CityHelper $cityInstance);
+
+       /**
+        * Removes non-data from given array.
+        *
+        * @param       $data   An array with possible non-data that needs to be removed.
+        * @return      $data   A cleaned up array with only data.
+        */
+       function removeNonPublicDataFromArray(array $data);
+
+       /**
+        * Checks whether the user has already founded a city
+        *
+        * @return      $hasFounded             Whether the user has already founded a city
+        */
+       function ifUserHasFoundedCity ();
+
+       /**
+        * Checks whether the given city name is taken
+        *
+        * @para        $cityName       Name of city
+        * @return      $isTaken        Whether the given city name is taken
+        */
+       function ifCityExists ($cityName);
+
+       /**
+        * Creates a city from given request
+        *
+        * @para        $requestInstance        An instance of a Requestable class
+        * @return      void
+        */
+       function createCityByRequest (Requestable $requestInstance);
 }
 
 // [EOF]