Changeset 398 for branches/Modular/Modules/User/User.php
- Timestamp:
- Mar 13, 2012, 4:08:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Modules/User/User.php
r383 r398 48 48 $this->AddPropertyString('Password'); 49 49 $this->AddPropertyString('Email'); 50 $this->AddPropertyString('LastIpAddress'); 51 $this->AddPropertyDateTime('LastLoginTime'); 52 $this->AddPropertyDateTime('RegistrationTime'); 53 $this->AddPropertyOneToMany('Member', 'Member'); 50 $this->AddPropertyString('LastIpAddress'); 51 $this->AddPropertyDateTime('LastLoginTime', true); 52 $this->AddPropertyDateTime('RegistrationTime', true); 54 53 $this->AddPropertyBoolean('Locked'); 55 54 $this->AddPropertyInteger('ICQ'); 56 $this->AddPropertyString('PhoneNumber'); 57 $this->AddPropertyString('InitPassword'); 55 $this->AddPropertyString('PhoneNumber'); 56 $this->AddPropertyString('InitPassword'); 58 57 } 59 58 … … 372 371 $this->License = 'GNU/GPL'; 373 372 $this->Description = 'User management'; 374 $this->Dependencies = array( );373 $this->Dependencies = array('System'); 375 374 $this->SupportedModels = array('User', 'UserOnline'); 376 375 $this->Views = array('UserLogin', 'PasswordRecove', 'UserRegister', 'UserOptions', … … 389 388 function Install() 390 389 { 390 $Installed = $this->Installed; 391 391 parent::Install(); 392 if(!$ this->Installed)392 if(!$Installed) 393 393 { 394 394 $this->Database->insert('User', array('Id' => ANONYMOUS_ID, 'Login' => 'Anonymous', 'Name' => 'Anonymous',
Note:
See TracChangeset
for help on using the changeset viewer.