src/FlexiPeeHP/FlexiBeeRO.php
public function recordExists($data = [])
    {

        if (empty($data)) {
            $data = $this->getData();
        }
        $ignorestate = $this->ignore404();
        $this->ignore404(true);
        $keyColumn   = $this->getKeyColumn();
        $res         = $this->getColumnsFromFlexibee([$keyColumn],
            is_array($data) ? $data : [$keyColumn => $data]);

        if (empty($res) || (isset($res['success']) && ($res['success'] == 'false'))
            || ((isset($res) && is_array($res)) && !isset($res[0]) )) {
            $found = false;
        } else {
            $found = true;
        }
        $this->ignore404($ignorestate);
        return $found;
    }
public function recordExists($data = [])
    {

        if (empty($data)) {
            $data = $this->getData();
        }
        $ignorestate = $this->ignore404();
        $this->ignore404(true);
        $keyColumn   = $this->getKeyColumn();
        $res         = $this->getColumnsFromFlexibee([$keyColumn],
            is_array($data) ? $data : [$keyColumn => $data]);

        if (empty($res) || (isset($res['success']) && ($res['success'] == 'false'))
            || ((isset($res) && is_array($res)) && !isset($res[0]) )) {
            $found = false;
        } else {
            $found = true;
        }
        $this->ignore404($ignorestate);
        return $found;
    }
public function recordExists ( $ data = [ ] ) { if ( empty ( $ data ) ) { $ data = $ this -> getData ( ) ; } $ ignorestate = $ this -> ignore404 ( ) ; $ this -> ignore404 ( true ) ; $ keyColumn = $ this -> getKeyColumn ( ) ; $ res = $ this -> getColumnsFromFlexibee ( [ $ keyColumn ] , is_array ( $ data ) ? $ data : [ $ keyColumn => $ data ] ) ; if ( empty ( $ res ) || ( isset ( $ res [ 'success' ] ) && ( $ res [ 'success' ] == 'false' ) ) || ( ( isset ( $ res ) && is_array ( $ res ) ) && ! isset ( $ res [ 0 ] ) ) ) { $ found = false ; } else { $ found = true ; } $ this -> ignore404 ( $ ignorestate ) ; return $ found ; }
Test if given record exists in FlexiBee.

@param array|string|int $data ext:id:23|code:ITEM|['id'=>23]|23

@return boolean Record presence status
Test if given record exists in FlexiBee .