src/Data/Tools/BizRecord.php
final public function setInputRecord(&$inputArr)
    {
        // unformat the inputs
        unset($this->inputFields);
        foreach ($inputArr as $key => $value) {
            // if allow changing key field, need to keep the old value which is also useful for audit trail
            // if (!$value)
            //    continue;
            $bizField = $this->varValue[$key];
            if (!$bizField) {
                continue;
            }

            $realVal = Openbizx::$app->getTypeManager()->formattedStringToValue($bizField->type, $bizField->format, $value);
            if (strtoupper($bizField->encrypted) == 'Y') {
                $svcobj = Openbizx::getService(CRYPT_SERVICE);
                $realVal = $svcobj->encrypt($realVal);
                $bizField->setValue($realVal);
            }
            // todo: need to optimize on lob column            
            $bizField->setValue($realVal);

            $this->inputFields[] = $key;
        }
        //$this->varValue["Id"]->setValue($this->getKeyValue());
    }
final public function setInputRecord(&$inputArr)
    {
        // unformat the inputs
        unset($this->inputFields);
        foreach ($inputArr as $key => $value) {
            // if allow changing key field, need to keep the old value which is also useful for audit trail
            // if (!$value)
            //    continue;
            $bizField = $this->varValue[$key];
            if (!$bizField) {
                continue;
            }

            $realVal = Openbizx::$app->getTypeManager()->formattedStringToValue($bizField->type, $bizField->format, $value);
            if (strtoupper($bizField->encrypted) == 'Y') {
                $svcobj = Openbizx::getService(CRYPT_SERVICE);
                $realVal = $svcobj->encrypt($realVal);
                $bizField->setValue($realVal);
            }
            // todo: need to optimize on lob column            
            $bizField->setValue($realVal);

            $this->inputFields[] = $key;
        }
        //$this->varValue["Id"]->setValue($this->getKeyValue());
    }
Assign a record array as the internal record of the {@link BizRecord}

@param array $inpuArr
@return void