Class FlexiBeeRO
Základní třída pro čtení z FlexiBee
- Ease\Sand
-
FlexiPeeHP\FlexiBeeRO
Direct known subclasses
FlexiPeeHP\Changes, FlexiPeeHP\EvidenceList, FlexiPeeHP\FlexiBeeRW, FlexiPeeHP\Nastaveni, FlexiPeeHP\Status, FlexiPeeHP\ZurnalIndirect known subclasses
FlexiPeeHP\Adresar, FlexiPeeHP\Banka, FlexiPeeHP\Kontakt, FlexiPeeHP\Pokladna, FlexiPeeHP\PokladniPohyb, FlexiPeeHP\Priloha, FlexiPeeHP\RadaPokladniPohyb, FlexiPeeHP\SkladovaKarta, FlexiPeeHP\SkladovyPohyb, FlexiPeeHP\SkladovyPohybPolozka, FlexiPeeHP\SkupinaFirem, FlexiPeeHP\Smlouva, FlexiPeeHP\Cenik, FlexiPeeHP\Stitek, FlexiPeeHP\Strom, FlexiPeeHP\StromCenik, FlexiPeeHP\UcetniObdobi, FlexiPeeHP\VyrobniCislo, FlexiPeeHP\Zavazek, FlexiPeeHP\Company, FlexiPeeHP\DodavatelskaSmlouva, FlexiPeeHP\FakturaPrijata, FlexiPeeHP\FakturaVydana, FlexiPeeHP\FakturaVydanaPolozka, FlexiPeeHP\Hooks, FlexiPeeHP\InterniDoklad
public
|
#
__construct( mixed $init = null, array $options = [] )
Class for read only interaction with FlexiBee. |
public
string
|
|
public
|
|
public
|
|
public static
array
|
#
companyUrlToOptions( string $companyUrl )
Convert companyUrl provided by CustomButton to options array |
public
array
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public static
|
|
public static
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public static
array
|
|
public static
array
|
#
objectToID( object|array $object )
Převede rekurzivně v poli všechny objekty na jejich identifikátory. |
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
array|boolean
|
#
performRequest( string $urlSuffix = null, string $method = 'GET', string $format = null )
Funkce, která provede I/O operaci a vyhodnotí výsledek. |
public
array
|
#
rawResponseToArray( string $responseRaw, string $format )
Parse Raw FlexiBee response in several formats |
public
array
|
|
public
array
|
|
public
array
|
|
public
integer
|
|
public
integer
|
|
public
string
|
#
contentTypeToResponseFormat( string $contentType, string $url = null )
Obtain json for application/json |
public
boolean
|
|
public static
array
|
|
public
|
|
public
|
|
public
array
|
|
public
|
#
extractUrlParams( array & $conditions, array & $urlParams )
Oddělí z pole podmínek ty jenž patří za ? v URL požadavku |
public static
string
|
|
public
array
|
|
public
integer
|
#
loadFromFlexiBee( integer|string $id = null )
Načte záznam z FlexiBee a uloží v sobě jeho data Read FlexiBee record and store it inside od object |
public
boolean
|
|
public
string
|
|
public
string
|
#
getJsonizedData( array $data = null, integer $options = 0 )
Převede data do Json formátu pro FlexiBee. Convert data to FlexiBee like Json format |
public
array
|
|
public
boolean
|
|
public static
string
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
array
|
#
getAllFromFlexibee( array|integer|string $conditions = null, string $indexBy = null )
Vrací z FlexiBee sloupečky podle podmínek. |
public
array
|
#
getColumnsFromFlexibee( string|string[] $columnsList, array $conditions = [], string $indexBy = null )
Vrací z FlexiBee sloupečky podle podmínek. |
public
string
|
|
public
boolean
|
|
public
|
|
public
|
|
public
string
|
|
public static
string
|
|
public
null|integer
|
#
getRecordID( )
Obtain record/object numeric identificator id: Vrací číselný identifikátor objektu id: |
public
string
|
|
public
string|integer|null
|
#
getRecordIdent( )
Obtain record/object identificator extId: code: or id: Vrací identifikátor objektu extId: code: nebo id: |
public
string
|
#
__toString( )
Obtain record/object identificator code: or id: Vrací identifikátor objektu code: nebo id: |
public static
string
|
|
public
string|null
|
|
public
integer|null
|
|
public
integer|null
|
|
public
string|array
|
|
public
array
|
|
public
integer
|
|
public
string
|
|
public
string
|
|
public
array
|
#
unifyResponseFormat( array $responseBody )
Return the same response format for one and multiplete results |
public
array
|
|
public
array
|
|
public
|
#
updateColumnsInfo( array $columnsInfo = null, string $evidence = null )
Update evidence info from array or online from properties.json or offline |
public
array
|
#
getColumnsInfo( string $evidence = null )
Gives you evidence structure. You can obtain current online by pre-calling: $this->updateColumnsInfo($evidence, $this->getOnlineColumnsInfo($evidence)); |
public
array
|
#
getColumnInfo( string $column, string $evidence = null )
Gives you properties for (current) evidence column |
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
|
|
public
array
|
|
public
string
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
integer
|
|
public static
|
|
public static
|
|
public
string|null
|
#
getInFormat( string $format, string $reportName = null, string $lang = null, boolean $sign = false )
Získá dokument v daném formátu Obtain document in given format |
public
string|null
|
#
downloadInFormat( string $format, string $destDir = './', string $reportName = null )
Uloží dokument v daném formátu do složky v systému souborů Save document in given format to directory in filesystem |
public
integer
|
|
public
array
|
|
public
string
|
#
requestAuthSessionID( string $username, string $password, string $otp = null )
Request authSessionId from current server |
public
boolean
|
|
public
array
|
|
public
|
#
error500Reporter( array $errorResponse )
Compile and send Report about Error500 to FlexiBee developers If FlexiBee is running on localost try also include java backtrace |
public static
string
|
|
public static
string
|
|
public static
array
|
|
public
|
|
public
string
|
|
public
|
public static
string
|
$infoDir
Where to get JSON files with evidence stricture etc. |
#
__DIR__.'/../../static'
|
public static
string
|
$libVersion
Version of FlexiPeeHP library |
#
'1.30'
|
public
string
|
$nameSpace
Základní namespace pro komunikaci s FlexiBee. Basic namespace for communication with FlexiBee |
#
'winstrom'
|
public
string
|
$apiURL
URL of object data in FlexiBee |
#
null
|
public
string
|
$resultField
Datový blok v poli odpovědi. Data block in response field. |
#
'results'
|
public
string
|
$protoVersion
Verze protokolu použitého pro komunikaci. Communication protocol version used. |
#
'1.0'
|
public
string
|
$evidence
Evidence užitá objektem. Evidence used by object |
#
null
|
public
array
|
$evidenceInfo
Detaily evidence užité objektem |
#
[]
|
public
string
|
$format
Výchozí formát pro komunikaci. Default communication format. |
#
'json'
|
public
string
|
$responseFormat
formát příchozí odpovědi response format |
#
'json'
|
public
resource
|
$curl
Curl Handle. |
#
null
|
public
string
|
$company
|
#
null
|
public
string
|
$url
Server[:port] |
#
null
|
public
string
|
$user
REST API Username |
#
null
|
public
string
|
$password
REST API Password |
#
null
|
public
array
|
$defaultHttpHeaders
Pole HTTP hlaviček odesílaných s každým požadavkem |
#
['User-Agent' => 'FlexiPeeHP']
|
public
array
|
$defaultUrlParams
Default additional request url parameters after question mark |
#
['limit' => 0]
|
public
string
|
$init
Identifikační řetězec. |
#
null
|
public
string
|
$nameColumn
Sloupeček s názvem. |
#
'nazev'
|
public
string
|
$myCreateColumn
Sloupeček obsahující datum vložení záznamu do shopu. |
#
'false'
|
public
string
|
$myLastModifiedColumn
Slopecek obsahujici datum poslení modifikace záznamu do shopu. |
#
'lastUpdate'
|
public
string
|
$fbKeyColumn
Klíčový idendifikátor záznamu. |
#
'id'
|
public
*
|
$curlInfo
Informace o posledním HTTP requestu. |
|
public
string
|
$lastCurlError
Informace o poslední HTTP chybě. |
#
null
|
public
array
|
$codes
Used codes storage. |
#
null
|
public
integer
|
$lastInsertedID
Last Inserted ID. |
#
null
|
public
string
|
$prefix
Default Line Prefix. |
#
'/c/'
|
public
string
|
$lastCurlResponse
Raw Content of last curl response |
|
public
integer
|
$lastResponseCode
HTTP Response code of last request |
#
null
|
protected
string
|
$postFields
Body data for next curl POST operation |
#
null
|
public
array
|
$lastResult
Last operation result data or message(s) |
#
null
|
public
integer
|
$rowCount
Number from @rowCount in response |
#
null
|
public
integer
|
$globalVersion
Number from @globalVersion |
#
null
|
public
string
|
$filter
filter query |
|
protected
string
|
$action
|
|
public
array
|
$actionsAvailable
Pole akcí které podporuje ta která evidence |
#
null
|
public
array
|
$urlParams
Parmetry pro URL |
#
[
'add-global-version',
'add-row-count',
'as-gui',
'auth',
'authSessionId',
'code-as-id',
'code-in-response',
'delimeter',
'detail', //See: https://www.flexibee.eu/api/dokumentace/ref/detail-levels
'dir',
'dry-run', // See: https://www.flexibee.eu/api/dokumentace/ref/dry-run/
'encoding',
'export-settings',
'fail-on-warning',
'filter',
'format',
'idUcetniObdobi',
'includes',
'inDesktopApp', // Note: Undocumented function (html only)
'limit',
'mode',
'no-ext-ids',
'no-http-errors',
'no-ids',
'only-ext-ids',
'order',
'relations',
'report-lang',
'report-name',
'report-sign',
'skupina-stitku',
'sort',
'start',
'stitky-as-ids',
'use-ext-id',
'use-internal-id',
'xpath', // See: https://www.flexibee.eu/api/dokumentace/ref/xpath/
]
|
public
string
|
$authSessionId
Session ID |
#
null
|
public
string
|
$refreshToken
Token obtained during login procedure |
#
null
|
protected
boolean
|
$ignoreNotFound
Save 404 results to log ? |
#
false
|
public
string
|
$reportRecipient
Send Error500 Report to |
#
'podpora@flexibee.eu'
|
public static
string
|
$DateTimeFormat
Formating string for \DateTime::format() for datetime columns |
#
'Y-m-d\TH:i:s.u+P'
|
public static
string
|
$DateFormat
Formating string for \DateTime::format() for date columns |
#
'Y-m-d'
|
protected
array
|
$responseStats
Last Request response stats |
#
null
|
public
array
|
$chained
Chained Objects |
#
[]
|
public
boolean
|
$offline
We Connect to server by default |
#
false
|
public
integer
|
$timeout
Override cURL timeout |
#
null
|