Beispiel #1
0
 /** ************************************************************************
  * REQUIRED. Set up a constructor that references the parent constructor. We 
  * use the parent reference to set some default configs.
  ***************************************************************************/
 function __construct()
 {
     global $status, $page;
     //Set parent defaults
     parent::__construct(array('singular' => 'auction', 'plural' => 'auctions', 'ajax' => false));
     // get array of profile names - if installation has been completed
     $db_version = get_option('wplister_db_version', 0);
     if ($db_version) {
         $profilesModel = new ProfilesModel();
         $this->profiles = $profilesModel->getAllNames();
     } else {
         $this->profiles = array();
     }
 }