Ignore:
Timestamp:
Jan 19, 2012, 1:58:03 PM (13 years ago)
Author:
chronos
Message:
  • Upraveno: Jednotka Forms přetvořena na View. Namísto globální definice formulářů se nyní použije objektová definice odvozená z třídy View.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/User.php

    r370 r372  
    323323class UserOptionsView extends View
    324324{
    325   function __construct()
    326   {
     325  function __construct($Database)
     326  {
     327    parent::__construct($Database);
    327328    $this->Name = 'UserOptions';
    328329    $this->Title = 'Nastavení uživatele';
    329     AddItemString('Login', 'Přihlašovací jméno', '');
    330     AddItemPassword('Password', 'Heslo', '');
    331     AddItemString('Name', 'Zobrazované jméno', '');
    332     AddItemString('Email', 'E-mail', '');
    333     AddItemString('PhoneNumber', 'Telefon', '');
    334     AddItemString('ICQ', 'ICQ', '');
     330    $this->ModelName = 'User';
     331    $this->AddItemString('Login', 'Přihlašovací jméno', '');
     332    $this->AddItemPassword('Password', 'Heslo', '');
     333    $this->AddItemString('Name', 'Zobrazované jméno', '');
     334    $this->AddItemString('Email', 'E-mail', '');
     335    $this->AddItemString('PhoneNumber', 'Telefon', '');
     336    $this->AddItemString('ICQ', 'ICQ', '');
    335337  }
    336338}
     
    338340class UserRegisterView extends View
    339341{
    340   function __construct()
    341   {
     342  function __construct($Database)
     343  {
     344    parent::__construct($Database);
    342345    $this->Name = 'UserRegister';
    343346    $this->Title = 'Registrace uživatele';
    344347    $this->SubmitText = 'Registrovat';
    345348    $this->ModelName = 'User';
    346     AddItemString('Login', 'Přihlašovací jméno', '');
    347     AddItemPassword('Password', 'Heslo', '');
    348     AddItemPassword('Password2', 'Potvrzení hesla', '');
    349     AddItemString('Name', 'Zobrazované jméno', '');
    350     AddItemString('Email', 'E-mail', '');
    351     AddItemString('PhoneNumber', 'Telefon', '');
    352     AddItemString('ICQ', 'ICQ', '');
     349    $this->AddItemString('Login', 'Přihlašovací jméno', '');
     350    $this->AddItemPassword('Password', 'Heslo', '');
     351    $this->AddItemPassword('Password2', 'Potvrzení hesla', '');
     352    $this->AddItemString('Name', 'Zobrazované jméno', '');
     353    $this->AddItemString('Email', 'E-mail', '');
     354    $this->AddItemString('PhoneNumber', 'Telefon', '');
     355    $this->AddItemString('ICQ', 'ICQ', '');
    353356  }
    354357}
     
    356359class PasswordRecoveryView extends View
    357360{
    358   function __construct()
    359   {
     361  function __construct($Database)
     362  {
     363    parent::__construct($Database);
    360364    $this->Name = 'PasswordRecovery';
    361365    $this->Title = 'Obnova hesla';
    362366    $this->SubmitText = 'Obnovit';
    363     AddItemString('Name', 'Přihlašovací jméno', '');
    364     AddItemString('Email', 'E-mail', '');
     367    $this->AddItemString('Name', 'Přihlašovací jméno', '');
     368    $this->AddItemString('Email', 'E-mail', '');
    365369  }
    366370}
     
    368372class UserLoginView extends View
    369373{
    370   function __construct()
    371   {
     374  function __construct($Database)
     375  {
     376    parent::__construct($Database);
    372377    $this->Name = 'UserLogin';
    373378    $this->Title = 'Přihlášení uživatele';
    374379    $this->SubmitText = 'Přihlásit';
    375     AddItemString('Username', 'Přihlašovací jméno', '');
    376     AddItemPassword('Password', 'Heslo', '');
     380    $this->AddItemString('Username', 'Přihlašovací jméno', '');
     381    $this->AddItemPassword('Password', 'Heslo', '');
    377382  }
    378383}
Note: See TracChangeset for help on using the changeset viewer.