File modules/cms/action/userlist/UserlistEditAction.class.php
Last commit: Wed Nov 18 00:18:10 2020 +0100 Jan Dankert Refactoring Part 2: Removing all unnecessary methods in the action base classes.
1 <?php 2 namespace cms\action\userlist; 3 use cms\action\Method; 4 use cms\action\UserlistAction; 5 use cms\model\User; 6 7 /** 8 * Shows all users. 9 */ 10 class UserlistEditAction extends UserlistAction implements Method { 11 12 public function view() { 13 $list = array(); 14 15 foreach( User::getAllUsers() as $user ) 16 { 17 $list[$user->userid] = $user->getProperties(); 18 $list[$user->userid]['id' ] = $user->userid; 19 } 20 $this->setTemplateVar('list',$list); 21 } 22 23 24 public function post() { 25 } 26 }
Downloadmodules/cms/action/userlist/UserlistEditAction.class.php
History Wed, 18 Nov 2020 00:18:10 +0100 Jan Dankert Refactoring Part 2: Removing all unnecessary methods in the action base classes. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.