public function loadSitesList($user)
    {
        if (!is_super_admin()) {
            return;
        }

        if (!is_network_admin()) {
            return;
        }

        if (file_exists(MSROLEPROPAGINATION_TEMPLATE_PATH . 'profile.php')) {

            //Get data for view
            $data = array(
                'sites' => array_chunk(get_sites(), 3),
                'savedState' => $this->getUserRoles($user->ID)
            );

            //Require view
            require MSROLEPROPAGINATION_TEMPLATE_PATH.'profile.php';
        } else {
            wp_die("Profile page view does not exists at " . MSROLEPROPAGINATION_TEMPLATE_PATH.'profile.php');
        }
    }
public function loadSitesList($user)
    {
        if (!is_super_admin()) {
            return;
        }

        if (!is_network_admin()) {
            return;
        }

        if (file_exists(MSROLEPROPAGINATION_TEMPLATE_PATH . 'profile.php')) {

            //Get data for view
            $data = array(
                'sites' => array_chunk(get_sites(), 3),
                'savedState' => $this->getUserRoles($user->ID)
            );

            //Require view
            require MSROLEPROPAGINATION_TEMPLATE_PATH.'profile.php';
        } else {
            wp_die("Profile page view does not exists at " . MSROLEPROPAGINATION_TEMPLATE_PATH.'profile.php');
        }
    }
public function loadSitesList ( $ user ) { if ( ! is_super_admin ( ) ) { return ; } if ( ! is_network_admin ( ) ) { return ; } if ( file_exists ( MSROLEPROPAGINATION_TEMPLATE_PATH . 'profile.php' ) ) { //Get data for view $ data = array ( 'sites' => array_chunk ( get_sites ( ) , 3 ) , 'savedState' => $ this -> getUserRoles ( $ user -> ID ) ) ; //Require view require MSROLEPROPAGINATION_TEMPLATE_PATH . 'profile.php' ; } else { wp_die ( "Profile page view does not exists at " . MSROLEPROPAGINATION_TEMPLATE_PATH . 'profile.php' ) ; } }
Fetch the view
@return void
Fetch the view