File modules/cms/action/user/UserListingAction.class.php
Last commit: Tue Nov 17 23:51:00 2020 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.
1 <?php 2 namespace cms\action\user; 3 use cms\action\Method; 4 use cms\action\UserAction; 5 use cms\model\User; 6 7 class UserListingAction extends UserAction implements Method { 8 public function view() { 9 $list = array(); 10 11 foreach( User::getAllUsers() as $user ) 12 { 13 /* @var $user User */ 14 $list[$user->userid] = $user->getProperties(); 15 } 16 $this->setTemplateVar('el',$list); 17 } 18 19 public function post() { 20 } 21 }
Downloadmodules/cms/action/user/UserListingAction.class.php
History Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.