sources_list = new Sources_Table(); } public function display() { $action = ( isset( $_GET[ 'action' ] ) ) ? $_GET[ 'action' ] : ''; switch( $action ) { case 'new': $this->new(); break; case 'edit': $this->edit(); break; case 'cats': $this->cats(); break; case 'delete': $this->delete(); break; default: $this->list(); break; } } private function list() { if ( isset( $_POST[ 'action' ] ) ) { $this->handle_action(); } ?>

Affiliate Bridge :: Source Settings

sources_list->prepare_items(); $this->sources_list->display(); submit_button(); ?>
get_source( $source ); if ( $action == 'new' && $step == '2' ) { $src->save_as_new_source(); } elseif ( $action == 'edit' && $step == '2' ) { $src->save_existing_source(); } elseif ( $action == 'cats' && $step == '2' ) { $src->download_categories(); } elseif ( $action == 'delete' ) { $src->maybe_delete(); } } } }