PHP Класс 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 .
Наследование: extends CI_Model
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 )

Приватные методы

Метод Описание
_createWorkingHours ( $type, $data )

Описание методов

addLocationTables() публичный Метод

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

addOpeningHours() публичный Метод

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

deleteLocation() публичный Метод

public deleteLocation ( $location_id )

getAddress() публичный Метод

public getAddress ( $location_id )

getCount() публичный Метод

public getCount ( $filter = [] )

getList() публичный Метод

public getList ( $filter = [] )

getLocalRestaurant() публичный Метод

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

getLocation() публичный Метод

public getLocation ( $location_id )

getLocations() публичный Метод

public getLocations ( )

getOpeningHourByDay() публичный Метод

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

getWorkingHours() публичный Метод

public getWorkingHours ( $location_id = FALSE )

saveLocation() публичный Метод

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

updateDefault() публичный Метод

public updateDefault ( $address = [] )

validateLocation() публичный Метод

public validateLocation ( $location_id )