Changeset 888 for trunk/Modules/User/User.php
- Timestamp:
- Dec 27, 2022, 7:50:23 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/User.php
r884 r888 6 6 include_once(dirname(__FILE__).'/Profile.php'); 7 7 8 class ModuleUser extends AppModule8 class ModuleUser extends Module 9 9 { 10 10 function __construct(System $System) … … 19 19 } 20 20 21 function DoStart() 21 function DoStart(): void 22 22 { 23 23 $this->System->User = new User($this->System); 24 $this->System->RegisterPage( 'users', 'PageUserList');25 $this->System->RegisterPage( 'options', 'PageUserOptions');26 $this->System->RegisterPage( 'registration', 'PageUserRegistration');27 $this->System->RegisterPage( 'user', 'PageUserProfile');28 $this->System->RegisterPage( 'login', 'PageUserLogin');29 $this->System->RegisterMenuItem(array(24 $this->System->RegisterPage(['users'], 'PageUserList'); 25 $this->System->RegisterPage(['options'], 'PageUserOptions'); 26 $this->System->RegisterPage(['registration'], 'PageUserRegistration'); 27 $this->System->RegisterPage(['user'], 'PageUserProfile'); 28 $this->System->RegisterPage(['login'], 'PageUserLogin'); 29 Core::Cast($this->System)->RegisterMenuItem(array( 30 30 'Title' => T('Translators'), 31 31 'Hint' => 'Seznam registrovaných uživatelů', … … 37 37 $this->System->ModuleManager->Modules['Search']->RegisterSearch('user', 38 38 T('Translators'), array('Name'), '`User`', $this->System->Link('/users/?search=')); 39 $this->System->RegisterPageBarItem('Top', 'User', array($this, 'TopBarCallback'));40 $this->System->RegisterPageBarItem('Left', 'User', array($this, 'ShowOnlineList'));39 Core::Cast($this->System)->RegisterPageBarItem('Top', 'User', array($this, 'TopBarCallback')); 40 Core::Cast($this->System)->RegisterPageBarItem('Left', 'User', array($this, 'ShowOnlineList')); 41 41 } 42 42 … … 85 85 class PageUserLogin extends Page 86 86 { 87 function Show() 87 function Show(): string 88 88 { 89 89 $Output = '<form action="'.$this->System->Link('/?action=login').'" method="post" class="Form">'.
Note:
See TracChangeset
for help on using the changeset viewer.