drive_name = $drive_name; $this->drive = $drive; $this->enabled = $enabled; } final public function save() { if ( $this->drive_name !== null && $this->drive_type !== null ) { WPDA_Drives::set_drive($this->drive_name, $this->drive, $this->drive_type, $this->enabled); WPDA_Drives::save(); return true; } else { return false; } } public abstract function authorize( $authorization, $enabled = true ); public abstract function refresh_token(); public abstract function connect(); public abstract function close(); public abstract function upload_file( $local_file, $remote_file ); public abstract function cleanup( $query, $keep ); } }