PHP 클래스 Backend\Modules\Location\Engine\Model

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
delete ( integer $id ) Delete an item
exists ( integer $id ) : boolean Check if an item exists
get ( integer $id ) : array Fetch a record from the database
getAll ( ) : array Fetch a record from the database
getCoordinates ( string $street = null, string $streetNumber = null, string $city = null, string $zip = null, string $country = null ) : array Get coordinates latitude/longitude
getMapSetting ( integer $mapId, string $name ) : mixed Retrieve a map setting
getMapSettings ( integer $mapId ) : array Fetch all the settings for a specific map
insert ( array $item ) : integer Insert an item
setMapSetting ( integer $mapId, string $key, mixed $value ) Save the map settings
update ( array $item ) : integer Update an item

메소드 상세

delete() 공개 정적인 메소드

Delete an item
public static delete ( integer $id )
$id integer The id of the record to delete.

exists() 공개 정적인 메소드

Check if an item exists
public static exists ( integer $id ) : boolean
$id integer The id of the record to look for.
리턴 boolean

get() 공개 정적인 메소드

Fetch a record from the database
public static get ( integer $id ) : array
$id integer The id of the record to fetch.
리턴 array

getAll() 공개 정적인 메소드

Fetch a record from the database
public static getAll ( ) : array
리턴 array

getCoordinates() 공개 정적인 메소드

Get coordinates latitude/longitude
public static getCoordinates ( string $street = null, string $streetNumber = null, string $city = null, string $zip = null, string $country = null ) : array
$street string
$streetNumber string
$city string
$zip string
$country string
리턴 array Contains 'latitude' and 'longitude' as variables

getMapSetting() 공개 정적인 메소드

Retrieve a map setting
public static getMapSetting ( integer $mapId, string $name ) : mixed
$mapId integer
$name string
리턴 mixed

getMapSettings() 공개 정적인 메소드

Fetch all the settings for a specific map
public static getMapSettings ( integer $mapId ) : array
$mapId integer
리턴 array

insert() 공개 정적인 메소드

Insert an item
public static insert ( array $item ) : integer
$item array The data of the record to insert.
리턴 integer

setMapSetting() 공개 정적인 메소드

Save the map settings
public static setMapSetting ( integer $mapId, string $key, mixed $value )
$mapId integer
$key string
$value mixed

update() 공개 정적인 메소드

Update an item
public static update ( array $item ) : integer
$item array The data of the record to update.
리턴 integer