e72c5a68d038a659bb506129fb2700bda5932b68
3 namespace wcf\data\user
;
6 * Represents a list of user profiles.
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\Data\User
13 * @method UserProfile current()
14 * @method UserProfile[] getObjects()
15 * @method UserProfile|null search($objectID)
16 * @property UserProfile[] $objects
18 class UserProfileList
extends UserList
23 public $sqlOrderBy = 'user_table.username';
28 public $decoratorClassName = UserProfile
::class;
33 public function __construct()
35 parent
::__construct();
37 if (!empty($this->sqlSelects
)) {
38 $this->sqlSelects
.= ',';
40 $this->sqlSelects
.= "user_avatar.*";
42 LEFT JOIN wcf" . WCF_N
. "_user_avatar user_avatar
43 ON user_avatar.avatarID = user_table.avatarID";
45 if (MODULE_USER_RANK
) {
46 $this->sqlSelects
.= ",user_rank.*";
48 LEFT JOIN wcf" . WCF_N
. "_user_rank user_rank
49 ON user_rank.rankID = user_table.rankID";
52 // get current location
53 $this->sqlSelects
.= ", session.pageID, session.pageObjectID, session.lastActivityTime AS sessionLastActivityTime";
55 LEFT JOIN wcf" . WCF_N
. "_session session
56 ON session.userID = user_table.userID";
62 public function readObjects()
64 if ($this->objectIDs
=== null) {
65 $this->readObjectIDs();
68 parent
::readObjects();