Documentation

Stitek extends RW
in package

Štítek

Tags
link

Vlastnosti evidence

Table of Contents

$actionsAvailable  : array<string|int, mixed>
Pole akcí které podporuje ta která evidence
$apiURL  : string
URL of object data in AbraFlexi
$atomic  : bool
Transaction processing mode
$authSessionId  : string
Session ID
$autoload  : bool
Load whole record when id is given ?
$chained  : array<string|int, mixed>
Chained Objects
$codes  : array<string|int, mixed>
Used codes storage.
$company  : string
$curl  : resource|null
Curl Handle.
$curlInfo  : array<string|int, mixed>|null
Informace o posledním HTTP requestu.
$defaultHttpHeaders  : array<string|int, mixed>
$defaultUrlParams  : array<string|int, mixed>
Default additional request url parameters after question mark
$dryRun  : bool
Dry Run mode indicator
$evidence  : string
Evidence užitá objektem.
$evidenceInfo  : array<string|int, mixed>
Detaily evidence užité objektem
$filter  : string
$format  : string
Default communication format.
$globalVersion  : int
Number from @globalVersion
$infoDir  : string
Where to get JSON files with evidence structure etc.
$init  : string
Identifikační řetězec.
$keyColumn  : string
Klíčový idendifikátor záznamu.
$lastCurlError  : string
Informace o poslední HTTP chybě.
$lastCurlResponse  : string
Raw Content of last curl response
$lastInsertedID  : int
Last Inserted ID.
$lastResponseCode  : int
HTTP Response code of last request
$lastResult  : array<string|int, mixed>
Last operation result data or message(s)
$libVersion  : string
Version of AbraFlexi library
$myCreateColumn  : string
Sloupeček obsahující datum vložení záznamu do shopu.
$myLastModifiedColumn  : string
Slopecek obsahujici datum poslení modifikace záznamu do shopu.
$nameColumn  : string
Sloupeček s názvem.
$nameSpace  : string
Basic namespace for communication with AbraFlexi
$nativeTypes  : bool
Convert server data to its native types ? eg. nubmers to integer You can disable it using setUp
$objectName  : string
Object Name used for logging
$offline  : bool
We Connect to server by default
$password  : string
REST API Password
$postFields  : string
Body data for next curl POST operation
$prefix  : string
Default Line Prefix.
$protoVersion  : string
Communication protocol version used.
$refreshToken  : string
Token obtained during login procedure
$reportRecipient  : string
Send Error500 Report to
$responseFormat  : string
requested response format
$resultField  : string
Data block in response field.
$rowCount  : int
Number from @rowCount in response
$throwException  : bool
Throw Exception in case of AbraFlexi error
$timeout  : int
Override cURL timeout
$url  : string
[protocol://]Server[:port]
$urlParams  : array<string|int, mixed>
The List of known parameters was renamed to $urlParamsKnown
$urlParamsKnown  : array<string|int, mixed>
Parmetry pro URL
$user  : string
REST API Username
$vsbToEvidencePath  : array<string|int, mixed>
Evidence Path for vsb supported by label
$action  : string
$errors  : array<string|int, mixed>
Array of errors caused by last request
$ignoreNotFound  : bool
Save 404 results to log ?
$responseStats  : array<string|int, mixed>
Last Request response stats
$columnsInfo  : array<string|int, mixed>
Columns Info for serveral evidencies
$reports  : array<string|int, mixed>
List of Error500 reports sent
$sourceId  : int
Record Copy helper
__construct()  : mixed
Class for read only interaction with AbraFlexi.
__destruct()  : mixed
Disconnect CURL befere pass away
__toString()  : string
Obtain record/object identificator code: or id: Vrací identifikátor objektu code: nebo id:
__wakeup()  : mixed
Reconnect After unserialization
addArrayToBranch()  : bool
Add Data to evidence Branch Přidá data do větve
addDefaultUrlParams()  : mixed
addExternalID()  : array<string|int, mixed>
Add External ID to Current Record
addObjectToBranch()  : mixed
Vloží do větve data z objektu
arrayCleanUP()  : array<string|int, mixed>
Remove all @ items from array
assignResultIDs()  : mixed
Assign result IDs to its source objects
changeExternalID()  : array<string|int, mixed>
Change Value of external id identified by selector. Add new if not exists
code()  : string
Returns code:CODE
companyUrlToOptions()  : array<string|int, mixed>
Convert companyUrl provided by CustomButton to options array
configToEnv()  : mixed
Export current/given configutation into Environment
connectionReset()  : mixed
Reset Curl Connection
contentTypeToResponseFormat()  : string
Obtain json for application/json
controlMandatoryColumns()  : array<string|int, mixed>
Control data for mandatory columns presence.
controlReadOnlyColumns()  : array<string|int, mixed>
Control data for readonly columns presence.
copy()  : RW|null
Make Copy of given record with optional modifiactions
createNew()  : bool
Create New Label for given evidencies
curlInit()  : bool
Inicializace CURL
dateToFlexiDate()  : mixed
PHP Date object to AbraFlexi date format
dateToFlexiDateTime()  : mixed
PHP Date object to AbraFlexi date format
deleteFromAbraFlexi()  : bool
Smaže záznam Delete record in AbraFlexi
disconnect()  : mixed
Odpojení od AbraFlexi.
doCurlRequest()  : int
Vykonej HTTP požadavek
downloadInFormat()  : string|null
Uloží dokument v daném formátu do složky v systému souborů Save document in given format to directory in filesystem
error500Reporter()  : mixed
Compile and send Report about Error500 to AbraFlexi developers If AbraFlexi is running on localost try also include java backtrace
evidenceToClassName()  : string
Gives you AbraFlexi class name for Given Evidence
evidenceUrlWithSuffix()  : string
Add suffix to Evidence URL
extractResultIDs()  : array<string|int, mixed>
Extract IDs from AbraFlexi response Array
extractUrlParams()  : mixed
Oddělí z pole podmínek ty jenž patří za ? v URL požadavku
fixRecordTypes()  : array<string|int, mixed>
Fix AbraFlexi record field types
fixResponseTypes()  : array<string|int, mixed>
Fix field types in AbraFlexi server response
flexiDateTimeToDateTime()  : DateTime
AbraFlexi dateTime to PHP DateTime conversion
flexiDateToDateTime()  : DateTime
AbraFlexi date to PHP DateTime conversion
flexiIN()  : string
Prepare "IN" subselect
flexiUrl()  : string
Generuje fragment url pro filtrování.
getAbraFlexiURL()  : string
Gives You URL for Current Record in AbraFlexi web interface
getActionsInfo()  : array<string|int, mixed>
Obtain actions for current (or given) evidence
getAllFromAbraFlexi()  : array<string|int, mixed>
Vrací z AbraFlexi sloupečky podle podmínek.
getApiURL()  : string
Gives you current ApiURL with given format suffix
getAvailbleLabels()  : array<string|int, mixed>
Obtain list of availble labels for given object
getColumnInfo()  : array<string|int, mixed>
Gives you properties for (current) evidence column
getColumnsFromAbraFlexi()  : array<string|int, mixed>
Vrací z AbraFlexi sloupečky podle podmínek.
getColumnsInfo()  : array<string|int, mixed>
Gives you evidence structure. You can obtain current online by pre-calling: $this->updateColumnsInfo($evidence, $this->getOnlineColumnsInfo($evidence));
getCompany()  : string
Obtain company now used Vrací právě používanou firmu
getConnectionOptions()  : array<string|int, mixed>
Get Current connection options for use in another object
getDataForJSON()  : array<string|int, mixed>
Get Data Fragment specific for current object
getErrors()  : array<string|int, mixed>
Last operation errors
getEvidence()  : string
Vrací právě používanou evidenci pro komunikaci Obtain current used evidence
getEvidenceInfo()  : array<string|int, mixed>
Obtain info for current (or given) evidence
getEvidenceName()  : array<string|int, mixed>
Obtain name for current (or given) evidence path
getEvidenceURL()  : string
Return basic URL for used Evidence
getExternalID()  : string|array<string|int, mixed>
Vrací hodnotu daného externího ID
getExternalIDs()  : array<string|int, mixed>
gives you currently loaded extermal IDs
getFirstRecordID()  : string|null
Obtain ID of first record in evidence
getFlexiData()  : array<string|int, mixed>
Načte data z AbraFlexi.
getFlexiRow()  : array<string|int, mixed>
Načte řádek dat z AbraFlexi.
getGlobalVersion()  : int
Obtain actual GlobalVersion Vrací aktuální globální verzi změn
getInFormat()  : string|null
Získá dokument v daném formátu Obtain document in given format
getJsonizedData()  : string
Převede data do Json formátu pro AbraFlexi.
getKod()  : string
Vrací kód záznamu.
getLabels()  : array<string|int, mixed>
Obtain labels for current record
getLastInsertedId()  : int
Give you last inserted record ID.
getLastOperationType()  : string
Get Last operation type
getNextRecordID()  : int|null
Get next record ID
getOfflineColumnsInfo()  : array<string|int, mixed>
Obtain structure for current (or given) evidence
getOnlineColumnsInfo()  : array<string|int, mixed>
Obtain Current evidence Live structure
getPostFields()  : string
Get Content ready to be send as POST body
getPrevRecordID()  : int|null
Get next record ID
getRecordCode()  : string
Obtain record/object identificator code: Vrací identifikátor objektu code:
getRecordID()  : null|int
Obtain record/object numeric identificator id: Vrací číselný identifikátor objektu id:
getRecordIdent()  : string|int|null
Obtain record/object identificator extId: code: or id: Vrací identifikátor objektu extId: code: nebo id:
getRelationsInfo()  : array<string|int, mixed>
Obtain relations for current (or given) evidence
getReportsInfo()  : array<string|int, mixed>
Get Current Evidence reports listing
getResponseEvidence()  : string
Vrací název evidence použité v odpovědích z AbraFlexi
getResponseFormat()  : string
Obtain content type of last response
getVazby()  : array<string|int, mixed>|null
Obtain established relations listing
idExists()  : bool
Test if given record ID exists in AbraFlexi.
ignore404()  : bool
Set or get ignore not found pages flag
insertToAbraFlexi()  : array<string|int, mixed>
Save record (if evidence allow to).
join()  : bool
Join another Flexi Object
listToArray()  : array<string|int, mixed>
Convert coma-separated list to array
loadFromAbraFlexi()  : int
Načte záznam z AbraFlexi a uloží v sobě jeho data Read AbraFlexi record and store it inside od object
logBanner()  : mixed
Add Info about used user, server and libraries
login()  : bool
Try to Sign in current user to AbraFlexi and keep authSessionId
logout()  : array<string|int, mixed>
End (current's user) session
object2array()  : array<string|int, mixed>
Převede rekurzivně Objekt na pole.
objectToID()  : array<string|int, mixed>
Převede rekurzivně v poli všechny objekty na jejich identifikátory.
parseError()  : int
Parse error message response
parseResponse()  : array<string|int, mixed>
Parse Response array
performAction()  : bool
Perform given action (if availble) on current evidence/record
performRequest()  : array<string|int, mixed>|bool
Funkce, která provede I/O operaci a vyhodnotí výsledek.
processInit()  : mixed
Zinicializuje objekt dle daných dat. Možné hodnoty:
rawJsonToArray()  : array<string|int, mixed>
Convert AbraFlexi Response JSON to Array
rawResponseToArray()  : array<string|int, mixed>
Parse Raw AbraFlexi response in several formats
rawXmlToArray()  : array<string|int, mixed>
Convert AbraFlexi Response XML to Array
recordExists()  : bool
Test if given record exists in AbraFlexi.
reload()  : bool
Reload current record from AbraFlexi
requestAuthSessionID()  : string
Request authSessionId from current server
saveDebugFiles()  : mixed
Save RAW Curl Request & Response to files in Temp directory
saveResponseToFile()  : mixed
Save current object to file
sendByMail()  : bool
Send Document by mail
sendUnsent()  : bool
Send all unsent Documents by eMail
setAction()  : bool
Nastaví druh prováděné akce.
setCompany()  : mixed
Set used company.
setDataValue()  : bool
Set Data Field value
setEvidence()  : bool
Nastaví Evidenci pro Komunikaci.
setFilter()  : string
Set Filter code for requests
setFormat()  : bool
Set communication format.
setLabel()  : bool
Set Label for Current Object record
setMyKey()  : bool
Set Record Key
setObjectName()  : string
Set internal Object name
setPostFields()  : mixed
Připraví data pro odeslání do AbraFlexi
setPrefix()  : mixed
Set URL prefix
setUp()  : mixed
SetUp Object to be ready for work
stripBody()  : RO
Strip all non-identifier data
sync()  : bool
Insert current data into AbraFlexi and load actual record data back
takeData()  : int
Take data for object. separate external IDs
timestampToFlexiDate()  : Date
Convert Timestamp to AbraFlexi Date format.
timestampToFlexiDateTime()  : string
Convert Timestamp to Flexi DateTime format.
uncode()  : string
Returns CODE without code: prefix
unifyResponseFormat()  : array<string|int, mixed>
Return the same response format for one and multiplete results
unsetLabel()  : bool
UnSet Label for Current Object record
updateApiURL()  : mixed
Update $this->apiURL
updateColumnsInfo()  : mixed
Update evidence info from array or online from properties.json or offline
urlEncode()  : string
convert unicode to entities for use with AbraFlexi queries
urlizeId()  : string
Prepare record ID to use in URL
vazbaAdd()  : mixed
Přidá uživatelskou vazbu
vazbaDel()  : mixed
Smaže uživatelskou vazbu
xml2array()  : array<string|int, mixed>
Convert XML to array.

Properties

$actionsAvailable

Pole akcí které podporuje ta která evidence

public array<string|int, mixed> $actionsAvailable = null
Tags
link

Např. Akce faktury

$apiURL

URL of object data in AbraFlexi

public string $apiURL = null

url

$authSessionId

Session ID

public string $authSessionId = null

$autoload

Load whole record when id is given ?

public bool $autoload = true

$chained

Chained Objects

public array<string|int, mixed> $chained = []

$codes

Used codes storage.

public array<string|int, mixed> $codes = null

$curl

Curl Handle.

public resource|null $curl

$curlInfo

Informace o posledním HTTP requestu.

public array<string|int, mixed>|null $curlInfo

$defaultHttpHeaders

public array<string|int, mixed> $defaultHttpHeaders = []

Pole HTTP hlaviček odesílaných s každým požadavkem

$defaultUrlParams

Default additional request url parameters after question mark

public array<string|int, mixed> $defaultUrlParams = []
Tags
link

Common params

link

Paging params

$evidence

Evidence užitá objektem.

public string $evidence = 'stitek'

$evidenceInfo

Detaily evidence užité objektem

public array<string|int, mixed> $evidenceInfo = []

$globalVersion

Number from @globalVersion

public int $globalVersion = null

$infoDir

Where to get JSON files with evidence structure etc.

public static string $infoDir = __DIR__ . '/../../static'

$init

Identifikační řetězec.

public string $init = null

$keyColumn

Klíčový idendifikátor záznamu.

public string $keyColumn = 'id'

$lastCurlError

Informace o poslední HTTP chybě.

public string $lastCurlError = null

$lastCurlResponse

Raw Content of last curl response

public string $lastCurlResponse

$lastInsertedID

Last Inserted ID.

public int $lastInsertedID = null

$lastResponseCode

HTTP Response code of last request

public int $lastResponseCode = null

$lastResult

Last operation result data or message(s)

public array<string|int, mixed> $lastResult = null

$libVersion

Version of AbraFlexi library

public static string $libVersion = '2.20'

$myCreateColumn

Sloupeček obsahující datum vložení záznamu do shopu.

public string $myCreateColumn = 'false'

$myLastModifiedColumn

Slopecek obsahujici datum poslení modifikace záznamu do shopu.

public string $myLastModifiedColumn = 'lastUpdate'

$nameColumn

Sloupeček s názvem.

public string $nameColumn = 'nazev'

$nameSpace

Basic namespace for communication with AbraFlexi

public string $nameSpace = 'winstrom'

Jmený prostor datového bloku odpovědi

$nativeTypes

Convert server data to its native types ? eg. nubmers to integer You can disable it using setUp

public bool $nativeTypes = true

$objectName

Object Name used for logging

public string $objectName = null

$offline

We Connect to server by default

public bool $offline = false

$password

REST API Password

public string $password = null

$postFields

Body data for next curl POST operation

public string $postFields = null

$prefix

Default Line Prefix.

public string $prefix = '/c/'

$protoVersion

Communication protocol version used.

public string $protoVersion = '1.0'

Verze použitého API

$refreshToken

Token obtained during login procedure

public string $refreshToken = null

$reportRecipient

Send Error500 Report to

public string $reportRecipient = 'podpora@abraflexi.eu'

email address

$resultField

Data block in response field.

public string $resultField = 'results'

$rowCount

Number from @rowCount in response

public int $rowCount = null

$throwException

Throw Exception in case of AbraFlexi error

public bool $throwException = true

$timeout

Override cURL timeout

public int $timeout = null

seconds

$url

[protocol://]Server[:port]

public string $url = null

$urlParams

The List of known parameters was renamed to $urlParamsKnown

public array<string|int, mixed> $urlParams
Tags
deprecated

since version 2.23

$urlParamsKnown

Parmetry pro URL

public array<string|int, mixed> $urlParamsKnown = [ 'add-global-version' => ['type' => 'boolean', 'description' => 'The response will contain the global version number of the current export'], 'add-row-count' => ['type' => 'boolean', 'description' => 'Adding Total Records to Output (Pagination)'], 'as-gui' => ['type' => 'boolean', 'description' => 'Turns on functions that complement the GUI processing outputs'], 'auth' => ['type' => 'string', 'description' => 'http: Forces login using HTTP authentication, for example, to change the default WUI login method. html: Force HTML form authentication. This can be useful to suppress automatic SSO authentication.'], 'authSessionId' => ['type' => 'string', 'description' => 'Authentification Session ID'], 'code-as-id' => ['type' => 'boolean', 'description' => 'If an object has unique code, it is also exported (except for the <code> element) as <id> code: ... </id>'], 'code-in-response' => ['type' => 'boolean', 'description' => 'The response will contain not only ID and URL for each object, but also code.'], 'delimeter' => ['type' => 'string', 'description' => 'Specifies the input / output file separator in CSV format.', 'example' => ';'], 'detail' => ['type' => 'string', 'description' => 'Definition of the level of detail'], //See: https://www.abraflexi.eu/api/dokumentace/ref/detail-levels 'dir' => ['type' => 'string', 'description' => 'Sorting direction.', 'example' => 'desc'], 'dry-run' => ['type' => 'boolean', 'description' => 'Test run (dry-run)'], // See: https://www.abraflexi.eu/api/dokumentace/ref/dry-run/ 'encoding' => ['type' => 'string', 'description' => 'Specifies the encoding of the input / output file in CSV format.'], 'export-settings' => ['type' => 'boolean', 'description' => 'Export one extra entry with current settings at the beginning'], 'fail-on-warning' => ['type' => 'boolean', 'description' => 'If a warning occurs, do not save a record (Data Validation)'], 'filter' => ['type' => 'string', 'description' => 'filter results by this param'], 'format' => ['type' => 'string', 'description' => 'One of the compiled XSL transforms will be applied to the output XML.'], 'idUcetniObdobi' => ['type' => 'string', 'description' => ''], //See: https://www.abraflexi.eu/api/dokumentace/ref/stavy-uctu/ 'includes' => ['type' => 'string', 'description' => 'Include related detail level object ', 'example' => 'faktura-vydana/stredisko'], 'inDesktopApp' => ['type' => 'boolean', 'description' => 'Hide menu and navigation in html format'], // Note: Undocumented function (html only) 'limit' => ['type' => 'integer', 'description' => 'number of requested results'], 'mode' => ['type' => 'string', 'description' => 'Support for RubyOnRails', 'example' => 'ruby'], 'no-ext-ids' => ['type' => 'boolean', 'description' => 'The answer will not contain external identifiers (performance optimization)'], 'no-http-errors' => ['type' => 'boolean', 'description' => 'If a 4xx error occurs while processing a request, the server sends 200 OK anyway'], 'no-ids' => ['type' => 'boolean', 'description' => 'The response will not contain any primary identifiers (performance optimization). It only affects the main records.'], 'only-ext-ids' => ['type' => 'boolean', 'description' => 'The primary key will not be exported, the <id> elements will only contain the external ID. Similar no-ids, but also affects subevidencies.'], 'order' => ['type' => 'string', 'description' => 'Sorting records', 'example' => 'nazev@A'], 'relations' => ['type' => 'string', 'description' => 'Adding session data (see detail levels) A session overview can be obtained for each record (/ relations).'], 'report-lang' => ['type' => 'string', 'description' => 'The language in which to print the output when exporting to PDF', 'example' => 'en'], 'report-name' => ['type' => 'string', 'description' => 'The name of the printout when exporting to PDF', 'example' => 'invoice'], 'report-sign' => ['type' => 'string', 'description' => 'Whether the PDF should be exported electronically signed'], 'skupina-stitku' => ['type' => 'string', 'description' => 'Enables grouping of labels when exporting by group (multiple labels)'], 'sort' => ['type' => 'string', 'description' => 'Sorting records for ExtJS'], 'start' => ['type' => 'integer', 'description' => 'Pagination'], 'stitky-as-ids' => ['type' => 'boolean', 'description' => 'Labels will be exported and imported not as a code list but as a list of numeric IDs'], 'use-ext-id' => ['type' => 'boolean', 'description' => 'If the object contains an external ESHOP or MY ID, use it as a bind.'], 'use-internal-id' => ['type' => 'boolean', 'description' => 'In addition to the ref and showAs for objects, it also supplies an internalId attribute that contains the internal record ID'], 'xpath' => ['type' => 'string', 'description' => 'Apply XPATH to result', 'example' => '//winstrom/adresar/email/text()'], ]
Tags
link

Všechny podporované parametry

$user

REST API Username

public string $user = null

$vsbToEvidencePath

Evidence Path for vsb supported by label

public static array<string|int, mixed> $vsbToEvidencePath = [ 'vsbAdr' => 'adresar', // Adresář 'vsbBan' => 'banka', // Banka // 'vsbCis' => 'ciselnik', // Číselníky 'vsbFap' => 'faktura-prijata', // Přijaté faktury 'vsbFav' => 'faktura-vydana', // Vydané faktury // 'vsbInt' => '' // Interní doklady 'vsbKatalog' => 'cenik', // Adresář // 'vsbMaj' => '', // Majetek // 'vsbMzd' => 'mzda', // Mzdy 'vsbNap' => 'nabidka-prijata', // Nabídky přijaté 'vsbNav' => 'nabidka-vydana', // Nabídky vydané 'vsbObp' => 'objednavka-prijata', // Objednávky přijaté 'vsbObv' => 'objednavka-vydana', // Objednávky vydané 'vsbPhl' => 'pohledavka', // Pohledávky 'vsbPok' => 'pokladna', // Pokladna 'vsbPpp' => 'poptavka-prijata', // Poptávky přijaté 'vsbPpv' => 'poptavka-vydana', // Poptávky vydané 'vsbSkl' => 'sklad', // Sklad 'vsbZav' => 'zavazek', ]

$errors

Array of errors caused by last request

protected array<string|int, mixed> $errors = []

$ignoreNotFound

Save 404 results to log ?

protected bool $ignoreNotFound = false

$responseStats

Last Request response stats

protected array<string|int, mixed> $responseStats = null

$columnsInfo

Columns Info for serveral evidencies

private array<string|int, mixed> $columnsInfo = []

$reports

List of Error500 reports sent

private array<string|int, mixed> $reports = []

$sourceId

Record Copy helper

private int $sourceId = null

Methods

__construct()

Class for read only interaction with AbraFlexi.

public __construct([mixed $init = null ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$init : mixed = null

default record id or initial data. See processInit()

$options : array<string|int, mixed> = []

Connection settings and other options override

Return values
mixed

__destruct()

Disconnect CURL befere pass away

public __destruct() : mixed
Return values
mixed

__toString()

Obtain record/object identificator code: or id: Vrací identifikátor objektu code: nebo id:

public __toString() : string
Tags
link

Identifikátory záznamů

Return values
string

indentifikátor záznamu reprezentovaného objektem

__wakeup()

Reconnect After unserialization

public __wakeup() : mixed
Return values
mixed

addArrayToBranch()

Add Data to evidence Branch Přidá data do větve

public addArrayToBranch(array<string|int, mixed> $data[, string $relationPath = 'polozkyDokladu' ][, bool $removeAll = false ]) : bool
Parameters
$data : array<string|int, mixed>

pole dat

$relationPath : string = 'polozkyDokladu'

path evidence (relation) pro vkládaná data

$removeAll : bool = false
Tags
thanksto

Karel Běl

see
Relations
Return values
bool

Operation success

addDefaultUrlParams()

public addDefaultUrlParams(string $urlRaw) : mixed
Parameters
$urlRaw : string
Return values
mixed

addExternalID()

Add External ID to Current Record

public addExternalID(string $extId) : array<string|int, mixed>
Parameters
$extId : string

ext:whatever:123 or simplay whatever:123

Return values
array<string|int, mixed>

Insert result

addObjectToBranch()

Vloží do větve data z objektu

public addObjectToBranch(RO $object[, bool $removeAll = false ]) : mixed
Parameters
$object : RO

objekt evidence

$removeAll : bool = false

flush older items

Return values
mixed

arrayCleanUP()

Remove all @ items from array

public static arrayCleanUP(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>

original data

Return values
array<string|int, mixed>

data without @ columns

assignResultIDs()

Assign result IDs to its source objects

public assignResultIDs(array<string|int, mixed> $candidates) : mixed
Parameters
$candidates : array<string|int, mixed>

AbraFlexi insert IDs prepared by extractResultIDs()

Return values
mixed

changeExternalID()

Change Value of external id identified by selector. Add new if not exists

public changeExternalID(string $selector, string|int $newValue[, string|int $forID = null ]) : array<string|int, mixed>
Parameters
$selector : string

ext:$selector:$newValue

$newValue : string|int

string or number

$forID : string|int = null

Other than current record id

Return values
array<string|int, mixed>

operation result

code()

Returns code:CODE

public static code(string $code) : string
Parameters
$code : string
Tags
deprecated

since version 2.24 - use Functions::code instead

Return values
string

companyUrlToOptions()

Convert companyUrl provided by CustomButton to options array

public static companyUrlToOptions(string $companyUrl) : array<string|int, mixed>
Parameters
$companyUrl : string
Tags
deprecated

since version 2.24 - use Functions::companyUrlToOptions instead

Return values
array<string|int, mixed>

Options

configToEnv()

Export current/given configutation into Environment

public configToEnv([array<string|int, mixed> $opts = [] ]) : mixed
Parameters
$opts : array<string|int, mixed> = []
Return values
mixed

connectionReset()

Reset Curl Connection

public connectionReset() : mixed
Return values
mixed

contentTypeToResponseFormat()

Obtain json for application/json

public contentTypeToResponseFormat(string $contentType[, string $url = null ]) : string
Parameters
$contentType : string
$url : string = null
Return values
string

response format

controlMandatoryColumns()

Control data for mandatory columns presence.

public controlMandatoryColumns([array<string|int, mixed> $data = null ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed> = null
Tags
deprecated

since version 1.8.7

Return values
array<string|int, mixed>

List of missing columns. Empty if all is ok

controlReadOnlyColumns()

Control data for readonly columns presence.

public controlReadOnlyColumns([array<string|int, mixed> $data = null ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed> = null
Return values
array<string|int, mixed>

List of ReadOnly columns. Empty if all is ok

copy()

Make Copy of given record with optional modifiactions

public copy(int $source[, array<string|int, mixed> $overrides = [] ]) : RW|null

!!!Experimental Feature!!!

Parameters
$source : int
$overrides : array<string|int, mixed> = []
Return values
RW|null

copied record object or null in case of failure

createNew()

Create New Label for given evidencies

public createNew(string $name, array<string|int, mixed> $evidences[, array<string|int, mixed> $options = [] ]) : bool
Parameters
$name : string

Label Name

$evidences : array<string|int, mixed>

Evidence code list ex: ['faktura-vydana','faktura-prijata']

$options : array<string|int, mixed> = []

Additional Label properties ex: ['kod'=>'EXAMPLE','skupVybKlic'=>'SKUPINA_STITKU']

Return values
bool

success

curlInit()

Inicializace CURL

public curlInit() : bool
Return values
bool

Online Status

dateToFlexiDate()

PHP Date object to AbraFlexi date format

public static dateToFlexiDate(DateTime $date) : mixed
Parameters
$date : DateTime
Tags
deprecated

since version 2.24 - use Functions::dateToFlexiDate instead

Return values
mixed

dateToFlexiDateTime()

PHP Date object to AbraFlexi date format

public static dateToFlexiDateTime(DateTime $dateTime) : mixed
Parameters
$dateTime : DateTime
Tags
deprecated

since version 2.24 - use Functions::dateToFlexiDateTime instead

Return values
mixed

deleteFromAbraFlexi()

Smaže záznam Delete record in AbraFlexi

public deleteFromAbraFlexi([int|string $id = null ]) : bool
Parameters
$id : int|string = null

identifikátor záznamu

Return values
bool

Response code is 200 ?

disconnect()

Odpojení od AbraFlexi.

public disconnect() : mixed
Return values
mixed

doCurlRequest()

Vykonej HTTP požadavek

public doCurlRequest(string $url, string $method[, string $format = null ]) : int
Parameters
$url : string

URL požadavku

$method : string

HTTP Method GET|POST|PUT|OPTIONS|DELETE

$format : string = null

požadovaný formát komunikace

Tags
link

Sestavování URL

Return values
int

HTTP Response CODE

downloadInFormat()

Uloží dokument v daném formátu do složky v systému souborů Save document in given format to directory in filesystem

public downloadInFormat(string $format[, string $destDir = './' ][, string $reportName = null ][, string $lang = null ][, bool $sign = false ]) : string|null
Parameters
$format : string

pdf/csv/xml/json/ ...

$destDir : string = './'

where to put file (prefix)

$reportName : string = null

Template used to generate PDF

$lang : string = null

Requested Language

$sign : bool = false

download digital signed

Return values
string|null

filename downloaded or none

error500Reporter()

Compile and send Report about Error500 to AbraFlexi developers If AbraFlexi is running on localost try also include java backtrace

public error500Reporter(array<string|int, mixed> $errorResponse) : mixed
Parameters
$errorResponse : array<string|int, mixed>

result of parseError();

Return values
mixed

evidenceToClassName()

Gives you AbraFlexi class name for Given Evidence

public static evidenceToClassName(string $evidence) : string
Parameters
$evidence : string
Tags
deprecated

since version 2.24 - use Functions::evidenceToClassName instead

Return values
string

Class name

evidenceUrlWithSuffix()

Add suffix to Evidence URL

public evidenceUrlWithSuffix(string $urlSuffix) : string
Parameters
$urlSuffix : string
Return values
string

extractResultIDs()

Extract IDs from AbraFlexi response Array

public extractResultIDs(array<string|int, mixed> $resultInfo) : array<string|int, mixed>
Parameters
$resultInfo : array<string|int, mixed>

AbraFlexi response

Return values
array<string|int, mixed>

List of [ 'evidence1'=>[ 'original-id'=>numericID,'original-id2'=>numericID2 ], 'evidence2'=> ... ]

extractUrlParams()

Oddělí z pole podmínek ty jenž patří za ? v URL požadavku

public extractUrlParams(array<string|int, mixed> &$conditions, array<string|int, mixed> &$urlParams) : mixed
Parameters
$conditions : array<string|int, mixed>

pole podmínek - rendrují se do ()

$urlParams : array<string|int, mixed>

pole parametrů - rendrují za ?

Tags
link

Sestavování URL

Return values
mixed

fixRecordTypes()

Fix AbraFlexi record field types

public fixRecordTypes(array<string|int, mixed> $record[, string $evidence = null ]) : array<string|int, mixed>
Parameters
$record : array<string|int, mixed>
$evidence : string = null

force other than current

Tags
throws
Exception
Return values
array<string|int, mixed>

with items typed

fixResponseTypes()

Fix field types in AbraFlexi server response

public fixResponseTypes(array<string|int, mixed> $response) : array<string|int, mixed>
Parameters
$response : array<string|int, mixed>

raw response

Return values
array<string|int, mixed>

types resolved

flexiDateTimeToDateTime()

AbraFlexi dateTime to PHP DateTime conversion

public static flexiDateTimeToDateTime(string $flexidatetime) : DateTime
Parameters
$flexidatetime : string

2017-09-26T10:00:53.755+02:00 or older 2017-05-19T00:00:00+02:00

Tags
deprecated

since version 2.24 - use Functions::flexiDateTimeToDateTime instead

Return values
DateTime

| false

flexiDateToDateTime()

AbraFlexi date to PHP DateTime conversion

public static flexiDateToDateTime(string $flexidate) : DateTime
Parameters
$flexidate : string

2017-05-26 or 2017-05-26Z or 2017-05-26+02:00

Tags
deprecated

since version 2.24 - use Functions::flexiDateToDateTime instead

Return values
DateTime

| false

flexiIN()

Prepare "IN" subselect

public static flexiIN(array<string|int, mixed> $items, string $key) : string
Parameters
$items : array<string|int, mixed>
$key : string
Tags
deprecated

since version 2.24 - use Functions::flexiIN instead

Return values
string

"in" fragment

flexiUrl()

Generuje fragment url pro filtrování.

public static flexiUrl(array<string|int, mixed> $data[, string $joiner = 'and' ][, string $defop = 'eq' ]) : string
Parameters
$data : array<string|int, mixed>

key=>values; value can bee class DatePeriod, DateTime or Array

$joiner : string = 'and'

default and/or

$defop : string = 'eq'

default operator

Tags
see
https://www.abraflexi.eu/api/dokumentace/ref/filters
deprecated

since version 2.24 - use Functions::flexiUrl instead

Return values
string

getAbraFlexiURL()

Gives You URL for Current Record in AbraFlexi web interface

public getAbraFlexiURL() : string
Return values
string

url

getActionsInfo()

Obtain actions for current (or given) evidence

public getActionsInfo([string $evidence = null ]) : array<string|int, mixed>
Parameters
$evidence : string = null
Return values
array<string|int, mixed>

Evidence structure

getAllFromAbraFlexi()

Vrací z AbraFlexi sloupečky podle podmínek.

public getAllFromAbraFlexi([array<string|int, mixed>|int|string $conditions = null ][, string $indexBy = null ]) : array<string|int, mixed>
Parameters
$conditions : array<string|int, mixed>|int|string = null

pole podmínek nebo ID záznamu

$indexBy : string = null

klice vysledku naplnit hodnotou ze sloupečku

Return values
array<string|int, mixed>

getApiURL()

Gives you current ApiURL with given format suffix

public getApiURL([string $format = null ]) : string
Parameters
$format : string = null

json|html|xml|...

Return values
string

API URL for current record or object/evidence

getAvailbleLabels()

Obtain list of availble labels for given object

public static getAvailbleLabels(RO $object) : array<string|int, mixed>
Parameters
$object : RO
Return values
array<string|int, mixed>

getColumnInfo()

Gives you properties for (current) evidence column

public getColumnInfo(string $column[, string $evidence = null ]) : array<string|int, mixed>
Parameters
$column : string

name of column

$evidence : string = null

evidence name if different

Return values
array<string|int, mixed>

column properties or null if column not exits

getColumnsFromAbraFlexi()

Vrací z AbraFlexi sloupečky podle podmínek.

public getColumnsFromAbraFlexi(string|array<string|int, string> $columnsList[, array<string|int, mixed> $conditions = [] ][, string $indexBy = null ]) : array<string|int, mixed>
Parameters
$columnsList : string|array<string|int, string>

seznam položek nebo úrověň detailu: id|summary|full

$conditions : array<string|int, mixed> = []

pole podmínek nebo ID záznamu

$indexBy : string = null

Sloupeček podle kterého indexovat záznamy

Return values
array<string|int, mixed>

getColumnsInfo()

Gives you evidence structure. You can obtain current online by pre-calling: $this->updateColumnsInfo($evidence, $this->getOnlineColumnsInfo($evidence));

public getColumnsInfo([string $evidence = null ]) : array<string|int, mixed>
Parameters
$evidence : string = null
Return values
array<string|int, mixed>

getCompany()

Obtain company now used Vrací právě používanou firmu

public getCompany() : string
Return values
string

getConnectionOptions()

Get Current connection options for use in another object

public getConnectionOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

usable as second constructor parameter

getDataForJSON()

Get Data Fragment specific for current object

public getDataForJSON([array<string|int, mixed> $data = null ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed> = null
Return values
array<string|int, mixed>

getErrors()

Last operation errors

public getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>

AbraFlexi error meassages

getEvidence()

Vrací právě používanou evidenci pro komunikaci Obtain current used evidence

public getEvidence() : string
Return values
string

getEvidenceInfo()

Obtain info for current (or given) evidence

public getEvidenceInfo([string $evidence = null ]) : array<string|int, mixed>
Parameters
$evidence : string = null
Return values
array<string|int, mixed>

Evidence info

getEvidenceName()

Obtain name for current (or given) evidence path

public getEvidenceName([string $evidence = null ]) : array<string|int, mixed>
Parameters
$evidence : string = null

Evidence Path

Return values
array<string|int, mixed>

Evidence info

getEvidenceURL()

Return basic URL for used Evidence

public getEvidenceURL() : string
Tags
link

Sestavování URL

Return values
string

Evidence URL

getExternalID()

Vrací hodnotu daného externího ID

public getExternalID([string $want = null ]) : string|array<string|int, mixed>
Parameters
$want : string = null

Namespace Selector. If empty,you obtain the first one.

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

one id or array if multiplete

getExternalIDs()

gives you currently loaded extermal IDs

public getExternalIDs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFirstRecordID()

Obtain ID of first record in evidence

public getFirstRecordID() : string|null
Return values
string|null

id or null if no records

getFlexiData()

Načte data z AbraFlexi.

public getFlexiData([string $suffix = '' ][, string|array<string|int, mixed> $conditions = null ]) : array<string|int, mixed>
Parameters
$suffix : string = ''

dotaz

$conditions : string|array<string|int, mixed> = null

Custom filters or modifiers

Return values
array<string|int, mixed>

Data obtained

getFlexiRow()

Načte řádek dat z AbraFlexi.

public getFlexiRow(int $recordID) : array<string|int, mixed>
Parameters
$recordID : int

id požadovaného záznamu

Return values
array<string|int, mixed>

getGlobalVersion()

Obtain actual GlobalVersion Vrací aktuální globální verzi změn

public getGlobalVersion() : int
Tags
link

Globální Verze

Return values
int

getInFormat()

Získá dokument v daném formátu Obtain document in given format

public getInFormat(string $format[, string $reportName = null ][, string $lang = null ][, bool $sign = false ]) : string|null
Parameters
$format : string

pdf/csv/xml/json/ ...

$reportName : string = null

Template used to generate PDF

$lang : string = null

cs|sk|en|de Template language used to generate PDF

$sign : bool = false

sign resulting PDF by certificate ?

Tags
link

PDF Exports

Return values
string|null

filename downloaded or none

getJsonizedData()

Převede data do Json formátu pro AbraFlexi.

public getJsonizedData([array<string|int, mixed> $data = null ], int $options) : string

Convert data to AbraFlexi like Json format

Parameters
$data : array<string|int, mixed> = null

object data

$options : int

json_encode options like JSON_PRETTY_PRINT etc

Tags
url

https://www.abraflexi.eu/api/dokumentace/ref/actions/

url

https://www.abraflexi.eu/api/dokumentace/ref/zamykani-odemykani/

Return values
string

getKod()

Vrací kód záznamu.

public getKod([mixed $data = null ][, mixed $unique = true ]) : string

Obtain record CODE

Parameters
$data : mixed = null
$unique : mixed = true
Tags
deprecated

since version 2.25 - do not use at all

Return values
string

getLabels()

Obtain labels for current record

public static getLabels(RO $object) : array<string|int, mixed>
Parameters
$object : RO

data source

Tags
deprecated

since version 1.21

Return values
array<string|int, mixed>

labels

getLastInsertedId()

Give you last inserted record ID.

public getLastInsertedId() : int
Return values
int

getLastOperationType()

Get Last operation type

public getLastOperationType() : string
Return values
string

create|read|update|delete or update,insert for some inserted and updated in one transaction

getNextRecordID()

Get next record ID

public getNextRecordID([array<string|int, mixed> $conditions = [] ]) : int|null
Parameters
$conditions : array<string|int, mixed> = []

optional

Return values
int|null

getOfflineColumnsInfo()

Obtain structure for current (or given) evidence

public getOfflineColumnsInfo([string $evidence = null ]) : array<string|int, mixed>
Parameters
$evidence : string = null
Return values
array<string|int, mixed>

Evidence structure

getOnlineColumnsInfo()

Obtain Current evidence Live structure

public getOnlineColumnsInfo([string $evidence = null ]) : array<string|int, mixed>
Parameters
$evidence : string = null
Return values
array<string|int, mixed>

structure

getPostFields()

Get Content ready to be send as POST body

public getPostFields() : string
Return values
string

getPrevRecordID()

Get next record ID

public getPrevRecordID([array<string|int, mixed> $conditions = [] ]) : int|null
Parameters
$conditions : array<string|int, mixed> = []

optional

Return values
int|null

getRecordCode()

Obtain record/object identificator code: Vrací identifikátor objektu code:

public getRecordCode() : string
Tags
link

Identifikátory záznamů

Return values
string

record code identifier

getRecordID()

Obtain record/object numeric identificator id: Vrací číselný identifikátor objektu id:

public getRecordID() : null|int
Tags
link

Identifikátory záznamů

Return values
null|int

indentifikátor záznamu reprezentovaného objektem

getRecordIdent()

Obtain record/object identificator extId: code: or id: Vrací identifikátor objektu extId: code: nebo id:

public getRecordIdent() : string|int|null
Tags
link

Identifikátory záznamů

Return values
string|int|null

record code identifier

getRelationsInfo()

Obtain relations for current (or given) evidence

public getRelationsInfo([string $evidence = null ]) : array<string|int, mixed>
Parameters
$evidence : string = null
Return values
array<string|int, mixed>

Evidence structure

getReportsInfo()

Get Current Evidence reports listing

public getReportsInfo() : array<string|int, mixed>
Tags
link

Výběr reportu do PDF

Return values
array<string|int, mixed>

getResponseEvidence()

Vrací název evidence použité v odpovědích z AbraFlexi

public getResponseEvidence() : string
Return values
string

getResponseFormat()

Obtain content type of last response

public getResponseFormat() : string
Return values
string

getVazby()

Obtain established relations listing

public getVazby([mixed $id = null ]) : array<string|int, mixed>|null
Parameters
$id : mixed = null
Return values
array<string|int, mixed>|null

or Relations

idExists()

Test if given record ID exists in AbraFlexi.

public idExists([mixed $identifer = null ]) : bool
Parameters
$identifer : mixed = null

presence state

Tags
deprecated

since version 2.25 - use recordExists() instead

Return values
bool

ignore404()

Set or get ignore not found pages flag

public ignore404([bool $ignore = null ]) : bool
Parameters
$ignore : bool = null

set flag to

Return values
bool

get flag state

insertToAbraFlexi()

Save record (if evidence allow to).

public insertToAbraFlexi([array<string|int, mixed> $data = null ]) : array<string|int, mixed>

Uloží záznam (pokud to evidence dovoluje)

Parameters
$data : array<string|int, mixed> = null

Data to save

Tags
throws
Exception

Evidence does not support Import

Return values
array<string|int, mixed>

odpověď

join()

Join another Flexi Object

public join(RO &$object) : bool
Parameters
$object : RO
Return values
bool

adding to stack success

listToArray()

Convert coma-separated list to array

public static listToArray(string|array<string|int, mixed> $listRaw) : array<string|int, mixed>
Parameters
$listRaw : string|array<string|int, mixed>
Return values
array<string|int, mixed>

loadFromAbraFlexi()

Načte záznam z AbraFlexi a uloží v sobě jeho data Read AbraFlexi record and store it inside od object

public loadFromAbraFlexi([int|string|array<string|int, mixed> $id = null ]) : int
Parameters
$id : int|string|array<string|int, mixed> = null

ID or conditions

Return values
int

počet načtených položek

logBanner()

Add Info about used user, server and libraries

public logBanner([string $prefix = null ][, string $suffix = null ]) : mixed
Parameters
$prefix : string = null

banner prefix text

$suffix : string = null

banner suffix text

Return values
mixed

login()

Try to Sign in current user to AbraFlexi and keep authSessionId

public login() : bool
Return values
bool

sign in success

logout()

End (current's user) session

public logout([string $username = null ]) : array<string|int, mixed>
Parameters
$username : string = null

force username to sign off

Tags
link

Logout Reference

Return values
array<string|int, mixed>

server response

object2array()

Převede rekurzivně Objekt na pole.

public static object2array(object|array<string|int, mixed> $object) : array<string|int, mixed>
Parameters
$object : object|array<string|int, mixed>
Tags
deprecated

since version 2.24 - use Functions::object2array instead

Return values
array<string|int, mixed>

objectToID()

Převede rekurzivně v poli všechny objekty na jejich identifikátory.

public static objectToID(object|array<string|int, mixed> $object) : array<string|int, mixed>
Parameters
$object : object|array<string|int, mixed>
Tags
deprecated

since version 2.24 - use Functions::objectToID instead

Return values
array<string|int, mixed>

parseError()

Parse error message response

public parseError(array<string|int, mixed> $responseDecoded) : int
Parameters
$responseDecoded : array<string|int, mixed>
Return values
int

number of errors processed

parseResponse()

Parse Response array

public parseResponse(array<string|int, mixed>|string $responseDecoded, int $responseCode) : array<string|int, mixed>
Parameters
$responseDecoded : array<string|int, mixed>|string
$responseCode : int

Request Response Code

Return values
array<string|int, mixed>

main data part of response

performAction()

Perform given action (if availble) on current evidence/record

public performAction(string $action[, string $method = 'int' ]) : bool
Parameters
$action : string

one of evidence actions

$method : string = 'int'

ext|int External method call operation in URL. Internal add the @action element to request body

Tags
url

https://demo.flexibee.eu/devdoc/actions

Return values
bool

operation success

performRequest()

Funkce, která provede I/O operaci a vyhodnotí výsledek.

public performRequest([string $urlSuffix = '' ][, string $method = 'GET' ][, string $format = null ]) : array<string|int, mixed>|bool
Parameters
$urlSuffix : string = ''

část URL za identifikátorem firmy.

$method : string = 'GET'

HTTP/REST metoda

$format : string = null

Requested format

Return values
array<string|int, mixed>|bool

Výsledek operace

processInit()

Zinicializuje objekt dle daných dat. Možné hodnoty:

public processInit(mixed $init) : mixed
  • 234 - interní číslo záznamu k načtení
  • code:LOPATA - kód záznamu
  • BAGR - kód záznamu k načtení
  • ['id'=>24,'nazev'=>'hoblík'] - pole hodnot k předvyplnění
  • 743.json?relations=adresa,vazby - část url s parametry k načtení
Parameters
$init : mixed

číslo/"(code:)kód"/(část)URI záznamu k načtení | pole hodnot k předvyplnění

Return values
mixed

rawJsonToArray()

Convert AbraFlexi Response JSON to Array

public rawJsonToArray(string $rawJson) : array<string|int, mixed>
Parameters
$rawJson : string
Return values
array<string|int, mixed>

rawResponseToArray()

Parse Raw AbraFlexi response in several formats

public rawResponseToArray(string $responseRaw, string $format) : array<string|int, mixed>
Parameters
$responseRaw : string

raw response body

$format : string

Raw Response format json|xml|etc

Return values
array<string|int, mixed>

rawXmlToArray()

Convert AbraFlexi Response XML to Array

public rawXmlToArray(string $rawXML) : array<string|int, mixed>
Parameters
$rawXML : string
Return values
array<string|int, mixed>

recordExists()

Test if given record exists in AbraFlexi.

public recordExists([array<string|int, mixed>|string|int $data = [] ]) : bool
Parameters
$data : array<string|int, mixed>|string|int = []

ext:id:23|code:ITEM|['id'=>23]|23

Return values
bool

Record presence status

reload()

Reload current record from AbraFlexi

public reload() : bool
Return values
bool

requestAuthSessionID()

Request authSessionId from current server

public requestAuthSessionID(string $username, string $password[, string $otp = null ]) : string
Parameters
$username : string
$password : string
$otp : string = null

optional onetime password

Tags
link

description

Return values
string

authUserId or null in case of problems

saveDebugFiles()

Save RAW Curl Request & Response to files in Temp directory

public saveDebugFiles() : mixed
Return values
mixed

saveResponseToFile()

Save current object to file

public saveResponseToFile(string $destfile) : mixed
Parameters
$destfile : string

path to file

Return values
mixed

sendByMail()

Send Document by mail

public sendByMail(string $to, string $subject, string $body[, mixed $cc = null ]) : bool
Parameters
$to : string

Email ecipient

$subject : string

Email Subject

$body : string

Email Text

$cc : mixed = null
Tags
url

https://www.abraflexi.eu/api/dokumentace/ref/odesilani-mailem/

Return values
bool

mail sent status

sendUnsent()

Send all unsent Documents by eMail

public sendUnsent() : bool
Tags
url

https://www.abraflexi.eu/api/dokumentace/ref/odesilani-mailem/

Return values
bool

http response code

setAction()

Nastaví druh prováděné akce.

public setAction(string $action) : bool
Parameters
$action : string
Tags
link

Provádění akcí

Return values
bool

setCompany()

Set used company.

public setCompany(string $company) : mixed

Nastaví Firmu.

Parameters
$company : string
Return values
mixed

setDataValue()

Set Data Field value

public setDataValue(string $columnName, mixed $value) : bool
Parameters
$columnName : string

field name

$value : mixed

field data value

Return values
bool

Success

setEvidence()

Nastaví Evidenci pro Komunikaci.

public setEvidence(string $evidence) : bool

Set evidence for communication

Parameters
$evidence : string

evidence pathName to use

Return values
bool

evidence switching status

setFormat()

Set communication format.

public setFormat(string $format) : bool

One of html|xml|json|csv|dbf|xls|isdoc|isdocx|edi|pdf|pdf|vcf|ical

Parameters
$format : string
Return values
bool

format is availble

setLabel()

Set Label for Current Object record

public static setLabel(string $label, RW $object) : bool
Parameters
$label : string
$object : RW
Tags
deprecated

since version 1.21

Return values
bool

success result ?

setMyKey()

Set Record Key

public setMyKey(int|string $myKeyValue) : bool
Parameters
$myKeyValue : int|string
Return values
bool

setObjectName()

Set internal Object name

public setObjectName([string $objectName = null ]) : string
Parameters
$objectName : string = null
Return values
string

Jméno objektu

setPostFields()

Připraví data pro odeslání do AbraFlexi

public setPostFields(string $data) : mixed
Parameters
$data : string
Return values
mixed

setPrefix()

Set URL prefix

public setPrefix(string $prefix) : mixed
Parameters
$prefix : string
Return values
mixed

setUp()

SetUp Object to be ready for work

public setUp([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

Object Options ( user,password,authSessionId company,url,evidence, prefix,defaultUrlParams,debug,autoload detail,offline,filter,ignore404,nativeTypes timeout,companyUrl,ver,throwException

Return values
mixed

stripBody()

Strip all non-identifier data

public stripBody([array<string|int, mixed> $keep = [] ]) : RO
Parameters
$keep : array<string|int, mixed> = []

extra columns to be preserved

Return values
RO

Current object state

sync()

Insert current data into AbraFlexi and load actual record data back

public sync([array<string|int, mixed> $data = null ]) : bool
Parameters
$data : array<string|int, mixed> = null

Initial data to save

Return values
bool

Operation success

takeData()

Take data for object. separate external IDs

public takeData(array<string|int, mixed> $data) : int
Parameters
$data : array<string|int, mixed>

Data to keep

Return values
int

number of records taken

timestampToFlexiDate()

Convert Timestamp to AbraFlexi Date format.

public static timestampToFlexiDate([int $timpestamp = null ]) : Date
Parameters
$timpestamp : int = null
Tags
deprecated

since version 2.19 - please use \AbraFlexi\Date() object instead

Return values
Date

or NULL

timestampToFlexiDateTime()

Convert Timestamp to Flexi DateTime format.

public static timestampToFlexiDateTime([int $timpestamp = null ]) : string
Parameters
$timpestamp : int = null
Return values
string

AbraFlexi DateTime or NULL

uncode()

Returns CODE without code: prefix

public static uncode(string $code) : string
Parameters
$code : string
Tags
deprecated

since version 2.24 - Use Functions::uncode instead

Return values
string

unifyResponseFormat()

Return the same response format for one and multiplete results

public unifyResponseFormat(array<string|int, mixed> $responseBody) : array<string|int, mixed>
Parameters
$responseBody : array<string|int, mixed>
Return values
array<string|int, mixed>

unsetLabel()

UnSet Label for Current Object record

public static unsetLabel(string $label, RW $object) : bool
Parameters
$label : string
$object : RW
Tags
deprecated

since version 1.21

Return values
bool

success result ?

updateApiURL()

Update $this->apiURL

public updateApiURL() : mixed
Return values
mixed

updateColumnsInfo()

Update evidence info from array or online from properties.json or offline

public updateColumnsInfo([array<string|int, mixed> $columnsInfo = null ][, string $evidence = null ]) : mixed
Parameters
$columnsInfo : array<string|int, mixed> = null
$evidence : string = null
Return values
mixed

urlEncode()

convert unicode to entities for use with AbraFlexi queries

public static urlEncode(string $urlRaw) : string
Parameters
$urlRaw : string
Tags
deprecated

since version 2.24 - use Functions::urlEncode instead

Return values
string

urlizeId()

Prepare record ID to use in URL

public static urlizeId(mixed $id) : string
Parameters
$id : mixed
Tags
deprecated

since version 2.24 - use Functions::urlizeId instead

Return values
string

id ready for use in URL

xml2array()

Convert XML to array.

public static xml2array(string $xml) : array<string|int, mixed>
Parameters
$xml : string
Tags
deprecated

since version 2.24 - use Functions::xml2array instead

Return values
array<string|int, mixed>

Search results