function mgm_component()
 {
     // parent
     parent::__construct();
     // loader
     $this->load =& new mgm_loader();
     // processor
     $this->process =& new mgm_processor();
 }
 public function mgm_membership_types($membership_types = false)
 {
     // parent
     parent::__construct();
     // defaults
     $this->_set_defaults($membership_types);
     // read vars from db
     $this->read();
     // read and sync
 }
 function mgm_post_category($fields = false)
 {
     // parent
     parent::__construct();
     // defaults
     $this->_set_defaults($fields);
     // read vars from db
     $this->read();
     // read and sync
 }
 function mgm_system()
 {
     // parent
     parent::__construct();
     // defaults
     $this->_set_defaults();
     // read vars from db
     $this->read();
     // read and sync
 }
 function mgm_member_custom_fields($custom_fields = false, $sort_orders = false)
 {
     // parent
     parent::__construct();
     // defaults
     $this->_set_defaults($custom_fields, $sort_orders);
     // read vars from db
     $this->read();
     // read and sync
 }
 function mgm_controller()
 {
     // parent
     parent::__construct();
     // no saving
     $this->saving = false;
     // loader
     $this->load =& new mgm_loader();
     // processor
     $this->process =& new mgm_processor();
 }
 public function mgm_api_controller()
 {
     // parent
     parent::__construct();
     // no saving
     $this->saving = false;
     // update formats/verbs form setting
     $this->_filter_formtats();
     $this->_filter_verbs();
     // rest
     $this->_rest_request();
 }
 public static function get_instance()
 {
     // check
     if (!isset(self::$instance)) {
         // class name
         $cls = __CLASS__;
         // create instance
         self::$instance = new $cls();
     }
     // return
     return self::$instance;
 }
 public function mgm_subscription_packs($packs = false)
 {
     // parent
     parent::__construct();
     // defaults
     $this->_set_defaults($packs);
     // read vars from db
     $this->read();
     // read and sync
     // delete empty type
     $this->delete_empty_type();
 }
 function mgm_member($id = 0, $fields = false)
 {
     // parent
     parent::__construct();
     // defaults
     $this->_set_defaults($id, $fields);
     // read vars from db
     $this->read();
     // read and sync
     // fix expire date
     $this->fix_expire_date();
 }