/**
  * Constructor
  *
  * @param unknown $rootPluginFilenameAndPath        	
  */
 public function __construct($rootPluginFilenameAndPath)
 {
     assert(!empty($rootPluginFilenameAndPath));
     assert(PostmanUtils::isAdmin());
     assert(is_admin());
     $this->logger = new PostmanLogger(get_class($this));
     $this->rootPluginFilenameAndPath = $rootPluginFilenameAndPath;
     PostmanUtils::registerAdminMenu($this, 'addPortTestSubmenu');
     // hook on the init event
     add_action('init', array($this, 'on_init'));
     // initialize the scripts, stylesheets and form fields
     add_action('admin_init', array($this, 'on_admin_init'));
 }
 /**
  * Constructor
  *
  * @param PostmanOptions $options        	
  * @param PostmanOAuthToken $authorizationToken        	
  * @param PostmanConfigTextHelper $oauthScribe        	
  */
 function __construct($rootPluginFilenameAndPath, PostmanOptions $options, PostmanOAuthToken $authorizationToken, PostmanConfigTextHelper $oauthScribe, PostmanAdminController $adminController)
 {
     $this->options = $options;
     $this->rootPluginFilenameAndPath = $rootPluginFilenameAndPath;
     $this->authorizationToken = $authorizationToken;
     $this->oauthScribe = $oauthScribe;
     $this->adminController = $adminController;
     $this->logger = new PostmanLogger(get_class($this));
     PostmanUtils::registerAdminMenu($this, 'generateDefaultContent');
     PostmanUtils::registerAdminMenu($this, 'addPurgeDataSubmenu');
     // initialize the scripts, stylesheets and form fields
     add_action('admin_init', array($this, 'registerStylesAndScripts'), 0);
 }
 /**
  * Constructor
  *
  * @param unknown $rootPluginFilenameAndPath        	
  */
 public function __construct($rootPluginFilenameAndPath)
 {
     assert(!empty($rootPluginFilenameAndPath));
     assert(PostmanUtils::isAdmin());
     assert(is_admin());
     $this->logger = new PostmanLogger(get_class($this));
     $this->rootPluginFilenameAndPath = $rootPluginFilenameAndPath;
     $this->options = PostmanOptions::getInstance();
     $this->settingsRegistry = new PostmanSettingsRegistry();
     PostmanUtils::registerAdminMenu($this, 'addConfigurationSubmenu');
     PostmanUtils::registerAdminMenu($this, 'addSetupWizardSubmenu');
     // hook on the init event
     add_action('init', array($this, 'on_init'));
     // initialize the scripts, stylesheets and form fields
     add_action('admin_init', array($this, 'on_admin_init'));
 }