|
| __construct () |
|
| getByOgrn ($ogrn, $showTerminated=false) |
|
| getByInn ($inn, $showTerminated=false) |
|
| searchOrganizationByName ($name, $limit, $offset=0) |
|
| searchIpByName ($name, $secondName, $lastName, $limit, $offset=0) |
|
| uaGetByEdrpou ($edrpou) |
|
| uaGetUoById ($id) |
|
| uaGetFoById ($id) |
|
| uaSearchUoByName ($name, $limit, $offset=0) |
|
| uaSearchFoByName ($name, $limit, $offset=0) |
|
| uaSearchByName ($name, $limit, $offset=0) |
|
| getByBic ($bic) |
|
| isServiceOnline () |
|
| clearAccessSettings () |
|
| getErrors () |
|
См. определение в файле client.php строка 17
◆ __construct()
Constructor of the client of the properties service.
См. определение в файле client.php строка 50
◆ call()
call |
( |
| $methodName, |
|
|
| $additionalParams = null, |
|
|
| $licenseCheck = false, |
|
|
| $clearAccessSettings = false ) |
|
protected |
Performs call to the REST method and returns decoded results of the call.
- Аргументы
-
string | $methodName | Name of the REST method. |
array | $additionalParams | Parameters, that should be passed to the method. |
bool | $licenseCheck | Should client send license key as a parameter of the http request. |
bool | $clearAccessSettings | Should client clear authorization before performing http request. |
- Возвращает
- array|false
См. определение в файле client.php строка 212
◆ clearAccessSettings()
Drops current stored access credentials.
- Возвращает
- void
См. определение в файле client.php строка 378
◆ getAccessSettings()
Reads and returns access credentials.
- Возвращает
- array|false Access credentials or false in case of errors.
См. определение в файле client.php строка 352
◆ getByBic()
◆ getByInn()
getByInn |
( |
| $inn, |
|
|
| $showTerminated = false ) |
Returns properties of the organization or individual businessman by its INN code.
- Аргументы
-
string | $inn | INN code of the organization or individual businessman. |
- Возвращает
- array|false
См. определение в файле client.php строка 70
◆ getByOgrn()
getByOgrn |
( |
| $ogrn, |
|
|
| $showTerminated = false ) |
Returns properties of the organization or individual businessman by its OGRN code.
- Аргументы
-
string | $ogrn | OGRN code of the organization or individual businessman. |
- Возвращает
- array|false
См. определение в файле client.php строка 60
◆ getErrors()
Returns array of errors.
- Возвращает
- Error[] Errors.
См. определение в файле client.php строка 401
◆ getLicenseHash()
static getLicenseHash |
( |
| ) |
|
|
staticprotected |
Returns md5 hash of the license key.
- Возвращает
- string md5 hash of the license key.
См. определение в файле client.php строка 410
◆ getRedirectUri()
static getRedirectUri |
( |
| ) |
|
|
staticprotected |
Internal method for usage in registration process.
- Возвращает
- string URL of the host.
См. определение в файле client.php строка 387
◆ isServiceOnline()
Checks service's availability.
- Возвращает
- bool Returns true if service is ready and false otherwise.
См. определение в файле client.php строка 199
◆ prepareAnswer()
Decodes answer of the method.
- Аргументы
-
string | $result | Json-encoded answer. |
- Возвращает
- array|bool|mixed|string Decoded answer.
См. определение в файле client.php строка 292
◆ register()
Registers client on the properties service.
- Возвращает
- array|false Access credentials if registration was successful or false otherwise.
См. определение в файле client.php строка 308
◆ searchIpByName()
searchIpByName |
( |
| $name, |
|
|
| $secondName, |
|
|
| $lastName, |
|
|
| $limit, |
|
|
| $offset = 0 ) |
Performs search of individual businessmen by name and returns array of found businessmen.
- Аргументы
-
string | $name | First name (full or partial). |
string | $secondName | Second name (full or partial). |
string | $lastName | Last name (full or partial). |
int | $limit | Maximum size of returning array. |
int | $offset | Offset of the returning array. |
- Возвращает
- array|false Array of found businessmen or false in case of error.
См. определение в файле client.php строка 100
◆ searchOrganizationByName()
searchOrganizationByName |
( |
| $name, |
|
|
| $limit, |
|
|
| $offset = 0 ) |
Performs search of organizations by name and returns array of found organizations.
- Аргументы
-
string | $name | Part of the organization's name. |
int | $limit | Maximum size of returning array. |
int | $offset | Offset of the returning array. |
- Возвращает
- array|false Array of found organizations or false in case of error.
См. определение в файле client.php строка 82
◆ setAccessSettings()
static setAccessSettings |
( |
array | $params | ) |
|
|
staticprotected |
Stores access credentials.
- Аргументы
-
array | $params | Access credentials. |
- Возвращает
- void
См. определение в файле client.php строка 343
◆ uaGetByEdrpou()
Returns properties of the ukrainian organization by its EDRPOU code.
- Аргументы
-
string | $edrpou | EDRPOU code of the organization. |
- Возвращает
- array|false
См. определение в файле client.php строка 116
◆ uaGetFoById()
Performs search of ukrainian individual businessmen by identifier and returns its properties.
- Аргументы
-
int | $id | idenrifier of the individual. |
- Возвращает
- array|false Properties of found individual or false in case of error.
См. определение в файле client.php строка 136
◆ uaGetUoById()
Performs search of ukrainian organization by identifier and returns its properties.
- Аргументы
-
int | $id | idenrifier of the organization. |
- Возвращает
- array|false Properties of found organization or false in case of error.
См. определение в файле client.php строка 126
◆ uaSearchByName()
uaSearchByName |
( |
| $name, |
|
|
| $limit, |
|
|
| $offset = 0 ) |
Performs search of ukrainian organizations and individuals by name and returns array of found organizations and individuals.
- Аргументы
-
string | $name | Part of the name. |
int | $limit | Maximum size of returning array. |
int | $offset | Offset of the returning array. |
- Возвращает
- array|false Array of found organizations and individuals or false in case of error.
См. определение в файле client.php строка 181
◆ uaSearchFoByName()
uaSearchFoByName |
( |
| $name, |
|
|
| $limit, |
|
|
| $offset = 0 ) |
Performs search of ukrainian individual businessmen by name and returns array of found individuals.
- Аргументы
-
string | $name | Part of the individual's name. |
int | $limit | Maximum size of returning array. |
int | $offset | Offset of the returning array. |
- Возвращает
- array|false Array of found individuals or false in case of error.
См. определение в файле client.php строка 164
◆ uaSearchUoByName()
uaSearchUoByName |
( |
| $name, |
|
|
| $limit, |
|
|
| $offset = 0 ) |
Performs search of ukrainian organizations by name and returns array of found organizations.
- Аргументы
-
string | $name | Part of the organization's name. |
int | $limit | Maximum size of returning array. |
int | $offset | Offset of the returning array. |
- Возвращает
- array|false Array of found organizations or false in case of error.
См. определение в файле client.php строка 148
◆ $accessSettings
◆ $errorCollection
◆ $httpTimeout
◆ ERROR_NOTHING_FOUND
const ERROR_NOTHING_FOUND = 4 |
◆ ERROR_SERVICE_UNAVAILABLE
const ERROR_SERVICE_UNAVAILABLE = 3 |
◆ ERROR_WRONG_INPUT
const ERROR_WRONG_INPUT = 1 |
◆ ERROR_WRONG_LICENSE
const ERROR_WRONG_LICENSE = 2 |
◆ METHOD_COMMON_GET_BY_BIC
const METHOD_COMMON_GET_BY_BIC = 'ps.bic.getByBic' |
◆ METHOD_COMMON_GET_BY_INN
const METHOD_COMMON_GET_BY_INN = 'ps.common.getByInn' |
◆ METHOD_COMMON_GET_BY_OGRN
const METHOD_COMMON_GET_BY_OGRN = 'ps.common.getByOgrn' |
◆ METHOD_IP_SEARCH_BY_NAME
const METHOD_IP_SEARCH_BY_NAME = 'ps.ip.searchByName' |
◆ METHOD_IS_SERVICE_ONLINE
const METHOD_IS_SERVICE_ONLINE = 'ps.common.isOnline' |
◆ METHOD_ORGANIZATION_SEARCH_BY_NAME
const METHOD_ORGANIZATION_SEARCH_BY_NAME = 'ps.organization.searchByName' |
◆ METHOD_UA_GET_BY_EDRPOU
const METHOD_UA_GET_BY_EDRPOU = 'ps.ua.getByEdrpou' |
◆ METHOD_UA_GET_FO_BY_ID
const METHOD_UA_GET_FO_BY_ID = 'ps.ua.getFoById' |
◆ METHOD_UA_GET_UO_BY_ID
const METHOD_UA_GET_UO_BY_ID = 'ps.ua.getUoById' |
◆ METHOD_UA_SEARCH_BY_NAME
const METHOD_UA_SEARCH_BY_NAME = 'ps.ua.searchByName' |
◆ METHOD_UA_SEARCH_FO_BY_NAME
const METHOD_UA_SEARCH_FO_BY_NAME = 'ps.ua.searchFoByName' |
◆ METHOD_UA_SEARCH_UO_BY_NAME
const METHOD_UA_SEARCH_UO_BY_NAME = 'ps.ua.searchUoByName' |
◆ REGISTER_URI
◆ REST_URI
const REST_URI = '/rest/' |
◆ SCOPE
◆ SERVICE_ACCESS_OPTION
const SERVICE_ACCESS_OPTION = 'properties_service_access' |
◆ SERVICE_HOST
const SERVICE_HOST = 'https://properties.bitrix.info' |