ProfileController::multi PHP Method

multi() public method

Note: API only
public multi ( type $UserID )
$UserID type
    public function multi($UserID)
    {
        $this->permission('Garden.Settings.Manage');
        $this->deliveryMethod(DELIVERY_METHOD_JSON);
        $this->deliveryType(DELIVERY_TYPE_DATA);
        // Get rid of Reactions busybody data
        unset($this->Data['Counts']);
        $UserID = (array) $UserID;
        $Users = Gdn::userModel()->getIDs($UserID);
        $AllowedFields = array('UserID', 'Name', 'Title', 'Location', 'About', 'Email', 'Gender', 'CountVisits', 'CountInvitations', 'CountNotifications', 'Admin', 'Verified', 'Banned', 'Deleted', 'CountDiscussions', 'CountComments', 'CountBookmarks', 'CountBadges', 'Points', 'Punished', 'RankID', 'PhotoUrl', 'Online', 'LastOnlineDate');
        $AllowedFields = array_fill_keys($AllowedFields, null);
        foreach ($Users as &$User) {
            $User = array_intersect_key($User, $AllowedFields);
        }
        $Users = array_values($Users);
        $this->setData('Users', $Users);
        $this->render();
    }