Changeset 370 for trunk/Modules/User/User.php
- Timestamp:
- Jan 19, 2012, 12:30:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r367 r370 321 321 } 322 322 323 class UserOptionsView extends View 324 { 325 function __construct() 326 { 327 $this->Name = 'UserOptions'; 328 $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', ''); 335 } 336 } 337 338 class UserRegisterView extends View 339 { 340 function __construct() 341 { 342 $this->Name = 'UserRegister'; 343 $this->Title = 'Registrace uživatele'; 344 $this->SubmitText = 'Registrovat'; 345 $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', ''); 353 } 354 } 355 356 class PasswordRecoveryView extends View 357 { 358 function __construct() 359 { 360 $this->Name = 'PasswordRecovery'; 361 $this->Title = 'Obnova hesla'; 362 $this->SubmitText = 'Obnovit'; 363 AddItemString('Name', 'Přihlašovací jméno', ''); 364 AddItemString('Email', 'E-mail', ''); 365 } 366 } 367 368 class UserLoginView extends View 369 { 370 function __construct() 371 { 372 $this->Name = 'UserLogin'; 373 $this->Title = 'Přihlášení uživatele'; 374 $this->SubmitText = 'Přihlásit'; 375 AddItemString('Username', 'Přihlašovací jméno', ''); 376 AddItemPassword('Password', 'Heslo', ''); 377 } 378 } 379 323 380 class ModuleUser extends Module 324 381 { … … 333 390 $this->Dependencies = array(); 334 391 $this->Models = array('User', 'UserOnline'); 392 $this->Views = array('UserLogin', 'PasswordRecove', 'UserRegister', 'UserOptions'); 335 393 } 336 394
Note:
See TracChangeset
for help on using the changeset viewer.