Jinya CMS

LocateIpController extends BaseController
in package

Tags

Table of Contents

DEVICE_CODE_COOKIE  = 'JinyaDeviceCode'
$body  : array<string, mixed>
entityNotFound()  : ResponseInterface
formatIteratorPlain()  : array<string|int, array<string, mixed>>
jsonIterator()  : ResponseInterface
jsonIteratorPlain()  : ResponseInterface
locateIp()  : ResponseInterface
Locates the given IP

Constants

public mixed DEVICE_CODE_COOKIE = 'JinyaDeviceCode'
Tags

Properties

Methods

entityNotFound()

public entityNotFound(string $message) : ResponseInterface
Parameters
$message : string
Tags
throws
JsonException
Return values
ResponseInterface

formatIteratorPlain()

public formatIteratorPlain(Iterator<string|int, T$iterator) : array<string|int, array<string, mixed>>
Parameters
$iterator : Iterator<string|int, T>
Tags
template

T

throws
JsonException
Return values
array<string|int, array<string, mixed>>

jsonIterator()

public jsonIterator(Iterator $iterator) : ResponseInterface
Parameters
$iterator : Iterator
Tags
throws
JsonException
Return values
ResponseInterface

jsonIteratorPlain()

public jsonIteratorPlain(Iterator $iterator) : ResponseInterface
Parameters
$iterator : Iterator
Tags
throws
JsonException
Return values
ResponseInterface

locateIp()

Locates the given IP

public locateIp(string $ip) : ResponseInterface
Parameters
$ip : string
Tags
throws
JsonException
Return values
ResponseInterface

Search results