API access.
Protected Properties | |
string | $domain |
string | $key |
LoggerInterface | $logger |
string | $password |
Pool | $pool |
Public Methods | |
__construct (string $domain, string $key, string $password, Pool $pool=null) | |
Generator mixed AbstractEntity[] | advancedSearch (string $class, array $query) |
void | delete (string $path, array $query=[]) |
null array | exec (string $method, string $path, array $curlOpts=[]) |
mixed | factory ($caller, string $class, array $data=[]) |
array | factoryAll ($caller, string $class, array $list) |
null array | get (string $path, array $query=[]) |
null Location | getLocation (string $id) |
LoggerInterface | getLogger () |
User | getMe () |
Pool | getPool () |
Shop | getShop () |
null mixed AbstractEntity | load ($caller, string $class, string $path, array $query=[]) |
array Data[] | loadAll ($caller, string $class, string $path, array $query=[]) |
null array | post (string $path, array $data=[]) |
null array | put (string $path, array $data=[]) |
$this | setLogger (LoggerInterface $logger) |
__construct | ( | string | $domain, |
string | $key, | ||
string | $password, | ||
Pool | $pool = null |
||
) |
string | $domain | |
string | $key | |
string | $password | |
null | Pool | $pool |
Generator mixed AbstractEntity [] advancedSearch | ( | string | $class, |
array | $query | ||
) |
string | $class | |
array | $query |
void delete | ( | string | $path, |
array | $query = [] |
||
) |
string | $path | |
array | $query |
null array exec | ( | string | $method, |
string | $path, | ||
array | $curlOpts = [] |
||
) |
string | $method | |
string | $path | |
array | $curlOpts |
mixed factory | ( | $caller, | |
string | $class, | ||
array | $data = [] |
||
) |
Api | Data | $caller | |
string | $class | |
array | $data |
array factoryAll | ( | $caller, | |
string | $class, | ||
array | $list | ||
) |
Api | Data | $caller | |
string | $class | |
array[] | $list |
null array get | ( | string | $path, |
array | $query = [] |
||
) |
string | $path | |
array | $query |
null Location getLocation | ( | string | $id | ) |
string | $id |
LoggerInterface getLogger | ( | ) |
null mixed AbstractEntity load | ( | $caller, | |
string | $class, | ||
string | $path, | ||
array | $query = [] |
||
) |
Api | Data | $caller | |
string | $class | |
string | $path | |
array | $query |
array Data [] loadAll | ( | $caller, | |
string | $class, | ||
string | $path, | ||
array | $query = [] |
||
) |
Api | Data | $caller | |
string | $class | |
string | $path | |
array | $query |
null array post | ( | string | $path, |
array | $data = [] |
||
) |
string | $path | |
array | $data |
null array put | ( | string | $path, |
array | $data = [] |
||
) |
string | $path | |
array | $data |
|
final |
LoggerInterface | $logger |