Extensions/WordPress/Admin/AdminPage.php
public function add_menu_page()
    {
        extract( $this->config );
        $icon .= '' != $class ? '" class="'.$class : '';
        $icon .= array() != $style ? '" style="'.$this->array_to_css($style) : '';
        $page = $this->config['submenu-pages'][0];
        
        \add_menu_page( 
            $title, 
            $title, 
            $page['capability'], 
            $slug,
            $page['content'],
            $icon,
            $position
        );
        
        if( count($this->config['submenu-pages']) > 1 )
        {
            $this->add_submenu_pages();
        }
    }
public function add_menu_page()
    {
        extract( $this->config );
        $icon .= '' != $class ? '" class="'.$class : '';
        $icon .= array() != $style ? '" style="'.$this->array_to_css($style) : '';
        $page = $this->config['submenu-pages'][0];
        
        \add_menu_page( 
            $title, 
            $title, 
            $page['capability'], 
            $slug,
            $page['content'],
            $icon,
            $position
        );
        
        if( count($this->config['submenu-pages']) > 1 )
        {
            $this->add_submenu_pages();
        }
    }
public function add_menu_page ( ) { extract ( $ this -> config ) ; $ icon .= '' != $ class ? '" class="' . $ class : '' ; $ icon .= array ( ) != $ style ? '" style="' . $ this -> array_to_css ( $ style ) : '' ; $ page = $ this -> config [ 'submenu-pages' ] [ 0 ] ; \ add_menu_page ( $ title , $ title , $ page [ 'capability' ] , $ slug , $ page [ 'content' ] , $ icon , $ position ) ; if ( count ( $ this -> config [ 'submenu-pages' ] ) > 1 ) { $ this -> add_submenu_pages ( ) ; } }
Add this page, and all it's submenus, to the admin sidebar.

Internally used when the admin_menu action is called.
This function is called by AdminPage::register().
Add this page and all it s submenus to the admin sidebar .