Overview

Namespaces

  • FlexiPeeHP
  • PHP

Classes

  • Actions
  • Adresar
  • Banka
  • Cenik
  • Changes
  • Company
  • DodavatelskaSmlouva
  • EvidenceList
  • FakturaPrijata
  • FakturaVydana
  • FakturaVydanaPolozka
  • FlexiBeeRO
  • FlexiBeeRW
  • Formats
  • Hooks
  • InterniDoklad
  • Kontakt
  • Nastaveni
  • Pokladna
  • PokladniPohyb
  • Priloha
  • RadaPokladniPohyb
  • Relations
  • SkladovaKarta
  • SkladovyPohyb
  • SkladovyPohybPolozka
  • SkupinaFirem
  • Smlouva
  • Status
  • Stitek
  • Strom
  • StromCenik
  • UcetniObdobi
  • VyrobniCislo
  • Zavazek
  • Zurnal

Traits

  • Firma
  • Stitky
  • Sum
  • Overview
  • Namespace
  • Class
  • Tree

Class FlexiBeeRW

Základní třída pro zápis do FlexiBee

Ease\Sand
Extended by FlexiPeeHP\FlexiBeeRO
Extended by FlexiPeeHP\FlexiBeeRW

Direct 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
Namespace: FlexiPeeHP
Url: https://demo.flexibee.eu/devdoc/http-operations
Located at FlexiPeeHP/FlexiBeeRW.php
Methods summary
public
# setUp( array $options = array() )

SetUp Object to be ready for work

SetUp Object to be ready for work

Parameters

$options

