Revize 256
Přidáno uživatelem Michal Kliment před více než 15 roky(ů)
freenetis/trunk/kohana/application/controllers/installation.php | ||
---|---|---|
$user->radius_password = $form_data["phone"];
|
||
$user->save();
|
||
|
||
$enum_type_model = new Enum_types_Model();
|
||
$enum_type_model = new Enum_type_Model();
|
||
|
||
$bank_enum_type = $enum_type_model->where('value','bank')->find();
|
||
$operating_enum_type = $enum_type_model->where('value','operating')->find();
|
||
$infrastructure_enum_type = $enum_type_model->where('value','infrastructure')->find();
|
||
$suppliers_enum_type = $enum_type_model->where('value','suppliers')->find();
|
||
|
||
|
||
$bank_account = new Account_Model();
|
||
$bank_account->member_id = $member->id;
|
||
$bank_account->name = 'First bank account';
|
||
... | ... | |
$bank_account->comment = 'First default bank account of association';
|
||
$bank_account->save();
|
||
|
||
$operating_enum_type = $enum_type_model->where('value','operating')->find();
|
||
|
||
$operating_account = new Account_Model();
|
||
$operating_account->member_id = $member->id;
|
||
$operating_account->name = 'Operating account';
|
||
... | ... | |
$operating_account->comment = 'Operating account of association';
|
||
$operating_account->save();
|
||
|
||
$infrastructure_enum_type = $enum_type_model->where('value','infrastructure')->find();
|
||
|
||
$infrastructure_account = new Account_Model();
|
||
$infrastructure_account->member_id = $member->id;
|
||
$infrastructure_account->name = 'Infrastructure account';
|
||
... | ... | |
$infrastructure_account->comment = 'Infrastructure account of association';
|
||
$infrastructure_account->save();
|
||
|
||
$suppliers_enum_type = $enum_type_model->where('value','suppliers')->find();
|
||
|
||
$suppliers_account = new Account_Model();
|
||
$suppliers_account->member_id = $member->id;
|
||
$suppliers_account->name = 'Account of suppliers';
|
Také k dispozici: Unified diff
Opraveno jeste mensi chybicky v instalaci.