public function onActivation()
 {
     global $wpdb;
     $this->initCaps();
     $options = new WPAM_Options();
     $options->initOptions();
     if (!file_exists(WPAM_CREATIVE_IMAGES_DIR)) {
         wp_mkdir_p(WPAM_CREATIVE_IMAGES_DIR);
     }
     $dbInstaller = new WPAM_Data_DatabaseInstaller($wpdb);
     $dbInstaller->doDbInstall();
     $dbInstaller->doInstallPages($this->publicPages);
     $dbInstaller->doFreshInstallDbDefaultData();
 }
 public function run_installer()
 {
     global $wpdb;
     $this->initCaps();
     $options = new WPAM_Options();
     $options->initOptions();
     $dbInstaller = new WPAM_Data_DatabaseInstaller($wpdb);
     $dbInstaller->doDbInstall();
     $dbInstaller->doInstallPages($this->publicPages);
     $dbInstaller->doFreshInstallDbDefaultData();
 }