PHP Class Locations_model, TastyIgniter

darany is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. darany is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with darany. If not, see .
Inheritance: extends CI_Model
Afficher le fichier Open project: tastyigniter/tastyigniter Class Usage Examples

Méthodes publiques

Méthode Description
addLocationTables ( $location_id, $tables = [] )
addOpeningHours ( $location_id, $data = [] )
deleteLocation ( $location_id )
getAddress ( $location_id )
getCount ( $filter = [] )
getList ( $filter = [] )
getLocalRestaurant ( $lat = FALSE, $lng = FALSE, $search_query = FALSE )
getLocation ( $location_id )
getLocations ( )
getOpeningHourByDay ( $location_id = FALSE, $day = FALSE )
getWorkingHours ( $location_id = FALSE )
saveLocation ( $location_id, $save = [] )
updateDefault ( $address = [] )
validateLocation ( $location_id )

Private Methods

Méthode Description
_createWorkingHours ( $type, $data )

Method Details

addLocationTables() public méthode

public addLocationTables ( $location_id, $tables = [] )

addOpeningHours() public méthode

public addOpeningHours ( $location_id, $data = [] )

deleteLocation() public méthode

public deleteLocation ( $location_id )

getAddress() public méthode

public getAddress ( $location_id )

getCount() public méthode

public getCount ( $filter = [] )

getList() public méthode

public getList ( $filter = [] )

getLocalRestaurant() public méthode

public getLocalRestaurant ( $lat = FALSE, $lng = FALSE, $search_query = FALSE )

getLocation() public méthode

public getLocation ( $location_id )

getLocations() public méthode

public getLocations ( )

getOpeningHourByDay() public méthode

public getOpeningHourByDay ( $location_id = FALSE, $day = FALSE )

getWorkingHours() public méthode

public getWorkingHours ( $location_id = FALSE )

saveLocation() public méthode

public saveLocation ( $location_id, $save = [] )

updateDefault() public méthode

public updateDefault ( $address = [] )

validateLocation() public méthode

public validateLocation ( $location_id )