1<?php
2class Destination {
3  var $filename;
4
5  function Destination($filename) {
6    $this->set_filename($filename);
7  }
8
9  function filename_escape($filename) { return preg_replace("/[^a-z0-9-]/i","_",$filename); }
10
11  function get_filename() { return empty($this->filename) ? OUTPUT_DEFAULT_NAME : $this->filename; }
12
13  function process($filename, $content_type) {
14    die("Oops. Inoverridden 'process' method called in ".get_class($this));
15  }
16
17  function set_filename($filename) { $this->filename = $filename; }
18}
19?>