NGG_Post_Admin_Page

Class NGG_Post_Admin_Page.

Defined (1)

The class is defined in the following location(s).

/admin/class-ngg-post-admin-page.php  
  1. abstract class NGG_Post_Admin_Page implements NGG_Displayable { 
  2.  
  3. protected $page; 
  4.  
  5. public function __construct() { 
  6.  
  7. $this->page = admin_url() . 'admin.php?page=' . $_GET['page']; 
  8.  
  9.  
  10. /** 
  11. * Display the page. Child classes should override this method. 
  12. */ 
  13. public function display() { 
  14. //Handle the post updates. 
  15. if ( isset( $_POST ) && !empty($_POST) ) { 
  16. $this->processor(); 
  17.  
  18. /** 
  19. * Handle the POST updates. This functions is called by the display() function, if used properly. 
  20. */ 
  21. protected abstract function processor();