Пример #1
0
 protected function _doInsert($inputRecord)
 {
     // gen key
     $key = $this->genKey();
     // get secret
     $secret = $this->genSecret();
     $inputRecord['api_key'] = $key;
     $inputRecord['secret'] = $secret;
     parent::_doInsert($inputRecord);
 }
Пример #2
0
 protected function _doInsert($inputRecord)
 {
     $recId = parent::_doInsert($inputRecord);
     $formMainDO = $this->getDataObj();
     foreach ($this->getAssocDOs() as $refDO) {
         $inputRefRecord = $this->getAssocRec($refDO->objectName);
         $refRecId = $refDO->insertRecord($inputRefRecord);
         $inputRefRecord['Id'] = $refRecId;
         $refRec = $inputRefRecord;
         $refDO->addRecord($refRec, $isParentObjUpdated);
     }
 }