public function set_total_users($totalusers) {
        $this->totalusers = $totalusers;
        $this->pages = ceil($this->totalusers / $this->perpage);
        if ($this->page > $this->pages) {
            $this->page = $this->pages;
        }
    }
public function set_total_users($totalusers) {
        $this->totalusers = $totalusers;
        $this->pages = ceil($this->totalusers / $this->perpage);
        if ($this->page > $this->pages) {
            $this->page = $this->pages;
        }
    }
public function set_total_users ( $ totalusers ) { $ this -> totalusers = $ totalusers ; $ this -> pages = ceil ( $ this -> totalusers / $ this -> perpage ) ; if ( $ this -> page > $ this -> pages ) { $ this -> page = $ this -> pages ; } }
Sets the total number of users

@param int $totalusers
Sets the total number of users