Changeset 888 for trunk/Modules/User
- Timestamp:
- Dec 27, 2022, 7:50:23 PM (2 years ago)
- Location:
- trunk/Modules/User
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/User/Options.php
r884 r888 134 134 } 135 135 136 function Show() 136 function Show(): string 137 137 { 138 138 $this->Title = T('User settings'); -
trunk/Modules/User/Profile.php
r880 r888 246 246 } 247 247 248 function Show() 248 function Show(): string 249 249 { 250 250 $this->Title = T('User profile'); -
trunk/Modules/User/Registration.php
r884 r888 159 159 } 160 160 161 function Show() 161 function Show(): string 162 162 { 163 163 $this->Title = T('User registration'); -
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">'. -
trunk/Modules/User/UserList.php
r880 r888 3 3 class PageUserList extends Page 4 4 { 5 function Show() 5 function Show(): string 6 6 { 7 7 $this->Title = T('Translators');
Note:
See TracChangeset
for help on using the changeset viewer.