Object Options (authSessionId,user,password, url,company,evidence,companyUrl prefix,defaultUrlParams,debug,ver detail,offline,atomic,filter,ignore404

Overrides

FlexiPeeHP\FlexiBeeRO::setUp()
public array
# insertToFlexiBee( array $data = null )

Save record (if evidence allow to). Uloží záznam (pokud to evidence dovoluje)

Save record (if evidence allow to). Uloží záznam (pokud to evidence dovoluje)

Parameters

$data
Data to save

Returns

array
odpověď

Throws

Exception
Evidence does not support Import
public array
# parseResponse( array $responseDecoded, integer $responseCode )

Parse Response array

Parse Response array

Parameters

$responseDecoded
$responseCode
Request Response Code

Returns

array
main data part of response

Overrides

FlexiPeeHP\FlexiBeeRO::parseResponse()
public
# assignResultIDs( array $candidates )

Assign result IDs to its source objects

Assign result IDs to its source objects

Parameters

$candidates
FlexiBee insert IDs prepared by extractResultIDs()
public array
# extractResultIDs( array $resultInfo )

Extract IDs from FlexiBee response Array

Extract IDs from FlexiBee response Array

Parameters

$resultInfo
FlexiBee response

Returns

array
List of [ 'evidence1'=>[ 'original-id'=>numericID,'original-id2'=>numericID2 ], 'evidence2'=> ... ]
public integer
# getLastInsertedId( )

Give you last inserted record ID.

Give you last inserted record ID.

Returns

integer
public boolean
# deleteFromFlexiBee( integer|string $id = null )

Smaže záznam Delete record in FlexiBee

Smaže záznam Delete record in FlexiBee

Parameters

$id
identifikátor záznamu

Returns

boolean
Response code is 200 ?
public integer
# takeData( array $data )

Control for existing column names in evidence and take data

Control for existing column names in evidence and take data

Parameters

$data
Data to keep

Returns

integer
number of records taken

Overrides

FlexiPeeHP\FlexiBeeRO::takeData()
public array
# controlMandatoryColumns( array $data = null )

Control data for mandatory columns presence.

Control data for mandatory columns presence.

Deprecated

since version 1.8.7

Parameters

$data

Returns

array
List of missing columns. Empty if all is ok
public array
# controlReadOnlyColumns( array $data = null )

Control data for readonly columns presence.

Control data for readonly columns presence.

Parameters

$data

Returns

array
List of ReadOnly columns. Empty if all is ok
public static string
# timestampToFlexiDate( integer $timpestamp = null )

Convert Timestamp to FlexiBee Date format.

Convert Timestamp to FlexiBee Date format.

Parameters

$timpestamp

Returns

string
FlexiBee Date or NULL
public static string
# timestampToFlexiDateTime( integer $timpestamp = null )

Convert Timestamp to Flexi DateTime format.

Convert Timestamp to Flexi DateTime format.

Parameters

$timpestamp

Returns

string
FlexiBee DateTime or NULL
public boolean
# addArrayToBranch( array $data, string $relationPath = 'polozkyDokladu', boolean $removeAll = false )

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

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

Parameters

$data
pole dat
$relationPath
path evidence (relation) pro vkládaná data
$removeAll

Returns

boolean
Operation success

See

FlexiPeeHP\Relations

Thanksto

Karel Běl
public
# addObjectToBranch( FlexiPeeHP\FlexiBeeRO $object, boolean $removeAll = false )

Vloží do větve data z objektu

Vloží do větve data z objektu

Parameters

$object
objekt evidence
$removeAll
flush older items
public
# vazbaAdd( string $vazba )

Přidá uživatelskou vazbu

Přidá uživatelskou vazbu

Parameters

$vazba

See

https://www.flexibee.eu/api/dokumentace/ref/uzivatelske-vazby/
public
# vazbaDel( string $vazba )

Smaže uživatelskou vazbu

Smaže uživatelskou vazbu

Parameters

$vazba

See

https://www.flexibee.eu/api/dokumentace/ref/uzivatelske-vazby/
public string
# getJsonizedData( array $data = null, integer $options = 0 )

Převede data do Json formátu pro FlexiBee. Pokud jsou štítky pole, jsou převedeny na seznam oddělený čárkou. Convert data to FlexiBee like Json format. Array of Labels is converted to coma separated list

Převede data do Json formátu pro FlexiBee. Pokud jsou štítky pole, jsou převedeny na seznam oddělený čárkou. Convert data to FlexiBee like Json format. Array of Labels is converted to coma separated list

Parameters

$data
$options
json_encode options like JSON_PRETTY_PRINT etc

Returns

string

Overrides

FlexiPeeHP\FlexiBeeRO::getJsonizedData()
public array
# getDataForJSON( array $data = null )

Get Data Fragment specific for current object

Get Data Fragment specific for current object

Parameters

$data

Returns

array

Overrides

FlexiPeeHP\FlexiBeeRO::getDataForJSON()
public boolean
# sync( array $data = null )

Insert current data into FlexiBee and load actual record data back

Insert current data into FlexiBee and load actual record data back

Parameters

$data
Initial data to save

Returns

boolean
Operation success
public FlexiPeeHP\FlexiBeeRW|null
# copy( integer $source, array $overrides = [] )

Make Copy of given record with optional modifiactions

Make Copy of given record with optional modifiactions

!!!Experimental Feature!!!

Parameters

$source
$overrides

Returns

FlexiPeeHP\FlexiBeeRW|null
copied record object or null in case of failure
public boolean
# performAction( string $action, string $method = 'int' )

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

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

Parameters

$action
one of evidence actions
$method

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

Returns

boolean
operation success

Url

https://demo.flexibee.eu/devdoc/actions
public array
# addExternalID( string $extId )

Add External ID to Current Record

Add External ID to Current Record

Parameters

$extId
ext:whatever:123 or simplay whatever:123

Returns

array
Insert result
public array
# changeExternalID( string $selector, string|integer $newValue, string|integer $forID = null )

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

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

Parameters

$selector
ext:$selector:$newValue
$newValue
string or number
$forID
Other than current record id

Returns

array
operation result
Methods inherited from FlexiPeeHP\FlexiBeeRO
__construct(), __destruct(), __toString(), __wakeup(), addDefaultUrlParams(), arrayCleanUP(), code(), companyUrlToOptions(), contentTypeToResponseFormat(), curlInit(), dateToFlexiDate(), dateToFlexiDateTime(), disconnect(), doCurlRequest(), downloadInFormat(), error500Reporter(), evidenceToClassName(), evidenceUrlWithSuffix(), extractUrlParams(), flexiDateTimeToDateTime(), flexiDateToDateTime(), flexiUrl(), getActionsInfo(), getAllFromFlexibee(), getApiURL(), getColumnInfo(), getColumnsFromFlexibee(), getColumnsInfo(), getCompany(), getConnectionOptions(), getEvidence(), getEvidenceInfo(), getEvidenceName(), getEvidenceURL(), getExternalID(), getExternalIDs(), getFirstRecordID(), getFlexiBeeURL(), getFlexiData(), getFlexiRow(), getGlobalVersion(), getInFormat(), getKod(), getLastOperationType(), getNextRecordID(), getOfflineColumnsInfo(), getOnlineColumnsInfo(), getPostFields(), getPrevRecordID(), getRecordCode(), getRecordID(), getRecordIdent(), getRelationsInfo(), getReportsInfo(), getResponseEvidence(), getResponseFormat(), getSubItems(), getVazby(), idExists(), ignore404(), join(), loadFromFlexiBee(), logBanner(), logResult(), login(), logout(), object2array(), objectToID(), parseError(), performRequest(), processInit(), rawJsonToArray(), rawResponseToArray(), rawXmlToArray(), recordExists(), reload(), requestAuthSessionID(), saveDebugFiles(), saveResponseToFile(), sendByMail(), sendUnsent(), setAction(), setCompany(), setDataValue(), setEvidence(), setFilter(), setFormat(), setMyKey(), setObjectName(), setPostFields(), setPrefix(), setupProperty(), uncode(), unifyResponseFormat(), updateApiURL(), updateColumnsInfo(), urlEncode(), urlizeId(), xml2array()
Properties summary
public string $myCreateColumn

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

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

# 'false'
public string $myLastModifiedColumn

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

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

# 'lastUpdate'
public integer $lastInsertedID

Last Inserted ID.

Last Inserted ID.

# null
public string $postFields

Array of fields for next curl POST operation

Array of fields for next curl POST operation

# null
public boolean $atomic

Transaction processing mode

Transaction processing mode

Link

Transakční zpracování
# null
Properties inherited from FlexiPeeHP\FlexiBeeRO
$DateFormat, $DateTimeFormat, $action, $actionsAvailable, $apiURL, $authSessionId, $chained, $codes, $company, $curl, $curlInfo, $defaultHttpHeaders, $defaultUrlParams, $evidence, $evidenceInfo, $fbKeyColumn, $filter, $format, $globalVersion, $ignoreNotFound, $infoDir, $init, $lastCurlError, $lastCurlResponse, $lastResponseCode, $lastResult, $libVersion, $nameColumn, $nameSpace, $offline, $password, $prefix, $protoVersion, $refreshToken, $reportRecipient, $responseFormat, $responseStats, $resultField, $rowCount, $timeout, $url, $urlParams, $user
FlexiPeeHP API documentation generated by ApiGen