src/FlexiPeeHP/FlexiBeeRO.php
public function setMyKey($myKeyValue)
    {
        if (substr($myKeyValue, 0, 4) == 'ext:') {
            if ($this->evidenceInfo['extIdSupported'] == 'false') {
                $this->addStatusMessage(sprintf(_('Evidence %s does not support extIDs'),
                        $this->getEvidence()), 'warning');
                $res = false;
            } else {
                $extIds = $this->getDataValue('external-ids');
                if (!empty($extIds) && count($extIds)) {
                    $extIds = array_combine($extIds, $extIds);
                }

                $extIds[$myKeyValue] = $myKeyValue;
                $res                 = $this->setDataValue('external-ids',
                    $extIds);
            }
        } else {
            $res = parent::setMyKey($myKeyValue);
        }
        $this->updateApiURL();
        return $res;
    }
public function setMyKey($myKeyValue)
    {
        if (substr($myKeyValue, 0, 4) == 'ext:') {
            if ($this->evidenceInfo['extIdSupported'] == 'false') {
                $this->addStatusMessage(sprintf(_('Evidence %s does not support extIDs'),
                        $this->getEvidence()), 'warning');
                $res = false;
            } else {
                $extIds = $this->getDataValue('external-ids');
                if (!empty($extIds) && count($extIds)) {
                    $extIds = array_combine($extIds, $extIds);
                }

                $extIds[$myKeyValue] = $myKeyValue;
                $res                 = $this->setDataValue('external-ids',
                    $extIds);
            }
        } else {
            $res = parent::setMyKey($myKeyValue);
        }
        $this->updateApiURL();
        return $res;
    }
public function setMyKey ( $ myKeyValue ) { if ( substr ( $ myKeyValue , 0 , 4 ) == 'ext:' ) { if ( $ this -> evidenceInfo [ 'extIdSupported' ] == 'false' ) { $ this -> addStatusMessage ( sprintf ( _ ( 'Evidence %s does not support extIDs' ) , $ this -> getEvidence ( ) ) , 'warning' ) ; $ res = false ; } else { $ extIds = $ this -> getDataValue ( 'external-ids' ) ; if ( ! empty ( $ extIds ) && count ( $ extIds ) ) { $ extIds = array_combine ( $ extIds , $ extIds ) ; } $ extIds [ $ myKeyValue ] = $ myKeyValue ; $ res = $ this -> setDataValue ( 'external-ids' , $ extIds ) ; } } else { $ res = parent :: setMyKey ( $ myKeyValue ) ; } $ this -> updateApiURL ( ) ; return $ res ; }
Set Record Key

@param int|string $myKeyValue

@return boolean
Set Record Key