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
Datei anzeigen Open project: tastyigniter/tastyigniter Class Usage Examples

Public Methods

Method 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

Method Description
_createWorkingHours ( $type, $data )

Method Details

addLocationTables() public method

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

addOpeningHours() public method

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

deleteLocation() public method

public deleteLocation ( $location_id )

getAddress() public method

public getAddress ( $location_id )

getCount() public method

public getCount ( $filter = [] )

getList() public method

public getList ( $filter = [] )

getLocalRestaurant() public method

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

getLocation() public method

public getLocation ( $location_id )

getLocations() public method

public getLocations ( )

getOpeningHourByDay() public method

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

getWorkingHours() public method

public getWorkingHours ( $location_id = FALSE )

saveLocation() public method

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

updateDefault() public method

public updateDefault ( $address = [] )

validateLocation() public method

public validateLocation ( $location_id )