for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* FlexiPeeHP - Třída pro zápis do FlexiBee.
*
* @author Vítězslav Dvořák <[email protected]>
* @copyright (C) 2015,2016 Spoje.Net
*/
namespace FlexiPeeHP;
class FlexiBeeRW extends FlexiBeeRO
{
* Sloupeček obsahující datum vložení záznamu do shopu.
* @var string
public $myCreateColumn = 'false';
* Slopecek obsahujici datum poslení modifikace záznamu do shopu.
public $myLastModifiedColumn = 'lastUpdate';
* Last Inserted ID.
* @var int
public $lastInsertedID = null;
* Array of fields for next curl POST operation
* @var array
protected $postFields = [];
* Uloží záznam.
* @param array $data
* @return array odpověď
public function insertToFlexiBee($data = null)
if (is_null($data)) {
$data = $this->getData();
}
$this->postFields = $this->jsonizeData($data);
$this->jsonizeData($data)
string
array
$postFields
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
return $this->performRequest($this->evidence.'.'.$this->format, 'PUT');
* Give you last inserted record ID.
* @return int
public function getLastInsertedId()
return $this->lastInsertedID;
* Smaže záznam
* @param int|string $id identifikátor záznamu
* @return boolean Response code is 200 ?
public function deleteFromFlexiBee($id)
$this->performRequest($this->evidence.'/'.$id.'.'.$this->format,
'DELETE');
return $this->lastResponseCode == 200;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..