UsaEdgarRegistryFromSec
extends Base
in package
EDGAR Registry of Securities and Exchange Commission class.
Table of Contents
- CIK_LEN = 10
- $allowedModules : array<string|int, string>
- $description : string
- $displayType : string
- $docUrl : string
- $formFieldsToRecordMap : mixed
- {@inheritdoc}
- $icon : string
- $label : string
- $moduleName : string
- $settingsFields : array<string|int, mixed>
- $addOnName : string
- $data : array<string|int, mixed>
- $fields : mixed
- var array List of fields for the modal search window.
- $modulesFieldsMap : array<string|int, mixed>
- $name : string
- $paid : bool
- $request : Request
- $response : array<string|int, mixed>
- $url : string
- __construct() : mixed
- Constructor.
- getFields() : array<string|int, Vtiger_Field_Model>
- Get fields for the modal search window.
- getFieldsLabelsByModule() : array<string|int, string>
- Get fields labels for the module name.
- getFieldsModule() : array<string|int, string>
- Get fields for the module name.
- getName() : string
- Get record collector name.
- isActive() : bool
- Check whether it is active.
- isAvailable() : bool
- Check if product is available.
- loadData() : void
- Load data.
- search() : array<string|int, mixed>
- Search data function.
- setRequest() : void
- Set request.
- getParams() : array<string|int, mixed>
- Get params of collector.
- getDataFromApi() : void
- Function finding company data by Central Index Key (CIK).
- parseData() : void
- Function parsing data to fields from Securities and Exchange Commission API.
Constants
CIK_LEN
public
int
CIK_LEN
= 10
Central Index Key length
Properties
$allowedModules
public
array<string|int, string>
$allowedModules
= ['Accounts', 'Leads', 'Partners', 'Vendors', 'Competition']
Allowed modules.
$description
public
string
$description
= 'LBL_USA_EDGAR_DESC'
Additional description, visible in the modal window.
$displayType
public
string
$displayType
= 'FillFields'
Search results display type.
$docUrl
public
string
$docUrl
= 'https://www.sec.gov/edgar/sec-api-documentation'
Url to Documentation API
$formFieldsToRecordMap
{@inheritdoc}
public
mixed
$formFieldsToRecordMap
= ['Accounts' => ['name' => 'accountname', 'cik' => 'registration_number_1', 'ein' => 'vat_id', 'webiste' => 'website', 'sic' => 'siccode', 'phone' => 'phone', 'addressesBusinessStreet2' => 'buildingnumbera', 'addressesBusinessStreet1' => 'addresslevel8a', 'addressesBusinessZipCode' => 'addresslevel7a', 'addressesBusinessCity' => 'addresslevel5a', 'addressesBusinessStateOrCountryDescription' => 'addresslevel2a', 'addressesMailingStreet2' => 'buildingnumberb', 'addressesMailingStreet1' => 'addresslevel8b', 'addressesMailingZipCode' => 'addresslevel7b', 'addressesMailingsCity' => 'addresslevel5b', 'addressesBusinessStateOrCountryDescription' => 'addresslevel2b'], 'Leads' => ['name' => 'company', 'cik' => 'registration_number_1', 'ein' => 'vat_id', 'webiste' => 'website', 'sic' => 'siccode', 'phone' => 'phone', 'addressesBusinessStreet2' => 'buildingnumbera', 'addressesBusinessStreet1' => 'addresslevel8a', 'addressesBusinessZipCode' => 'addresslevel7a', 'addressesBusinessCity' => 'addresslevel5a', 'addressesBusinessStateOrCountryDescription' => 'addresslevel2a'], 'Partners' => ['name' => 'subject', 'ein' => 'vat_id', 'addressesBusinessStreet2' => 'buildingnumbera', 'addressesBusinessStreet1' => 'addresslevel8a', 'addressesBusinessZipCode' => 'addresslevel7a', 'addressesBusinessCity' => 'addresslevel5a', 'addressesBusinessStateOrCountryDescription' => 'addresslevel2a'], 'Vendors' => ['name' => 'vendorname', 'cik' => 'registration_number_1', 'ein' => 'vat_id', 'webiste' => 'website', 'phone' => 'phone', 'addressesBusinessStreet2' => 'buildingnumbera', 'addressesBusinessStreet1' => 'addresslevel8a', 'addressesBusinessZipCode' => 'addresslevel7a', 'addressesBusinessCity' => 'addresslevel5a', 'addressesBusinessStateOrCountryDescription' => 'addresslevel2a', 'addressesMailingStreet2' => 'buildingnumberb', 'addressesMailingStreet1' => 'addresslevel8b', 'addressesMailingZipCode' => 'addresslevel7b', 'addressesMailingsCity' => 'addresslevel5b', 'addressesBusinessStateOrCountryDescription' => 'addresslevel2b'], 'Competition' => ['name' => 'subject', 'ein' => 'vat_id', 'addressesBusinessStreet2' => 'buildingnumbera', 'addressesBusinessStreet1' => 'addresslevel8a', 'addressesBusinessZipCode' => 'addresslevel7a', 'addressesBusinessCity' => 'addresslevel5a', 'addressesBusinessStateOrCountryDescription' => 'addresslevel2a']]
$icon
public
string
$icon
= 'yfi-edgar-usa'
Icon.
$label
public
string
$label
= 'LBL_USA_EDGAR'
Label.
$moduleName
public
string
$moduleName
Module name.
$settingsFields
public
array<string|int, mixed>
$settingsFields
= []
Configuration field list.
$addOnName
protected
string
$addOnName
= 'YetiForceRcUsaEdgar'
The name of Add-on.
$data
protected
array<string|int, mixed>
$data
= []
Data from record collector source.
$fields
var array List of fields for the modal search window.
protected
mixed
$fields
= ['cik' => ['labelModule' => '_Base', 'label' => 'Registration number 1', 'typeofdata' => 'V~M']]
$modulesFieldsMap
protected
array<string|int, mixed>
$modulesFieldsMap
= ['Accounts' => ['cik' => 'registration_number_1'], 'Leads' => ['cik' => 'registration_number_1'], 'Vendors' => ['cik' => 'registration_number_1']]
Fields mapping for loading record data.
$name
protected
string
$name
Record collector name.
$paid
protected
bool
$paid
= true
Requires subscription.
$request
protected
Request
$request
Request instance.
$response
protected
array<string|int, mixed>
$response
= []
Response data.
$url
protected
string
$url
= 'https://data.sec.gov/submissions/CIK'
SEC sever address
Methods
__construct()
Constructor.
public
__construct() : mixed
Return values
mixed —getFields()
Get fields for the modal search window.
public
getFields() : array<string|int, Vtiger_Field_Model>
Return values
array<string|int, Vtiger_Field_Model> —getFieldsLabelsByModule()
Get fields labels for the module name.
public
getFieldsLabelsByModule(string $moduleName) : array<string|int, string>
Parameters
- $moduleName : string
Return values
array<string|int, string> —getFieldsModule()
Get fields for the module name.
public
getFieldsModule(string $moduleName) : array<string|int, string>
Parameters
- $moduleName : string
Return values
array<string|int, string> —getName()
Get record collector name.
public
getName() : string
Return values
string —isActive()
Check whether it is active.
public
isActive() : bool
Return values
bool —isAvailable()
Check if product is available.
public
isAvailable() : bool
Return values
bool —loadData()
Load data.
public
loadData() : void
Return values
void —search()
Search data function.
public
search() : array<string|int, mixed>
Return values
array<string|int, mixed> —setRequest()
Set request.
public
setRequest(Request $request) : void
Parameters
- $request : Request
Return values
void —getParams()
Get params of collector.
protected
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDataFromApi()
Function finding company data by Central Index Key (CIK).
private
getDataFromApi(string $cik) : void
Parameters
- $cik : string
Return values
void —parseData()
Function parsing data to fields from Securities and Exchange Commission API.
private
parseData() : void