function account_group_sync($account_id) { if ($this->map['group_type'] == 'db') { $db_map = new db_mapping(); return $db_map->MAP_account_group_sync_db($account_id, $this); } elseif ($this->map['group_type'] == 'status') { $db_map = new db_mapping(); return $db_map->MAP_account_group_sync_status($account_id, $this); } elseif ($this->map['group_type'] == 'db-status') { $db_map = new db_mapping(); return $db_map->MAP_account_group_sync_db_status($account_id, $this); } else { return false; } }