| 451 | }}} |
| 452 | |
| 453 | == Dodanie wpisu w rejestrze z ewaluacją domyślnych wartości == |
| 454 | {{{ |
| 455 | #!php |
| 456 | $cregid = 41; |
| 457 | |
| 458 | require_once(MOD_PATH.'CRegisters/beans/CRegisterEntry.inc'); |
| 459 | require_once(MOD_PATH.'CRegisters/services/CRegisterEntryManager.inc'); |
| 460 | |
| 461 | $mgr = new CRegisterEntryManager(); |
| 462 | |
| 463 | $bean = new CRegisterEntry(NULL, $cregid); |
| 464 | $bean->set('cregid', $cregid); |
| 465 | $data = array('prcid2' => $pid); |
| 466 | |
| 467 | $mgr->setDataWithDefaults($bean, $data, $cregid); |
| 468 | |
| 469 | $id____ = $bean->save(); |