Ignore:
Timestamp:
Mar 13, 2012, 4:08:31 PM (13 years ago)
Author:
chronos
Message:
  • Upraveno: Seznam závislostí modulů načítán do samostatné tabulky.
  • Upraveno: V základu načíst jen základní moduly a umožnit doinstalaci dalších.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Modular/Modules/User/User.php

    r383 r398  
    4848    $this->AddPropertyString('Password');   
    4949    $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);
    5453    $this->AddPropertyBoolean('Locked');
    5554    $this->AddPropertyInteger('ICQ');
    56     $this->AddPropertyString('PhoneNumber');   
    57     $this->AddPropertyString('InitPassword');   
     55    $this->AddPropertyString('PhoneNumber');
     56    $this->AddPropertyString('InitPassword');
    5857  }   
    5958
     
    372371    $this->License = 'GNU/GPL';
    373372    $this->Description = 'User management';
    374     $this->Dependencies = array();
     373    $this->Dependencies = array('System');
    375374    $this->SupportedModels = array('User', 'UserOnline');
    376375    $this->Views = array('UserLogin', 'PasswordRecove', 'UserRegister', 'UserOptions',
     
    389388  function Install()
    390389  {
     390    $Installed = $this->Installed;
    391391    parent::Install();
    392     if(!$this->Installed)
     392    if(!$Installed)
    393393    {
    394394      $this->Database->insert('User', array('Id' => ANONYMOUS_ID, 'Login' => 'Anonymous', 'Name' => 'Anonymous',
Note: See TracChangeset for help on using the changeset viewer.